[google-appengine] Re: Google cloud add firewall rule to receive traffic from only certain IP's.

2018-11-20 Thread 'Md (Google Cloud Support)' via Google App Engine


Hello,

So far I understand, you are trying to add firewall at the VPC level in 
your project. You should be able to create  that following this help center 
article . Therefore, can 
you provide us the detailed description of the error message that you are 
encountering while creating that firewall rules. This will help us  to 
understand the nature of the issue.


On Tuesday, November 20, 2018 at 4:53:46 AM UTC-5, Sudhanshu Gaur wrote:
>
> I am trying to add firewall rules for my compute engine instances, that's 
> why I went to VPC network -> Firewall rules -> Create Firewall rule.
>
> But it isn't working, please reply ASAP.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ce0c858d-69b6-4ab9-865e-82295be46878%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Python 3.7 service killed after exceeding memory limit

2018-11-20 Thread 'Rahul Ravindran' via Google App Engine
Hello,
  Your measurement of your application on your laptop does not accurately
represent all the memory used. Firstly, you will need to look at the RSS
memory for the process. In addition, any resources taken by the operating
system, kernel are not accounted for in your measurement but is accounted
in ours. We are not running a Python process alone, but giving you a
complete, isolated linux runtime environment in addition to the python
runtime environment.

~Rahul.

On Tue, Nov 20, 2018 at 2:17 PM vvv vvv  wrote:

> BTW this is in the Standard environment
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/12f271c6-4eb9-4fea-a022-2bb581471e14%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALZe7H1gUYghBUuVcS%2BHLSqtKGvMaT8ik%2B5gmVGMe%2BF8z3U%3D7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Python 3.7 service killed after exceeding memory limit

2018-11-20 Thread vvv vvv
BTW this is in the Standard environment 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/12f271c6-4eb9-4fea-a022-2bb581471e14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Python 3.7 service killed after exceeding memory limit

2018-11-20 Thread vvv vvv
@George I understand that this mailing list is not meant to be used for 
architecture issues, but when my software uses around 170 MB of RAM on my 
laptop but gets killed by the AppEngine on the cloud because it keeps 
running out of memory, isn't this a potential issue with the platform? I 
haven't tried setting a limit of 1 GB of RAM in the cloud, as the problem 
for me is that it keeps using up all its memory (i.e it will eventually hit 
the 1GB limit if I add more feeds). Using fewer threads is something that 
does help indeed, but still it doesn't fix the problem. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/90b34dc3-2fa6-4985-a223-bb85cb505cfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Python 3.7 service killed after exceeding memory limit

2018-11-20 Thread 'George (Cloud Platform Support)' via Google App Engine
Is your Cron handler deployed in the Standard or Flexible Environment? You 
seem to use a B4 instance class. To determine whether the instance class is 
indeed at the origin of these errors, you may consider upgrading to a 
higher instance class, and see if this makes any difference, and if then 
the Cron handler runs as expected. 

Instance class is not the only parameter that comes into consideration. You 
handler may generate memory leaks, and you should verify your handler's 
code accordingly. The fact that your handler spawns a few threads, and 
downloads pages from various feeds, is in itself a variable and to some 
extent random parameter, as the handler's workload and required memory may 
vary unpredictably. Is there any difference in behavior if you limit the 
number of feeds and pages to download to a fixed total maximum? If you 
don't notice any difference at first, you may try again with a lower number 
of feeds, to finally determine if this parameter is a factor, and to what 
extent. 

This discussion group is oriented more towards general opinions, trends, 
and issues of general nature touching the app engine. For coding and 
programming architecture, as well as tuning Cron handlers, you may be 
better served in dedicated forums such as stackoverflow, where experienced 
programmers are within reach and ready to help. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a52ed893-e19d-4938-9616-1a5a087c634c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: FYI: how to parse datastore export

2018-11-20 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
Thank you for your attention to this matter, however you may send your 
feedback on any documentation via "SEND FEEDBACK" link located at top right 
of each page. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8f35197f-fd76-4faf-8573-1ce0db1b6744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Pushed my site with deploy but old one remains

2018-11-20 Thread Nikos Katsikanis
Thx!

The yaml

runtime: python27
api_version: 1
threadsafe: true

handlers:
  - url: /
static_files: dist/index.html
upload: dist/index.html

  - url: /.*
static_files: dist/index.html
upload: dist/index.html

skip_files:
  - media
  - node_modules
  - public
  - src
  - tests
  - .git
  - .history


This is the debug output:

