[google-appengine] Cannot generate endpoint discovery docs using endpointscfg
The endpointscfg.py utility is no longer working due to the backing Google webapis-discovery service not being available. This prevents the creation of endpoint discovery documents as well as client libraries. This has been logged in the issue tracker, but has not received any attention yet: https://issuetracker.google.com/issues/131557153 The utility will always fail with a traceback like this: Traceback (most recent call last): File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/endpointscfg.py", line 133, in run_file(__file__, globals()) File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/endpointscfg.py", line 129, in run_file execfile(_PATHS.script_file(script_name), globals_) File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/endpointscfg.py", line 561, in main(sys.argv) File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/endpointscfg.py", line 557, in main args.callback(args) File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/endpointscfg.py", line 426, in _GetClientLibCallback hostname=args.hostname, application_path=args.application) File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/endpointscfg.py", line 390, in _GetClientLib discovery_doc = _FetchDiscoveryDoc(config, 'rest') File "/Users/larrys/tools/google-cloud-sdk/platform/google_appengine/google/appengine/tools/endpointscfg.py", line 277, in _FetchDiscoveryDoc raise ServerRequestException(error) __main__.ServerRequestException: HTTP 404 (Not Found) error when communicating with URL: https://webapis-discovery.appspot.com/_ah/api/discovery/v1/apis/generate/rest. Response: 404 Not Found Error: Not Found -- 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/8a0373a5-711c-4e4a-b901-677a4e07fd42%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: Cannot generate endpoint discovery docs using endpointscfg
Great, thank you! On Tue, May 7, 2019 at 6:04 PM 'Aref Amiri (Cloud Platform Support)' via Google App Engine wrote: > Hi Larry, > > We will look into the issue reported on Issue Tracker > <https://issuetracker.google.com/issues/131557153>, and further updates > communication will be shared on that 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/5a1613a6-fdc7-4b74-b8b7-05c315308d8f%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/5a1613a6-fdc7-4b74-b8b7-05c315308d8f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Larry Schiefer M: 469-263-9388 email: larry.schie...@hiqes.com http://www.hiqes.com -- 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/CAEOXmp%2BhRy-eAci1n_5kq4pkTTYQdezQ1CY2xmoY_d4YShfpyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: Cannot generate endpoint discovery docs using endpointscfg
Yes, I was able to resolve the issue in our setup. We use pip to manage our python libraries local to the tree. We had to update the required version of the endpoints library in our requirements.txt file to point to the latest version, then use endpointcfg from that package rather than the one from the SDK. The instructions (while not obvious) were added in one of the comments back from the GAE team in the issue linked above: https://cloud.google.com/endpoints/docs/frameworks/python/gen_clients#generating_the_client_library_2 Good luck! On Monday, July 1, 2019 at 2:04:04 PM UTC-5, Jaskaran Singh wrote: > > Hi @Larry Schiefer > > did you find any solution for this? > > Please let me know i am facing this issue please. > > On Wednesday, May 8, 2019 at 6:41:42 PM UTC+5:30, Larry Schiefer wrote: >> >> Great, thank you! >> >> On Tue, May 7, 2019 at 6:04 PM 'Aref Amiri (Cloud Platform Support)' via >> Google App Engine wrote: >> >>> Hi Larry, >>> >>> We will look into the issue reported on Issue Tracker >>> <https://issuetracker.google.com/issues/131557153>, and further updates >>> communication will be shared on that 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-a...@googlegroups.com. >>> To post to this group, send email to google-a...@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/5a1613a6-fdc7-4b74-b8b7-05c315308d8f%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-appengine/5a1613a6-fdc7-4b74-b8b7-05c315308d8f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> -- >> >> Larry Schiefer >> M: 469-263-9388 >> email: larry@hiqes.com >> http://www.hiqes.com >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/70d2ed94-adff-447e-89bf-47f6e06b2977%40googlegroups.com.
Re: [google-appengine] App Engine Admin Panel
Open https://console.cloud.google.com. Select your project. In the left nav, look for "IAM & admin" and click it. The default view should show you all users and server accounts which have access to the project. Near the top there is an "Add" button. Click it. Insert an email address for the new member and select the appropriate role. You'll need to determine what the role means for that developer. If you are comfortable with them having the ability to modify anything in the cloud project (not just AppEngine), set them as an Editor. If you want finer grain control (such as AppEngine only), you'll need to set the role appropriately. On Fri, Dec 6, 2019 at 7:16 AM Anita Jarman wrote: > I am a complete novice and trying to get my mobile application completed > via an app developer. > The team I'm using is stating that the admin panel is not opening. How can > I get this accessible for my developer? > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/03bb2b87-773f-4bad-9d8e-b33153ccf347%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/03bb2b87-773f-4bad-9d8e-b33153ccf347%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Larry Schiefer M: 469-263-9388 email: larry.schie...@hiqes.com http://www.hiqes.com -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAEOXmpLDzhMF5DCJtSvqG28HfxYMDnUtksdme4sdA0NZ4jDoVg%40mail.gmail.com.
Re: [google-appengine] Can't I set a specific request timeout ? 24 hours for running an HTTP requets seems crazy.
App Engine's request handlers put a hard limit on how quickly the code must respond and if that is exceeded it internally throws an exception. This will result in a 500 error to the http caller and this can't be caught by your GAE code and it cannot be overridden. This is one of the tradeoffs when using a PaaS. If more control is desired/needed so your software is on a more general web server, you'll need to use something like Kubernetes or Compute Engine. Task queues / cron / cloud tasks can take substantially longer and are dependent on the type of GAE instance. In some cases the max time is 10 minutes, in other cases I believe it can go 24 hours. Regardless, if the work can be broken up in the task/cron so it detects when it is nearing some limit, it can save some info about where it was and re-schedule itself to run again. -Larry On Fri, Jan 31, 2020 at 7:59 AM Patrice B wrote: > Thank you for your time. I do understand that task queues and cron jobs > may need a longer timeout value. > > My question really is this : is there no way to configure an instance in > such a way that HTTP requests are killed on timeout after say 10 minutes ? > > And if there is no way to achieve this, as seems to be the case, then how > would you suggest to protect an instance against a request that would keep > running forever ?Should be start a timer and attempt to handle timeout > manually ? > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/cbc75d76-591f-4f58-bff3-42d6fe0b8b4c%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/cbc75d76-591f-4f58-bff3-42d6fe0b8b4c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Larry Schiefer M: 469-263-9388 email: larry.schie...@hiqes.com http://www.hiqes.com -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAEOXmpKtm2K57XvCs%2Bud8C6wb%3Dd_vtFg%3DbTjPD4zcBwQvL5nvw%40mail.gmail.com.
[google-appengine] Cloud Build Error when deploying GAE
Our project uses GAE standard, auto-scaling, Python 2.7. We deploy using gcloud and haven't changed anything regarding the way we deploy. However, now we are starting to see these types of errors when we deploy: File upload done. Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 42869100-9940-4821-8d40-3c52bf2fa268 status: FAILURE. Build error details: Failed to download at least one file. Cannot continue. . Check the build log for errors: https://console.cloud.google.com/gcr/builds/42869100-9940-4821-8d40-3c52bf2fa268?project= If we re-deploy (same command, same code) it then succeeds. If we follow the link in the error message, it always shows "unable to find the resource" error. Does anyone know why this is happening all of the sudden? Gcloud details: Google Cloud SDK 260.0.0 app-engine-python 1.9.86 app-engine-python-extras 1.9.86 bq 2.0.47 cloud-datastore-emulator 2.1.0 core 2019.08.23 gcloud gsutil 4.42 Thanks, Larry -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAEOXmpJiMCOkPW%2B2itQvWdvsXK4WOjRcqFgt9M-dUzczmH9R1w%40mail.gmail.com.
Re: [google-appengine] Re: Cloud Build Error when deploying GAE
Hi Pierre, Thank you for responding and asking for more details. Below is the full output from the 2nd run (project ID removed): Services to deploy: descriptor: [/Users/larrys/tmp/build/project/backend/app.yaml] source: [/Users/larrys/tmp/build/project/backend] target project: [XX] target service: [default] target version: [20200225t065208] target url: [https://XX.appspot.com] Configurations to update: descriptor: [/Users/larrys/tmp/build/project/backend/index.yaml] type:[datastore indexes] target project: [XX] descriptor: [/Users/larrys/tmp/build/project/backend/queue.yaml] type:[task queues] target project: [XX] Do you want to continue (Y/n)? y Beginning deployment of service [default]... ╔╗ ╠═ Uploading 1 file to Google Cloud Storage ═╣ ╚╝ File upload done. Updating service [default]...done. Setting traffic split for service [default]...done. Deployed service [default] to [https://XX.appspot.com] Updating config [index]...done. Updating config [queue]...done. Task queues have been updated. Visit the Cloud Platform Console Task Queues page to view your queues and cron jobs. Indexes are being rebuilt. This may take a moment. You can stream logs from the command line by running: $ gcloud app logs tail -s default To view your application in the web browser run: $ gcloud app browse --project=XX On Tue, Feb 25, 2020 at 12:41 PM 'Pierre-Yves (Google Cloud Support)' via Google App Engine wrote: > Hello Larry, > > Could you please provide the full console output after the re-try? This > may provide a hint as to which files were unsuccessfully downloaded in the > first try. > > On Tuesday, February 25, 2020 at 9:33:01 AM UTC-5, Larry Schiefer wrote: >> >> Our project uses GAE standard, auto-scaling, Python 2.7. We deploy using >> gcloud and haven't changed anything regarding the way we deploy. However, >> now we are starting to see these types of errors when we deploy: >> >> File upload done. >> Updating service [default]...failed. >> >> ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build >> 42869100-9940-4821-8d40-3c52bf2fa268 status: FAILURE. >> Build error details: Failed to download at least one file. Cannot >> continue. >> . >> Check the build log for errors: >> https://console.cloud.google.com/gcr/builds/42869100-9940-4821-8d40-3c52bf2fa268?project= >> >> If we re-deploy (same command, same code) it then succeeds. If we follow >> the link in the error message, it always shows "unable to find the >> resource" error. Does anyone know why this is happening all of the sudden? >> >> Gcloud details: >> Google Cloud SDK 260.0.0 >> app-engine-python 1.9.86 >> app-engine-python-extras 1.9.86 >> bq 2.0.47 >> cloud-datastore-emulator 2.1.0 >> core 2019.08.23 >> gcloud >> gsutil 4.42 >> >> Thanks, >> Larry >> >> -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/cb6a7625-18cb-4cb6-97eb-2f8b844a7ac4%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/cb6a7625-18cb-4cb6-97eb-2f8b844a7ac4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Larry Schiefer M: 469-263-9388 email: larry.schie...@hiqes.com http://www.hiqes.com -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAEOXmp%2Bn5nZHbCWCg9aT21a2Sqsk900wLrXPgg2p5r8AnKZ9eQ%40mail.gmail.com.
[google-appengine] Datastore Enum Types No Longer Serialized
We are using GAE python standard environment (Python 2.7) and suddenly our app started experiencing issues when serializing a datastore enum property. Our code has been deployed and working for over 6 months and today it is failing. For example: class SomeType(messages.Enum): FIRST_TYPE = 1 SECOND_TYPE = 2 THIRD_TYPE = 3 class SomeEntity(polymodel.PolyModel): # Other fields not shown something = msgprop.EnumProperty(SomeType, repeated=true) def get_msg_data(self): msg_data = { 'something': json.dumps(self.something) } return msg_data The call to json.dumps above started failing in our instance today with an error like this: TypeError: SomeType(FIRST_TYPE, 1) is not JSON serializable Is anyone else seeing this? Note that using the same enum type within a message where we are not calling json.dumps directly works fine. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/07b1be86-920a-4ff5-8a78-2a4a840273efn%40googlegroups.com.