ROR: (gcloud.app.deploy) argument --verbosity: Invalid choice: 'debug.'. 
Did you mean 'debug'?
Usage: gcloud app deploy [DEPLOYABLES ...] [optional flags]
  optional flags may be  --bucket | --help | --image-url | --promote |
 --stop-previous-version | --version

For detailed information on this command and its flags, run:
  gcloud app deploy --help
➜  quantumvue git:(master) ✗ gcloud app deploy --verbosity=debug 
DEBUG: Running [gcloud.app.deploy] with arguments: [--verbosity: "debug"]
INFO: Refreshing access_token
DEBUG: API endpoint: [https://appengine.googleapis.com/], API version: [v1]
Services to deploy:

descriptor:  [/Users/nikos/WebstormProjects/quantumvue/app.yaml]
source:  [/Users/nikos/WebstormProjects/quantumvue]
target project:  [fluid-griffin-211109]
target service:  [default]
target version:  [20181120t180650]
target url:  [https://fluid-griffin-211109.appspot.com]


Do you want to continue (Y/n)?  y

DEBUG: No bucket specified, retrieving default bucket.
DEBUG: Using bucket [gs://staging.fluid-griffin-211109.appspot.com].
Beginning deployment of service [default]...
INFO: Ignoring directory [.git]: Directory matches ignore regex.
INFO: Ignoring file [.gitignore]: File matches ignore regex.
INFO: Ignoring directory [.history]: Directory matches ignore regex.
INFO: Ignoring directory [media]: Directory matches ignore regex.
INFO: Ignoring directory [node_modules]: Directory matches ignore regex.
INFO: Ignoring directory [public]: Directory matches ignore regex.
INFO: Ignoring directory [src]: Directory matches ignore regex.
INFO: Ignoring directory [tests]: Directory matches ignore regex.
DEBUG: Skipping upload of [dist/img/icons/favicon-32x32.png]
DEBUG: Skipping upload of [dist/manifest.json]
DEBUG: Skipping upload of 
[dist/precache-manifest.6a0655e517d145bc74f2ecca888e9b2f.js]
DEBUG: Skipping upload of [dist/img/training.f3c2b919.jpg]
DEBUG: Skipping upload of [dist/fonts/sofachrome.regular.444a89a5.ttf]
DEBUG: Skipping upload of [dist/img/icons/android-chrome-512x512.png]
DEBUG: Skipping upload of [source-context.json]
DEBUG: Skipping upload of [dist/img/cityn.1fdfe758.jpg]
DEBUG: Skipping upload of [.idea/misc.xml]
DEBUG: Skipping upload of [app.yaml]
DEBUG: Skipping upload of [.idea/encodings.xml]
DEBUG: Skipping upload of [CNAME]
DEBUG: Skipping upload of [dist/img/icons/safari-pinned-tab.svg]
DEBUG: Skipping upload of [.postcssrc.js]
DEBUG: Skipping upload of [dist/img/icons/mstile-150x150.png]
DEBUG: Skipping upload of [dist/favicon.ico]
DEBUG: Skipping upload of [dist/img/ewan.82cb9de3.jpg]
DEBUG: Skipping upload of [dist/img/icons/favicon-16x16.png]
DEBUG: Skipping upload of [.idea/inspectionProfiles/Project_Default.xml]
DEBUG: Skipping upload of [dist/img/icons/apple-touch-icon.png]
DEBUG: Skipping upload of [dist/img/icons/apple-touch-icon-152x152.png]
DEBUG: Skipping upload of [dist/index.html]
DEBUG: Skipping upload of [vue.config.js]
DEBUG: Skipping upload of [dist/logometa.png]
DEBUG: Skipping upload of [dist/img/handshake.b89e0fd3.jpg]
DEBUG: Skipping upload of [dist/img/agile_board.066ff473.jpg]
DEBUG: Skipping upload of [dist/img/canary.e66a59f9.jpg]
DEBUG: Skipping upload of [dist/img/cowork.e6fc9afc.jpg]
DEBUG: Skipping upload of [dist/brochures/Seminar Brochure.pdf]
DEBUG: Skipping upload of [.idea/quantumvue.iml]
DEBUG: Skipping upload of [.editorconfig]
DEBUG: Skipping upload of [dist/js/chunk-vendors.5722bf90.js.map]
DEBUG: Skipping upload of [dist/css/chunk-vendors.8e406b77.css]
DEBUG: Skipping upload of [dist/brochures/TypeScript-Bootcamp.pdf]
DEBUG: Skipping upload of [dist/brochures/JavaScript-Bootcamp.pdf]
DEBUG: Skipping upload of [.DS_Store]
DEBUG: Skipping upload of [dist/img/icons/apple-touch-icon-120x120.png]
DEBUG: Skipping upload of [dist/socialimg.jpg]
DEBUG: Skipping upload of [dist/img/nikosbw.e6567886.jpg]
DEBUG: Skipping upload of [dist/img/radio2.1b187566.jpg]
DEBUG: Skipping upload of [dist/img/finbar.d45e4a7f.png]
DEBUG: Skipping upload of [package.json]
DEBUG: Skipping upload of [dist/img/icons/android-chrome-192x192.png]
DEBUG: Skipping upload of [dist/js/chunk-vendors.5722bf90.js]
DEBUG: Skipping upload of [dist/img/globe.93a63387.jpg]
DEBUG: Skipping upload of [dist/img/cedd.14a193c3.jpg]
DEBUG: Skipping upload of [dist/img/desk.ec72ba66.jpg]
DEBUG: Skipping upload of [dist/brochures/JavaScript and Recruiting 
Masterclass.pdf]
DEBUG: Skipping upload of [dist/img/citywhite.6466bcc3.jpg]
DEBUG: Skipping upload of [jest.config.js]
DEBUG: Skipping upload of [package-lock.json]
DEBUG: Skipping upload of [dist/img/icons/apple-touch-icon-76x76.png]
DEBUG: Skipping 

[google-appengine] Discord server for GCloud / Google App Engine

2018-11-20 Thread Nikos Katsikanis
Hey guys, I made this server which could do with some more experts to come 
and talk about app.yaml files etc. We are finding the docs a bit too sparse.

This is our Official invite link https://discord.gg/9yGuxRV

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e406ab8b-7567-476b-a2c1-91046d714dd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Pushed my site with deploy but old one remains

2018-11-20 Thread 'George (Cloud Platform Support)' via Google App Engine
Hi Nikos, 

You should be able to manage versions and set the default one in the 
Developers' Console, navigating to App Engine --> Versions, where you can 
stop the unwanted version and start the preferred one. You may read more on 
the "Testing and Deploying your Application" documentation page 

. 

More information becomes available if your run the verbose command: gcloud 
app deploy --verbosity=debug. 

What is the output of gcloud info?

A copy of your app.yaml configuration file would provide more insight as 
well. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5534b38f-c1a2-4de3-9e51-2966810ddab6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] FYI: how to parse datastore export

2018-11-20 Thread Attila-Mihaly Balazs
There is a somewhat new service to export/import datastore entities: 
https://cloud.google.com/datastore/docs/export-import-entities#starting_managed_export_and_import_operations
 
(which previously could be done from the "datastore admin"). The 
documentation says:

"The output of a managed export uses the LevelDB log format." and links to 
this page: https://github.com/google/leveldb/blob/master/doc/log_format.md

However this doesn't seem to be entirely accurate. They seem to be doing 
some funky things with the CRC for one and marking the end of the file 
isn't in accordance with the documentation. Fortunately the Cloud SDK has 
code which produces such dumps (see RecordsWriter in 
google/appengine/ext/mapreduce/records.py) and furthermore has a reader 
(!). So here is a small python snippet to read the models from such a dump:

import sys
sys.path.append('/usr/lib/google-cloud-sdk/platform/google_appengine')

from google.appengine.datastore import entity_pb
from google.appengine.ext.mapreduce import records
from google.appengine.ext import ndb


class TestModel(ndb.Model):  # we need the definition of the model we want 
to read
foobar = ndb.StringProperty(indexed=False)


with open(sys.argv[1], 'rb') as f:
for r in records.RecordsReader(f, strict=True):
entity = TestModel._from_pb(entity_pb.EntityProto(r))
print(entity)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c3273421-3e7f-43cb-b3a0-01ac0e21b87e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Pushed my site with deploy but old one remains

2018-11-20 Thread Attila-Mihaly Balazs
Check if there are multiple versions of your app and if the new version has 
any traffic routed to it, or if the old version is still set to receive all 
the traffic.

Attila

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7fdb6250-96fb-4be8-a474-8b155db57ed1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google cloud add firewall rule to receive traffic from only certain IP's.

2018-11-20 Thread Sudhanshu Gaur
I am trying to add firewall rules for my compute engine instances, that's 
why I went to VPC network -> Firewall rules -> Create Firewall rule.

But it isn't working, please reply ASAP.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/79ed4362-08bf-4524-9f16-632ef48d02f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Pushed my site with deploy but old one remains

2018-11-20 Thread Nikos Katsikanis
I pushed my app with  gcloud app deploy and it still remains the old one

https://fluid-griffin-211109.appspot.com/

I spun up a new app and deployed there and it worked.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3b924eb5-8d1e-465a-b0d6-c24630f91614%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.