[google-appengine] Re: Custom Domain much slower than $PROJECT_ID.appspot.com
I picked App Engine so I don't have to deal with load balancers so I'm pretty ignorant. Could you please explain how I overcome this slow response when using a custom domain by using a "serverless neg behind GCLB". I'm using Go in App Engine Standard. Also, how much extra does this cost? I think I remember that there is no free tier for the load balancer. On Tuesday, July 20, 2021 at 2:32:30 AM UTC+10 George (Cloud Platform Support) wrote: > Engineering let us know that they are no longer going to fix the > cross-region query flow. There is a readily available solution in the form > of a serverless neg behind GCLB, and has neither the latency nor > cross-region query flow problems, as well as having other functionality > like cache flushes and TLS cipher control. > > On Thursday, 09 August 2018 at 09:41:52 UTC-4 soul...@gmail.com wrote: > >> Hi, >> >> I've set up a custom domain for my service and I find that when accessing >> the service via that domain it is significantly slower than accessing it >> via its $PROJECT_ID.appspot.com address. I have determined that it's not >> an issue with DNS as the difference in latency is still there when using >> the resolved IP addresses directly. >> >> The slowdown is very noticeable: it varies from 2x to 10x slower on the >> custom domain, and the delay occurs in the period between the connection >> being established and the first byte being sent. >> >> Also note my app engine service is running in Sydney. >> >> Is it possible I've misconfigured something? My DNS is CNAMEd to >> ghs.googlehosted.com, but it seems to me that using custom domains for >> routing is simply really slow. Is there anything I can do to improve the >> latency here? >> >> Cheers, >> James >> > -- 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/6b09c02c-3f57-472e-9a33-c230a7776bc7n%40googlegroups.com.
Re: [google-appengine] Entities Not Visible in Developer Console
Thanks for this response - it turned out that I was using the wrong URL - I was going to https://console.developer.google.com/datastore <https://console.cloud.google.com/datastore> ( and have been for years ) - changing to https://console.cloud.google.com/datastore fixed things Dave On Sunday, 27 February 2022 at 23:02:42 UTC Wesley C (Google) wrote: > There have been no changes AFAIK (as far as I know). Going to > https://console.cloud.google.com/datastore brings up all my DS entities > as expected. > > However, people sometimes run into problems if they have >1 Google login, > say accounts for work, personal, school, etc. Click on your avatar in the > upper-right corner to ensure you're logged into the correct account, or > select the right one from there if you're not. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "A computer never does what you want... only what you tell it." > wesley chun :: @wescpy <http://twitter.com/wescpy> :: Software > Architect & Engineer > Developer Advocate at Google > <https://cloud.google.com/developers/advocates/wesley-chun/> by day; at > night: Core Python <http://amzn.com/dp/0132269937> > > > > On Sun, Feb 27, 2022 at 10:03 AM 'Dave Howes' via Google App Engine < > google-a...@googlegroups.com> wrote: > >> I have an application that has been running on App Engine Standard >> edition for a number of years. Today, when I went to the Datastore page of >> the developers console, I can't see any Entity kinds, and get the following >> message : >> >> "Request had invalid authentication credentials. Expected OAuth 2 access >> token, login cookie or other valid authentication credential. See >> https://developers.google.com/identity/sign-in/web/devconsole-project.; >> >> When I go to that page, it seems to be asking me to integrate Google >> SignIn with my application, which doesn't seem relevant. >> >> Has something changed regarding authentication that I have missed? >> >> Dave >> >> -- >> 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-appengi...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-appengine/33388dfa-ae44-4f4c-9952-928d82fde5d7n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-appengine/33388dfa-ae44-4f4c-9952-928d82fde5d7n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- 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/2344d23f-ff95-481c-ad24-bc1f7e7bff22n%40googlegroups.com.
[google-appengine] Entities Not Visible in Developer Console
I have an application that has been running on App Engine Standard edition for a number of years. Today, when I went to the Datastore page of the developers console, I can't see any Entity kinds, and get the following message : "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.; When I go to that page, it seems to be asking me to integrate Google SignIn with my application, which doesn't seem relevant. Has something changed regarding authentication that I have missed? Dave -- 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/33388dfa-ae44-4f4c-9952-928d82fde5d7n%40googlegroups.com.
[google-appengine] New Cloud SQL instance not connecting...
Hi all; I've racked my brains & read much docs but still nada.. so hoping for any pointers. Want another DB in parallel to upgrade things (PG 12, to 14). PG12 works fine, App Engine (flex, Node 16), Cloud Functions (Node 16; Python 3) and local proxy all zero issues. Update deploy script to new PG version, and run. Lovely new DB. Local proxy connects, grand. Redeploy Cloud Functions to pickup env vars, connects, grand (both Node & Python connect & run). Redeploy App Engine with new beta_settings name & env vars... and nope. ``` connect ENOTDIR /cloudsql/foobar:us-central1:foobar/.s.PGSQL.5432" ``` As-if the unix socket isn't there? Everything seems to look similar, instance, IAM, etc. Rename env vars & beta_settings back to old, works fine. Rename back to new, nope.. What am I missing? Thanks in advance for ANY ideas, as I'm out :S -- 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/84f6f0b0-9534-4bcb-9ca8-cab4cbd6782fn%40googlegroups.com.
[google-appengine] upgrading ca-certificates on a flex ruby instance
I'm having trouble building on a google appengine instance due to ssl errors with a "Let's Encrypt" domain. If I log into an existing instance, curl https://gems.contribsys.com/ fails. It is fixed with apt-get update && apt-get install ca-certificates. see this issue <https://github.com/mperham/sidekiq/issues/5008> too. But I can't figure out how to do that with a flex ruby instance at build time. Any ideas? Or is there a guide for converting an existing ruby appengine project to a custom project? thanks, dave -- 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/6316f1b6-f9ca-4dbb-8a88-636e6b96ff56n%40googlegroups.com.
[google-appengine] Using gunicorn w/ gevent, requests hang and workers throw [CRITICAL] WORKER TIMEOUT
When in the Google App Engine (flexible) environment, The request hangs and times out after 120 secs ... In the logs, I am getting [CRITICAL] WORKER TIMEOUT (pid:277) error when serving the Flask app with gunicorn and gevent workers. *here is app.yaml:* runtime: python env: flex entrypoint: gunicorn -c gunicorn.conf.py -b :$PORT main:app runtime_config: python_version: 3 threadsafe: false # This sample incurs costs to run on the App Engine flexible environment. # The settings below are to reduce costs during testing and are not appropriate # for production use. For more information, see: # https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml automatic_scaling: min_num_instances: 5 max_num_instances: 40 cool_down_period_sec: 180 cpu_utilization: target_utilization: 0.85 resources: cpu: 80 memory_gb: 80 disk_size_gb: 10 *here is gunicorn.conf.py: * import multiprocessing workers = multiprocessing.cpu_count() * 2 + 1 keepalive = 120 timeout = 120 worker_class = 'gevent' worker_connections = 1000 loglevel = 'debug' *here is requirements.txt:* Flask==1.0.3 gevent==1.4.0 gunicorn==19.9.0 google-cloud-bigtable google-cloud-happybase locustio==0.11.0 pyzmq==18.1.0 -- 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/40053905-cf2d-4421-8478-0864683878b8%40googlegroups.com.
[google-appengine] Will wildcard certificates be supported after Feb 27?
https://community.letsencrypt.org/t/staging-endpoint-for-acme-v2/49605 As per title, will wildcard certs work after ACME v2 be implemented. -- 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/88da3d8e-b986-46df-84d8-4710ff59ce02%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: Why is GAE not popular?
Hey everyone, I thought this was such a great question I wrote an article about it. https://in.3wks.com.au/whats-not-to-love-about-google-app-engine-31de6454e746 I'd appreciate your thoughts and feedback. Dave On Sunday, November 5, 2017 at 3:20:34 PM UTC+11, timh wrote: > > I would agree with Dave > > Its is a very good platform. I have been using it since 2008. > I think to get the most out of it, you have to invest some effort > understanding how to use well. > > The early adopters had to as there where really few scalable PAAS options > then. > > Now there are a lot more choices, however it still has some unmatched > features like to autoscaling which is hard with a lot other solutions, but > for many that isn't a major criteria. > > The other big benefit is being a true PAAS and not having to manage > OS/lower layers. Again a lot of people don't see the value vs investment > in knowledge. > > T > > > On Wednesday, November 1, 2017 at 9:12:45 PM UTC+8, Dave Kuhn wrote: >> >> Hey Torsten, it's a great question. We're mystified too! >> >> As others have said, initially it was an odd platform. Major web >> frameworks (e.g. Django, Spring etc) didn't originally work out of the box >> for a variety of reasons including the lack of a SQL database, file size >> limits, slow startup times and the Java class whitelist. That was a pretty >> big hurdle to overcome for most developers. Thankfully Google's put a ton >> of investment into the platform recently which has alleviated most, if not >> all of the pain there. >> >> I work at an agency called 3wks which has built over 200 projects on it >> over the last five years. In fact we work almost exclusively with GAE these >> days. I suppose we've learned a little bit about the platform by now – and >> we love it. It scales like a dream, not to mention it's super reliable. >> We've built everything from major media sites to payments platforms on it. >> Better still we haven't had to hire a single devops person in that whole >> time. >> >> PM if you'd like to chat further. >> >> On Tuesday, October 24, 2017 at 12:03:33 AM UTC+11, Torsten Därr wrote: >>> >>> Hi, I'm not a web developer but I've been running websites for many >>> years having them created by web development companies. I've been trying to >>> find a good company that is familiar with Google App Engine because I do >>> believe that the Google ecosystem is the right choice for my next sites and >>> projects. Can you give me any idea as to how I can find a web developing >>> company that has been using Google App Engine for a while successfully? >>> Many thanks, Torsten >>> >> -- 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/87c82f7f-1f41-4788-8734-bf60f03bbcad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: Why is GAE not popular?
Hey Torsten, it's a great question. We're mystified too! As others have said, initially it was an odd platform. Major web frameworks (e.g. Django, Spring etc) didn't originally work out of the box for a variety of reasons including the lack of a SQL database, file size limits, slow startup times and the Java class whitelist. That was a pretty big hurdle to overcome for most developers. Thankfully Google's put a ton of investment into the platform recently which has alleviated most, if not all of the pain there. I work at an agency called 3wks which has built over 200 projects on it over the last five years. In fact we work almost exclusively with GAE these days. I suppose we've learned a little bit about the platform by now – and we love it. It scales like a dream, not to mention it's super reliable. We've built everything from major media sites to payments platforms on it. Better still we haven't had to hire a single devops person in that whole time. PM if you'd like to chat further. On Tuesday, October 24, 2017 at 12:03:33 AM UTC+11, Torsten Därr wrote: > > Hi, I'm not a web developer but I've been running websites for many years > having them created by web development companies. I've been trying to find > a good company that is familiar with Google App Engine because I do believe > that the Google ecosystem is the right choice for my next sites and > projects. Can you give me any idea as to how I can find a web developing > company that has been using Google App Engine for a while successfully? > Many thanks, Torsten > -- 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/4d59e17c-652c-45ff-9c6f-dfbbb69e0187%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: User permissions question
Hi Nick, thanks very much for confirming what we had seen. Looking at the Access Control article it was not apparent that Project Owner was required for the first step. Best, -dave On Monday, February 13, 2017 at 11:24:56 AM UTC-5, Dave Chen wrote: > > Simple question: I'm trying to setup a new project with a user to > administer and deploy AppEngine applications. Ideally the user will have as > limited an IAM role as possible. My first try is to give the user > - Project Editor > - AppEngine.admin > > But when running ``gcloud app create`` the return is "insufficient > permissions". I've not been able to find this described in the > documentation--can someone please lend a hand? > Thanks! > -dave > > -- 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/b0ae883a-5483-4456-bcf6-954e90a42b6d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] User permissions question
Simple question: I'm trying to setup a new project with a user to administer and deploy AppEngine applications. Ideally the user will have as limited an IAM role as possible. My first try is to give the user - Project Editor - AppEngine.admin But when running ``gcloud app create`` the return is "insufficient permissions". I've not been able to find this described in the documentation--can someone please lend a hand? Thanks! -dave -- 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/fe071932-009b-40c3-baf9-ec4d944d632f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: Get result of async operation to Google speech-to-text
FYI, I experienced this same issue with LINEAR16 PCM data and setting the sampleRate to 16k. I then realized that my actual data was at 44.1k. After resampling, I get a reasonable response, although an error message or even an empty list of responses would be nice in the case that the recognizer didn't properly understand the audio. The response for my admittedly malformed request was this: {"metadata": {"@type": "type.googleapis.com/google.cloud.speech.v1beta1.AsyncRecognizeMetadata", "progressPercent": 100, "lastUpdateTime": "2016-09-29T21:57:16.761811Z", "startTime": "2016-09-29T21:56:56.355536Z"}, "response": {"@type": "type.googleapis.com/google.cloud.speech.v1beta1.AsyncRecognizeResponse"}, "name": "1622634151588923227", "done": true} I'm not sure if it's in the docs, but I take this to mean that the absence of results field in the response indicates that the speech api did not recognize the audio. On Wednesday, August 10, 2016 at 8:30:55 PM UTC-4, Bruno Leitão wrote: > > Hi all, > > I perform a async request to google speech-to-text, and now i do not know > how to get the result of operation. > > I already know that operation was successful > > Thanks > BL > -- 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/825ddc47-9cc7-4c7c-8591-46e4f13e8226%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] App Engine Go Program deadline exceeded error
We have a Go program running in an App Engine which receives an email and then does some processing. After about 100 seconds, our program stops because we get the following error: 1. Process terminated because the request deadline was exceeded. (Error code 123) 2. 3. I did some research and found this is a deadline so resources are not consumed for an infinite loop or some other bad situation. My question is, how do I respond with a "success" so that I don't get the deadline exceeded, or, do I have to increase my deadline time? If so, where/how do I do that. What is the best approach for an App Engine. Thanks Dave -- 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/7b78f082-bfce-48f2-856a-a437d52024b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Read Email Sent to AppEngine
I have an app engine that I set up, that receives email. My AppEngine is working fine, and I can parse the email etc... and start up the appropriate compute engines. Is there a way that I can see the email in human readable form somehow, and potentially even report to the email. I am sending it to the x...@my-project-name.appspotmail.com. I am not sure how to view this in an email client. Thanks Dave -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/c2dbd8bc-90d8-4742-98aa-aae4d32aa613%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Receiving Emails in Google Cloud Environment
I am currently using GO to catch an email on my AppEngine which has been working, but I am having trouble getting the compute engine started utilizing my own persistent disk. I was starting to prototype calling a Python script and attempted to deploy my GO application to the AppEngine using the goapp deploy command. I received a goapp command not found error. (Which has worked in the past perfectly) So I was confused, and went looking for the command and it does not seem to exist in the google-cloud-sdk/bin directory anymore? Then being really confused, I tried to reinstall it using the following commands, only to find out that it was no longer distributed? I am a bit lost, can anyone please provide some insight on how I am officially supposed to be deploying apps? There seems to be plenty of info out there still about the goapp deploy command, but I can't find anything on starting a compute engine using GO instead of Python. sudo gcloud components update gae-goWARNING: Component [gae-go] no longer exists.WARNING: The standalone App Engine SDKs are no longer distributed through the Cloud SDK(however, the appcfg and dev_appserver commands remain the official andsupported way of using App Engine from the command line). If you want tocontinue using these tools, they are available for download from the officialApp Engine download page here: https://cloud.google.com/appengine/downloads Thanks Dave On Saturday, August 22, 2015 at 12:32:44 PM UTC-6, Alex Martelli wrote: To receive email in app engine, see e.g https://cloud.google.com/appengine/docs/python/mail/receivingmail (there are similar docs for other app engine languages like Java and Go if you prefer those to Python). To spin up and otherwise control compute engine VMs from app engine, see e.g http://stackoverflow.com/questions/17393574/oauth-starting-a-google-compute-instance-from-within-google-app-engine and http://stackoverflow.com/questions/18389215/google-app-engine-service-account-to-start-cloud-compute-instances , and links from those Stack Overflow threads. Alex On Sat, Aug 22, 2015 at 10:44 AM, Dave Greenly dgree...@gmail.com javascript: wrote: I would like to set up an App Engine, or Compute engine that has the ability to receive an email. From the receipt of this email, I would want to start up a compute engine that would process some data. Can anyone point me to some documentation, or samples where this has been done? Thanks Dave -- 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-appengi...@googlegroups.com javascript:. To post to this group, send email to google-a...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0a9c85a6-b737-43ab-bd35-f27f977a28b1%40googlegroups.com https://groups.google.com/d/msgid/google-appengine/0a9c85a6-b737-43ab-bd35-f27f977a28b1%40googlegroups.com?utm_medium=emailutm_source=footer . 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/e3d1006a-0a3d-41cd-bf1c-a745c96f52c6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Receiving Emails in Google Cloud Environment
I downloaded the Go deployment script from this link as you suggested https://cloud.google.com/appengine/downloads and now I have the goapp command available. But when I run the command, I am getting an authentication error and can't figure out what exactly it is asking me to do. I used to just run the command goapp deploy and it would deploy my application to the App server. Now I get the following error: I am not sure what changed, but this command definitely worked before, and now I get this error. goapp deploy09:47 PM Application: sn-auto-data-mgmt; version: 109:47 PM Host: appengine.google.com09:47 PM Starting update of app: xx-xx-xxx-xxx, version: 109:47 PM Getting current resource limits.Your browser has been opened to visit: xIf your browser is on a different machine then exit and re-run thisapplication with the command-line parameter --noauth_local_webserve I don't seem to understand the syntax of the command or something. If I execute (I have tried a bunch of different options) goapp deploy --noauth_local_webserver app.yaml Then I just get the typical usage error:usage: deploy [deploy flags] [ application_dir | package | yaml_files...] Deploy uploads your application files to Google App Engine, and then compilesand lauches your application.The argument to this command should be your application's root directory or asingle package which contains an app.yaml file. If you are using the Modulesfeature, then you should pass multiple YAML files to deploy, rather than adirectory, to specify which modules to update. If no arguments are provided,deploy looks in your current directory for an app.yaml file.The -application flag sets the application ID, overriding the application valuefrom the app.yaml file.The -version flag sets the major version, overriding the version value from theapp.yaml file.The -oauth flag causes authentication to be done using OAuth2, instead ofinteractive password auth.This command wraps the appcfg.py command provided as part of the App EngineSDK. For help using that command directly, run: ./appcfg.py help update On Tue, Aug 25, 2015 at 12:19 PM, 'Alex Martelli' via Google App Engine google-appengine@googlegroups.com wrote: gcloud doesn't come with the language-specific deployment tools any more, as the message says just visit https://cloud.google.com/appengine/downloads and directly download whatever specific language deployment kits you want. (you can use https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy -- but as the preview indicates, that's still in beta, so, for production, the per-language deployment kits may be more suitable). All client libraries for Google APIs for Go are at https://github.com/google/google-api-go-client/ -- in particular, see https://github.com/google/google-api-go-client/tree/master/compute/v1 . Alex On Tue, Aug 25, 2015 at 10:04 AM, Dave Greenly dgreene...@gmail.com wrote: I am currently using GO to catch an email on my AppEngine which has been working, but I am having trouble getting the compute engine started utilizing my own persistent disk. I was starting to prototype calling a Python script and attempted to deploy my GO application to the AppEngine using the goapp deploy command. I received a goapp command not found error. (Which has worked in the past perfectly) So I was confused, and went looking for the command and it does not seem to exist in the google-cloud-sdk/bin directory anymore? Then being really confused, I tried to reinstall it using the following commands, only to find out that it was no longer distributed? I am a bit lost, can anyone please provide some insight on how I am officially supposed to be deploying apps? There seems to be plenty of info out there still about the goapp deploy command, but I can't find anything on starting a compute engine using GO instead of Python. sudo gcloud components update gae-goWARNING: Component [gae-go] no longer exists.WARNING: The standalone App Engine SDKs are no longer distributed through the Cloud SDK(however, the appcfg and dev_appserver commands remain the official andsupported way of using App Engine from the command line). If you want tocontinue using these tools, they are available for download from the officialApp Engine download page here: https://cloud.google.com/appengine/downloads Thanks Dave On Saturday, August 22, 2015 at 12:32:44 PM UTC-6, Alex Martelli wrote: To receive email in app engine, see e.g https://cloud.google.com/appengine/docs/python/mail/receivingmail (there are similar docs for other app engine languages like Java and Go if you prefer those to Python). To spin up and otherwise control compute engine VMs from app engine, see e.g http://stackoverflow.com/questions/17393574/oauth-starting-a-google-compute-instance-from-within-google-app-engine and http://stackoverflow.com/questions/18389215
Re: [google-appengine] Receiving Emails in Google Cloud Environment
I could not get the goapp deploy to work using the --noauth_local_server follwing the instructions. ( I am not running it on a machine with a browser). But I did get it to work using the appcfg.py directly. It then asked for the authentication code etc... like normal? ./appcfg.py --noauth_local_webserver update ///AppEngineCode/src/xxx/ And thanks for pointing out why it may have worked previously. (Just to keep my sanity!!! :)) Now I am having trouble finding what actual import statement to use in my Go application. Again, this is something that was working before but now it seems to have been moved, and I can't find it. This worked and deployed before: import ( fmt net/http net/mail github.com/google/google-api-go-client/compute/v1 golang.org/x/oauth2 golang.org/x/oauth2/google newappengine google.golang.org/appengine google.golang.org/appengine/urlfetch appengine ) But now, I cannot seem to find any of the API items (Do I have to download something or give privileges to see something?) These also do not work: (I tried all that have been commented out) // github.com/google/google-api-go-client //github.com/google/google-api-go-client/. //google.golang.org/api/compute/v1 //google.golang.org/api //github.com/google.golang.org/api/compute/v1 github.com/google/google-api-go-client/tree/master/compute/v1 On Tue, Aug 25, 2015 at 4:21 PM, 'Alex Martelli' via Google App Engine google-appengine@googlegroups.com wrote: *Do* you have a browser on the machine you're running goapp in? If so, then, when it says Your browser has been opened to visit then go to the tab it has opened and follow the instructions there. If not, that's when you need the --oauth --noauth_local_webserver (and visiting that URL from a browser on a different machine, etc, again per instruction) -- as documented at https://cloud.google.com/appengine/docs/go/tools/uploadinganapp . (I imagine the reason things worked previously for you is because goapp was riding piggyback on the auth tokens stored by gcloud, but now it needs its own). Alex On Tue, Aug 25, 2015 at 3:00 PM, Dave Greenly dgreene...@gmail.com wrote: I downloaded the Go deployment script from this link as you suggested https://cloud.google.com/appengine/downloads and now I have the goapp command available. But when I run the command, I am getting an authentication error and can't figure out what exactly it is asking me to do. I used to just run the command goapp deploy and it would deploy my application to the App server. Now I get the following error: I am not sure what changed, but this command definitely worked before, and now I get this error. goapp deploy09:47 PM Application: sn-auto-data-mgmt; version: 109:47 PM Host: appengine.google.com09:47 PM Starting update of app: xx-xx-xxx-xxx, version: 109:47 PM Getting current resource limits.Your browser has been opened to visit: xIf your browser is on a different machine then exit and re-run thisapplication with the command-line parameter --noauth_local_webserve I don't seem to understand the syntax of the command or something. If I execute (I have tried a bunch of different options) goapp deploy --noauth_local_webserver app.yaml Then I just get the typical usage error:usage: deploy [deploy flags] [ application_dir | package | yaml_files...] Deploy uploads your application files to Google App Engine, and then compilesand lauches your application.The argument to this command should be your application's root directory or asingle package which contains an app.yaml file. If you are using the Modulesfeature, then you should pass multiple YAML files to deploy, rather than adirectory, to specify which modules to update. If no arguments are provided,deploy looks in your current directory for an app.yaml file.The -application flag sets the application ID, overriding the application valuefrom the app.yaml file.The -version flag sets the major version, overriding the version value from theapp.yaml file.The -oauth flag causes authentication to be done using OAuth2, instead ofinteractive password auth.This command wraps the appcfg.py command provided as part of the App EngineSDK. For help using that command directly, run: ./appcfg.py help update On Tue, Aug 25, 2015 at 12:19 PM, 'Alex Martelli' via Google App Engine google-appengine@googlegroups.com wrote: gcloud doesn't come with the language-specific deployment tools any more, as the message says just visit https://cloud.google.com/appengine/downloads and directly download whatever specific language deployment kits you want. (you can use https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy -- but as the preview indicates, that's still in beta, so, for production, the per-language deployment kits may be more suitable). All client libraries for Google APIs for Go are at https://github.com
[google-appengine] Receiving Emails in Google Cloud Environment
I would like to set up an App Engine, or Compute engine that has the ability to receive an email. From the receipt of this email, I would want to start up a compute engine that would process some data. Can anyone point me to some documentation, or samples where this has been done? Thanks Dave -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0a9c85a6-b737-43ab-bd35-f27f977a28b1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
(what I was getting it with the previous post is: if any of you need this for your day jobs, you are welcome to try the same yourselves in the meantime ;) ) On Wednesday, April 29, 2015 at 11:56:52 AM UTC-5, Dave Loomer wrote: All: I won't have time to do this in the next several hours (my app engine app is not my day job), but I think tonight I'll try changing the api.twitter.com endpoint to point to a URL I own, and then examine the URLs / query strings and headers received from my prod vs. dev code to see if the encoding is any different. I figure that could help point to whether it's a urlfetch issue. Only other thing I can think of, if it's not urlfetch, is that the oauth signatures are being generated differently in prod vs. dev, due to a difference in some built-in python library on the prod server, and that will be much more difficult to debug since the timestamp and nonce prevent you from comparing dev vs prod requests character-by-character. On Wednesday, April 29, 2015 at 9:36:17 AM UTC-5, Ryan Barrett wrote: hi all! a number of us have started seeing twitter API errors in prod GAE in the last week or so. write calls and some search calls are returning HTTP 401 {errors:[{code:32,message:Could not authenticate you.}]} for all users with no code changes on our end. the particularly odd part is that the same calls with the same code, twitter app key/secret, and even *the exact same user access token key/secret* work fine in dev_appserver. we're on python and mostly using tweepy. our current theory is that twitter has blacklisted or graylisted app engine's external facing IPs. can you think of any other ideas? more details in this twitter dev forum post. https://twittercommunity.com/t/post-to-statuses-update-json-started-hitting-error-32-could-not-authenticate-you-with-no-code-changes/36495 thanks in advance! -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/2ce6529e-dfea-41cd-9891-ce6c9b37ed64%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
All: I won't have time to do this in the next several hours (my app engine app is not my day job), but I think tonight I'll try changing the api.twitter.com endpoint to point to a URL I own, and then examine the URLs / query strings and headers received from my prod vs. dev code to see if the encoding is any different. I figure that could help point to whether it's a urlfetch issue. Only other thing I can think of, if it's not urlfetch, is that the oauth signatures are being generated differently in prod vs. dev, due to a difference in some built-in python library on the prod server, and that will be much more difficult to debug since the timestamp and nonce prevent you from comparing dev vs prod requests character-by-character. On Wednesday, April 29, 2015 at 9:36:17 AM UTC-5, Ryan Barrett wrote: hi all! a number of us have started seeing twitter API errors in prod GAE in the last week or so. write calls and some search calls are returning HTTP 401 {errors:[{code:32,message:Could not authenticate you.}]} for all users with no code changes on our end. the particularly odd part is that the same calls with the same code, twitter app key/secret, and even *the exact same user access token key/secret* work fine in dev_appserver. we're on python and mostly using tweepy. our current theory is that twitter has blacklisted or graylisted app engine's external facing IPs. can you think of any other ideas? more details in this twitter dev forum post. https://twittercommunity.com/t/post-to-statuses-update-json-started-hitting-error-32-could-not-authenticate-you-with-no-code-changes/36495 thanks in advance! -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3c59b082-5b10-45fc-91bf-c5ea8ef6efa2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
I am reaching similar conclusions as David (I am @kidneybingos on that Twitter dev thread). I have tried lots of punctuation characters, and most succeed, but the following always cause errors: ' (apostrophe) ! * ( ) My conclusion is similarly that urlfetch is encoding something different as of a week ago. I, like others in the thread, had been running the exact same code with 100% success prior to then, and had been issuing these API calls hundreds of times per day for a few years. On Wednesday, April 29, 2015 at 10:44:01 AM UTC-5, David Fischer wrote: I'm seeing the same problem on Appengine production (and not with dev_appserver) and I'm using the same Twitter library. However, I was seeing some tweets succeeding and some failures. After another user in the Twitter Dev forum posted, I looked at the content of the tweets. The failing tweets all contained the ! character. After removing that character from tweets, I'm seeing a 100% success rate. My working theory is that urlfetch is somehow changing how parameters are escaped and that's causing the HMAC in Twitter's Oauth to be rejected. On Wednesday, April 29, 2015 at 7:36:17 AM UTC-7, Ryan Barrett wrote: hi all! a number of us have started seeing twitter API errors in prod GAE in the last week or so. write calls and some search calls are returning HTTP 401 {errors:[{code:32,message:Could not authenticate you.}]} for all users with no code changes on our end. the particularly odd part is that the same calls with the same code, twitter app key/secret, and even *the exact same user access token key/secret* work fine in dev_appserver. we're on python and mostly using tweepy. our current theory is that twitter has blacklisted or graylisted app engine's external facing IPs. can you think of any other ideas? more details in this twitter dev forum post. https://twittercommunity.com/t/post-to-statuses-update-json-started-hitting-error-32-could-not-authenticate-you-with-no-code-changes/36495 thanks in advance! -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d6d0df7b-a334-48cb-aa85-b0bf1506ffc6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
And just to reiterate - the characters seem to encode correctly (e.g. apostrophe encodes to %27), and at any rate, when I log the URLs generated by Tweepy the URLs generated on my dev instance are identical to prod. Yet it works in dev, not in prod. My guess is something is happening in the urlfetch code which we can't debug in prod. On Wednesday, April 29, 2015 at 11:46:38 AM UTC-5, Dave Loomer wrote: I am reaching similar conclusions as David (I am @kidneybingos on that Twitter dev thread). I have tried lots of punctuation characters, and most succeed, but the following always cause errors: ' (apostrophe) ! * ( ) My conclusion is similarly that urlfetch is encoding something different as of a week ago. I, like others in the thread, had been running the exact same code with 100% success prior to then, and had been issuing these API calls hundreds of times per day for a few years. On Wednesday, April 29, 2015 at 10:44:01 AM UTC-5, David Fischer wrote: I'm seeing the same problem on Appengine production (and not with dev_appserver) and I'm using the same Twitter library. However, I was seeing some tweets succeeding and some failures. After another user in the Twitter Dev forum posted, I looked at the content of the tweets. The failing tweets all contained the ! character. After removing that character from tweets, I'm seeing a 100% success rate. My working theory is that urlfetch is somehow changing how parameters are escaped and that's causing the HMAC in Twitter's Oauth to be rejected. On Wednesday, April 29, 2015 at 7:36:17 AM UTC-7, Ryan Barrett wrote: hi all! a number of us have started seeing twitter API errors in prod GAE in the last week or so. write calls and some search calls are returning HTTP 401 {errors:[{code:32,message:Could not authenticate you.}]} for all users with no code changes on our end. the particularly odd part is that the same calls with the same code, twitter app key/secret, and even *the exact same user access token key/secret* work fine in dev_appserver. we're on python and mostly using tweepy. our current theory is that twitter has blacklisted or graylisted app engine's external facing IPs. can you think of any other ideas? more details in this twitter dev forum post. https://twittercommunity.com/t/post-to-statuses-update-json-started-hitting-error-32-could-not-authenticate-you-with-no-code-changes/36495 thanks in advance! -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/8ab8ab7d-9741-4c79-8191-a75a45d90c77%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
Interesting. Perhaps the difference is that I tested only GET and not POST (still, I get behavioral differences between dev and test with GET, even if the request looks the same in my tests). Or, maybe your method uncovers something that mine does not. Could you try a GET (maybe using the search API) to see if there's a difference? On Apr 29, 2015, at 11:35 PM, Waleed wal...@ninua.com wrote: I simplified the test to one line: urlfetch.fetch(http://173.203.209.168/home/wizards?status=Test%27;, method=POST) On production, I receive: POST /home/wizards?status=Test' HTTP/1.1 And in local dev server, I receive: POST /home/wizards?status=Test%27 HTTP/1.1 -- You received this message because you are subscribed to a topic in the Google Groups Google App Engine group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/6ILDt39anbs/unsubscribe. To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/69cc83ab-30ce-48d3-a27b-fff113f44623%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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/40C54D41-40BE-42EC-9096-46674CBEE6DD%40gmail.com. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: twitter API suddenly returning error 32 “Could not authenticate you.” only in prod GAE
Well bad news, the URL and headers received from my hosted app from a Tweepy GET request were identical in prod vs. dev. We might need to go back to attacking from the Twitter side to see if they can explain why they're rejecting our API requests. I realized when requesting from a dummy URL I didn't need to worry about changing nonce and timestamp; I just hard-coded them (to realistic values) to see if the oauth signatures were the same. And they were. So I have failed to identify what these punctuation characters have to do with the authentication error. Caveat: the signatures are the same, but the 'Authorization' request header is slightly different; its elements are ordered differently in prod vs dev for whatever reason. But I'm not really concerned because the ordering is the same regardless of whether I use the punctuation; i.e. dev and prod Authorization headers differ in the same way even for requests that would return a successful response from the Twitter API. To see what I'm talking about, here is the Authorization request header in production: 'OAuth realm=, oauth_nonce=12345678, oauth_timestamp=1430361562, oauth_consumer_key=, oauth_signature_method=HMAC-SHA1, oauth_version=1.0, oauth_token=y, oauth_signature=AiqwN51QaZnwsBkikcVh9rENc84%3D' And here it is in dev: 'OAuth realm=, oauth_token=y, oauth_nonce=12345678, oauth_timestamp=1430361562, oauth_signature=AiqwN51QaZnwsBkikcVh9rENc84%3D, oauth_version=1.0, oauth_signature_method=HMAC-SHA1, oauth_consumer_key=' These are for the query dogs cat)s which I confirmed returns the authentication error from prod (but not dev). In each case the URL requested of my hosted app is: /1.1/users/search.json?q=dogs%20%26%20cat)s Note that the ) is not encoded. However, that remains the case when calling from dev, so I don't see why this could be the cause of the problem. On Wednesday, April 29, 2015 at 1:29:34 PM UTC-5, Ryan Barrett wrote: thanks for the comprehensive debugging, Dave and David! it definitely sounds like new header munging on app engine's part may be the problem. Dave, your idea of sending the API calls to a different endpoint and examining the headers sounds like a great lead. i'm looking forward to the results! as another data point, there may be more to it than just punctuation characters. i see the error with pretty much any tweet content and username. i reproduced it just now by attempting to tweet foo (just those three characters) as @schnarfed. sigh. On Wednesday, April 29, 2015 at 9:58:38 AM UTC-7, Dave Loomer wrote: (what I was getting it with the previous post is: if any of you need this for your day jobs, you are welcome to try the same yourselves in the meantime ;) ) On Wednesday, April 29, 2015 at 11:56:52 AM UTC-5, Dave Loomer wrote: All: I won't have time to do this in the next several hours (my app engine app is not my day job), but I think tonight I'll try changing the api.twitter.com endpoint to point to a URL I own, and then examine the URLs / query strings and headers received from my prod vs. dev code to see if the encoding is any different. I figure that could help point to whether it's a urlfetch issue. Only other thing I can think of, if it's not urlfetch, is that the oauth signatures are being generated differently in prod vs. dev, due to a difference in some built-in python library on the prod server, and that will be much more difficult to debug since the timestamp and nonce prevent you from comparing dev vs prod requests character-by-character. On Wednesday, April 29, 2015 at 9:36:17 AM UTC-5, Ryan Barrett wrote: hi all! a number of us have started seeing twitter API errors in prod GAE in the last week or so. write calls and some search calls are returning HTTP 401 {errors:[{code:32,message:Could not authenticate you.}]} for all users with no code changes on our end. the particularly odd part is that the same calls with the same code, twitter app key/secret, and even *the exact same user access token key/secret* work fine in dev_appserver. we're on python and mostly using tweepy. our current theory is that twitter has blacklisted or graylisted app engine's external facing IPs. can you think of any other ideas? more details in this twitter dev forum post. https://twittercommunity.com/t/post-to-statuses-update-json-started-hitting-error-32-could-not-authenticate-you-with-no-code-changes/36495 thanks in advance! -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google
[google-appengine] Re: Returning custom HTTP status codes from endpoints
I return custom wrapper object with a field for my own internal status codes. The wrapper object is a generic class so the playload/data can be whatever I need to return. Essentially unless something goes wrong my Endpoints always return 200. The caller has to inspect the object returned to get the true status code. It works fine but I loose a bit of type safety from my endpoints as it's not always clear what type of data the endpoint returns. On Tuesday, May 27, 2014 4:06:44 PM UTC-4, Matthew Flint wrote: Hello team, We all love REST-full-ness, so I'd like to return more REST-ful status codes from my endpoints. (Example: 201 CREATED from a POST endpoint which creates a resource). But I can't find any way to set the HTTP status code. Can anyone help please? Some other (sad-path) status codes seem to be driven by throwing an exception - eg. NotFoundException causes a 404. But I want to return a different status code *and* XML/JSON in the response. Thanks all! Matthew -- 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 http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Download logs from another project?
I'm using: LogService ls = LogServiceFactory.getLogService(); LogQuery lq = new LogQuery(); This works fine and I can download the logs from the GAE project I make the call from. I'm wondering if I can get logs from a different project? I don't see any way to use OAuth and provide credentials either in the LogService or the LogQuery to get logs from anywhere but the project which is executing. Is this possible? -- 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 http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] URL not found (404 error)
I had been using app engine for a while with no problems. In the last couple of days, my app stopped working. The URL for my app is not being found. If I redeploy the app, it works for a short time, and then stops working again. -- 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 http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Problems with deploying
Same here. Why is there no system status dashboard for admin infrastructure? The dashboard seems to ignore things like deployment errors, problems loading task queue pages in the admin console, etc. that seem to plague a lot of us regularly. I know there's an issue for it someplace, just too lazy to look it up right now ... On Fri, Feb 15, 2013 at 8:02 AM, Reiot reio...@gmail.com wrote: It's happening again. GAE dashboard extremely slow with 503 errors and couldn't deploy new version for an hour... On Saturday, February 2, 2013 8:27:33 PM UTC+9, Jesús Espejo wrote: Hello, Is anyone experimenting issues uploading applications to GAE? I cannot do it, it remains in the exponential back-off algorithm in 60 seconds forever... Also i have problems launching backends: Error: Server ErrorThe service you requested is not available yet. Please try again in 30 seconds. My app is for Python. Thanks in advance, Jesús. -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] App's admin console broken since last night's maintenance
Issues occurring over the past several hours: - Non-console-related: one of my backends wouldn't start. Tasks would just error out in the queue, and nothing (error or otherwise) showed in the logs for that backend. Instances page would show no instance running. This started last night but has since resolved itself. - Dashboard page shows Application statistics are currently unavailable. with no graphs, quota info, etc. Started this morning, still occurs. - Can't get into task queues. Persistent Server Error / A server error has occurred. (This had been an intermittent issue over the past few weeks but is now consistent). Started this morning, still occurs. This is M/S app mn-live. I have other M/S apps which do not exhibit this behavior, although the mn-live one is by far the heaviest in terms of data, queues, and general resource usage. All are paid apps (billing enabled). -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] Re: App's admin console broken since last night's maintenance
Correction on item #1 regarding backend not starting. This is still occurring. The log shows that some tasks did run on the backend overnight, but right now I can't start any tasks on it. Still shows no instances running. On Thursday, February 7, 2013 7:14:52 AM UTC-6, Dave Loomer wrote: Issues occurring over the past several hours: - Non-console-related: one of my backends wouldn't start. Tasks would just error out in the queue, and nothing (error or otherwise) showed in the logs for that backend. Instances page would show no instance running. This started last night but has since resolved itself. - Dashboard page shows Application statistics are currently unavailable. with no graphs, quota info, etc. Started this morning, still occurs. - Can't get into task queues. Persistent Server Error / A server error has occurred. (This had been an intermittent issue over the past few weeks but is now consistent). Started this morning, still occurs. This is M/S app mn-live. I have other M/S apps which do not exhibit this behavior, although the mn-live one is by far the heaviest in terms of data, queues, and general resource usage. All are paid apps (billing enabled). -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] App's admin console broken since last night's maintenance
All seems well now, except that my frequent-tasks backend still won't start. On Thu, Feb 7, 2013 at 7:42 AM, Sameer Lodha sams...@gmail.com wrote: Same issue with our HR Python25 Apps. Not able to View the Task Queue screen for any of our Apps. And the Dashboard is intermittently unavailable. On Thu, Feb 7, 2013 at 7:08 PM, Akitoshi Abe akitoshi...@gmail.comwrote: Hello, Same issue occurring in some of my apps. I checked more than 20 High Replication Python27 apps and about half of them have problem on Dashboard page Application statistics are currently unavailable... Akitoshi Abe 2013/2/7 Dave Loomer dloo...@gmail.com Issues occurring over the past several hours: - Non-console-related: one of my backends wouldn't start. Tasks would just error out in the queue, and nothing (error or otherwise) showed in the logs for that backend. Instances page would show no instance running. This started last night but has since resolved itself. - Dashboard page shows Application statistics are currently unavailable. with no graphs, quota info, etc. Started this morning, still occurs. - Can't get into task queues. Persistent Server Error / A server error has occurred. (This had been an intermittent issue over the past few weeks but is now consistent). Started this morning, still occurs. This is M/S app mn-live. I have other M/S apps which do not exhibit this behavior, although the mn-live one is by far the heaviest in terms of data, queues, and general resource usage. All are paid apps (billing enabled). -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/google-appengine?hl=en . For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: Problems with deploying
I'm getting the 503 error on backend frequent-tasks for app mn-live. There's an existing issue for this; not sure if everyone who experiences this needs to open a new issue or if we should just keep the issue open since it hasn't been resolved. http://code.google.com/p/googleappengine/issues/detail?id=6081 On Wednesday, February 6, 2013 3:51:34 PM UTC-6, Saurabh Gupta wrote: Thanks, Jason, that is good to know! On Saturday, February 2, 2013 2:30:39 PM UTC-5, Jason Brummett wrote: My account is premiere and has the same problem right now. I do have the option to contact the Enterprise Support center, but haven't done so yet, but I can confirm that the 500 bux didn't avoid the issue. On Saturday, February 2, 2013 1:26:01 PM UTC-5, Saurabh Gupta wrote: Do you know if premiere accounts get better uptime/service? I'm a paid app, but not a premiere app (not paying the $500/month) , so just wondering if there is a difference in the underlying uptime/ availability etc. in paid versus premiere. Thanks -- 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 http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] Google cloud sql instance
Hello, I am new to google cloud sql instance, and I try to develop an app engine application in JUno eclipse using google cloud sql. For my configuration under the properties, it is aking me the instance of the database which i know but i forget the database username and password. I don't know where should I go to llok for my database user name and password. Any help would be appreciated. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/m-FbYCw94k4J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] download_data performance?
I want to download the full database for one of my apps. Entities consume a relatively modest 2GB. (Indexes all told consume 19GB, but my impression is that download_data won't download these?) appcfg.py download_data has been running now for 12+ hours on a very fast downstream connection. Is there a faster way to download all data from a GAE app? Some settings I can tweak that might help move things along? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: download_data performance?
I'm not sure how I missed that! Thanks. -Dave On Jun 5, 10:53 am, c h how...@umich.edu wrote: by default download_data is throttled. read the docs for appcfg.py to see the settings and change them. On Tuesday, June 5, 2012 10:40:55 AM UTC-7, Dave Peck wrote: I want to download the full database for one of my apps. Entities consume a relatively modest 2GB. (Indexes all told consume 19GB, but my impression is that download_data won't download these?) appcfg.py download_data has been running now for 12+ hours on a very fast downstream connection. Is there a faster way to download all data from a GAE app? Some settings I can tweak that might help move things along? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: download_data performance?
Wait, hang on. 2GB of entities. Default bandwidth limit of 250,000 bytes/sec. So, assuming we exactly saturate that limit, it should take ~2 hours 43 minutes. Now, we'll never saturate, so maybe estimate a 2x or even 3x multiple of that time? That's still far less than the 14+ hours my download job has been running. -Dave On Jun 5, 11:03 am, Dave Peck davep...@gmail.com wrote: I'm not sure how I missed that! Thanks. -Dave On Jun 5, 10:53 am, c h how...@umich.edu wrote: by default download_data is throttled. read the docs for appcfg.py to see the settings and change them. On Tuesday, June 5, 2012 10:40:55 AM UTC-7, Dave Peck wrote: I want to download the full database for one of my apps. Entities consume a relatively modest 2GB. (Indexes all told consume 19GB, but my impression is that download_data won't download these?) appcfg.py download_data has been running now for 12+ hours on a very fast downstream connection. Is there a faster way to download all data from a GAE app? Some settings I can tweak that might help move things along? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: download_data performance?
~970MB right now. On Jun 5, 11:33 am, Barry Hunter barrybhun...@gmail.com wrote: How big is the data you have already downloaded? You should be able to see the size of the file being written to. (or find the temporally file its been written to) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] App Engine Framework Usage Statistics
I am trying to understand the most widely used java framework for developing server side web applications on Appengine. My goal is to pick the most heavily used one for an upcoming class. I have seen no usage statistics. Are there any available? Are java frameworks more or less popular than Python frameworks? The JEE 6 spec has Servlets 3.0, JSP 2.2 and JSF 2.0. Appengine is running none of these specifications. Appengine is currently running an old version of servlets 2.5. Is there any announced plan for Appengine to support servlets 3.0. Appengine does not directly support the full JSF 2.0 release. Is there any plan to? Since the latest versions of servlets, jsp and jsf are not currently supported by Appengine then is there one or two leading frameworks that java developers are using on Appengine. This information would be helpful for new users to best focus their initial learning to proven systems used by experienced developers. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Huge number of datastore reads?
Should be possible:http://code.google.com/appengine/docs/java/ config/appconfig.html#Cust... Ah, nice feature. Thanks; curious when this was added. Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Huge number of datastore reads?
Hi Chris, Thanks! Sorry that you had issues with Checkout. We continue to work with them on improvements that they should make to the service (and I've forward this thread on to them). Good to hear. If I can provide further details, just let me know. In the final analysis, it seemed to us that the billing update issued from my iPhone worked... but it didn't. More accurate feedback would have been helpful. Did you figure out why the DS reads increased? Is this still an issue? The operating theory at the moment is that a change to how our back- end services report back to App Engine triggered a latent (and really nasty) performance bug. We're still tracking down the details now; Alfred has been immensely helpful offline! Setting your budget higher is probably not a bad idea, but totally up to you. I think the pros and cons have been outlined (in one way or another) here :-) Indeed they were. ;-) Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Huge number of datastore reads?
My production application went over its daily budget today. Let's just say that my daily budget is roughly 3x what I've ever actually needed on my busiest day. Today was not my busiest day by a long shot. It appears that I serviced a small number of requests today. However, the dashboard claims that I performed roughly 10,000x the number of datastore read ops as requests, at a cost of $LOTS_OF_MONEY_FOR_ONE_DAY This seems like nonsense. My code hasn't changed in a while. I've never reached a quota quite like this. And there's no way my average request requires 10,000 read ops. Just no. Google team -- is there someone I can speak with? I'd like to understand in detail what happened and how to prevent it going forward. -Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Huge number of datastore reads?
The ID is get-cloak-live. No remote queries; everything would have to have been generated by handling requests (some of which were our cron jobs.) Thanks, Dave On Mar 6, 4:53 pm, Alfred Fuller arfuller+appeng...@google.com wrote: What is your app id? Did you perform a lot of queries using remote api? On Tue, Mar 6, 2012 at 4:40 PM, Dave Peck davep...@gmail.com wrote: My production application went over its daily budget today. Let's just say that my daily budget is roughly 3x what I've ever actually needed on my busiest day. Today was not my busiest day by a long shot. It appears that I serviced a small number of requests today. However, the dashboard claims that I performed roughly 10,000x the number of datastore read ops as requests, at a cost of $LOTS_OF_MONEY_FOR_ONE_DAY This seems like nonsense. My code hasn't changed in a while. I've never reached a quota quite like this. And there's no way my average request requires 10,000 read ops. Just no. Google team -- is there someone I can speak with? I'd like to understand in detail what happened and how to prevent it going forward. -Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Huge number of datastore reads?
To be clear: I lost real customers and real money today. The problem was compounded by apparent issues with Google Checkout on the iPhone. I got a downtime notification and quickly determined the root cause. I was on the road, so I pulled over and immediately logged in with my iPhone to update the billing information. I more-than- doubled our daily budget and submitted it. It looked like everything worked. (That is to say: the form let me type in a new budget and submit it.) Billing was frozen for 30 minutes. I kept refreshing, only to discover that for whatever reason _it hadn't worked_. 30 minutes later, I tried again. This doomed us to another 30 minutes of downtime. It wasn't until I raced home to my laptop that I was able to successfully update the billing. This needs to be fixed. The worst of it: we looked like rank amateurs in several ways, but perhaps none greater than our 500 page. App Engine decided to display a generic Google-logo'd Over Quota 500 page instead of our custom 500 error page. What customer in their right mind, after seeing such an embarrassment, would think that we're serious about our business? -Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Huge number of datastore reads?
Although I was hoping for useful, non-judgmental replies too. -Dave On Mar 6, 10:08 pm, Brandon Wirtz drak...@digerat.com wrote: The worst of it: we looked like rank amateurs in several ways, but perhaps I'd say no offense but I'd be lying. More than doubled My Daily budget sits at 50x my biggest recorded day on almost every app I have. If your model is to make money, and you are pretty sure you don't have a bug that is going to cost you millions of dollars. There is no reason to not set your budget sky high. If you have only 30 minutes to get your app back with in quota, you are rank amateurs. Your Scale is only limited by your budget. If you aren't going to set you budget to as large as you imagine you would want to scale you are doing it wrong. If you are going to run with the training wheels on, don't be surprised when you hit a pot hole and your back tire just spins with you going nowhere. -Brandon -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
In my case, since I was getting the 20-second delay almost 100% of the time, setting countdown=1 was the answer. If you only see it happen every 20 or more request then of course it won't help. In my case I also run all tasks on the backend. They're slightly more expensive per hour than frontends (due merely to the lower number of free hours) but in my case I more than make up for it with the fact that I have full control on the number of requests that will spin up, and I need to be able to control that number separately for tasks vs. users hitting my site. On Feb 5, 11:24 am, Carter jcmas...@gmail.com wrote: We regularly but erratically see 10-20 minute delays in running push queue tasks. The tasks sit in the queue with ETA as high as 20 minutes *ago* without any errors or retries. (the problem seems unrelated to queue settings since our Maximum Rate, Enorced Rate and Maximum Concurrent all far exceed the queue's throughput at the time of the delays) Any tips or clues on how to prevent this while still using push queues without backends? On Feb 1, 9:03 pm, Robert Kluin robert.kl...@gmail.com wrote: Hey Dave, Hopefully Nick will be able to offer some insight into the cause of your issues. I'd guess it is something related to having very few tasks (one) in thequeue, and it not getting scheduled rapidly. In your case, you could use pull queues to immediately fetch the nexttaskwhen finished with atask. Or even to fetch multiple tasks and do the work in parallel. Basically you'd have a backend that ran a loop (possibly initiated via a pushtask) that would lease atask, or tasks, from the pullqueue, do the work, delete those tasks, then repeat from the lease stage. The cool thing is that if you're, for example, using URL Fetch to pull data this might let you do it in parallel without increasing your costs much (if any). Robert On Wed, Feb 1, 2012 at 14:25, Dave Loomer dloo...@gmail.com wrote: Here are logs from three consecutivetaskexecutions over the past weekend, with only identifying information removed. You'll see that eachtask completes in a few milliseconds, but are 20 seconds apart (remember: I've already checked myqueueconfigurations, nothing else is running on this backend, and I later solved the problem by setting countdown=1 when adding thetask). I don't see any pending latency mentioned. 0.1.0.2 - - [27/Jan/2012:18:33:20 -0800] 200 124 ms=10 cpu_ms=47 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304913211 instance=0 0.1.0.2 - - [27/Jan/2012:18:33:00 -0800] 200 124 ms=11 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304912461 instance=0 0.1.0.2 - - [27/Jan/2012:18:32:41 -0800] 200 124 ms=26 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=4499136807998063691 instance=0 The 20 seconds seems to happen regardless of length oftask. Even though my tasks mostly complete in a couple minutes, I do have cases where they take several minutes, and I don't see a difference. Of course, when atasktakes 5-10 minutes to complete, I'm going to notice and care about a 20-second delaymuch less than when I'm trying to spin through a few tasks in a minute (which is a real-world need for me as well). When reading up on pull queues a while back, I was a little confused about where I would use them with my own backends. I definitely could see an application for offloading work to an AWS Linux instance. But in either case, could you explain why it might help? I saw you mention in a separate thread how M/S can perform differently from HRD even in cases where one wouldn't expect to see a difference. When I get around to it I'm going to create a tiny HRD app and run the same tests through that. I also wonder if M/S could be responsible for frequent latencies in my admin console. Those have gotten more frequent and annoying the past couple of months ... -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/lbNQRQdSx0AJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
that I have full control on the number of requests that will spin up, err, number of instances that will spin up, rather ... On Feb 5, 11:30 am, Dave Loomer dloo...@gmail.com wrote: In my case, since I was getting the 20-second delay almost 100% of the time, setting countdown=1 was the answer. If you only see it happen every 20 or more request then of course it won't help. In my case I also run all tasks on the backend. They're slightly more expensive per hour than frontends (due merely to the lower number of free hours) but in my case I more than make up for it with the fact that I have full control on the number of requests that will spin up, and I need to be able to control that number separately for tasks vs. users hitting my site. On Feb 5, 11:24 am, Carter jcmas...@gmail.com wrote: We regularly but erratically see 10-20 minute delays in running push queue tasks. The tasks sit in the queue with ETA as high as 20 minutes *ago* without any errors or retries. (the problem seems unrelated to queue settings since our Maximum Rate, Enorced Rate and Maximum Concurrent all far exceed the queue's throughput at the time of the delays) Any tips or clues on how to prevent this while still using push queues without backends? On Feb 1, 9:03 pm, Robert Kluin robert.kl...@gmail.com wrote: Hey Dave, Hopefully Nick will be able to offer some insight into the cause of your issues. I'd guess it is something related to having very few tasks (one) in thequeue, and it not getting scheduled rapidly. In your case, you could use pull queues to immediately fetch the nexttaskwhen finished with atask. Or even to fetch multiple tasks and do the work in parallel. Basically you'd have a backend that ran a loop (possibly initiated via a pushtask) that would lease atask, or tasks, from the pullqueue, do the work, delete those tasks, then repeat from the lease stage. The cool thing is that if you're, for example, using URL Fetch to pull data this might let you do it in parallel without increasing your costs much (if any). Robert On Wed, Feb 1, 2012 at 14:25, Dave Loomer dloo...@gmail.com wrote: Here are logs from three consecutivetaskexecutions over the past weekend, with only identifying information removed. You'll see that eachtask completes in a few milliseconds, but are 20 seconds apart (remember: I've already checked myqueueconfigurations, nothing else is running on this backend, and I later solved the problem by setting countdown=1 when adding thetask). I don't see any pending latency mentioned. 0.1.0.2 - - [27/Jan/2012:18:33:20 -0800] 200 124 ms=10 cpu_ms=47 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304913211 instance=0 0.1.0.2 - - [27/Jan/2012:18:33:00 -0800] 200 124 ms=11 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304912461 instance=0 0.1.0.2 - - [27/Jan/2012:18:32:41 -0800] 200 124 ms=26 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=4499136807998063691 instance=0 The 20 seconds seems to happen regardless of length oftask. Even though my tasks mostly complete in a couple minutes, I do have cases where they take several minutes, and I don't see a difference. Of course, when atasktakes 5-10 minutes to complete, I'm going to notice and care about a 20-second delaymuch less than when I'm trying to spin through a few tasks in a minute (which is a real-world need for me as well). When reading up on pull queues a while back, I was a little confused about where I would use them with my own backends. I definitely could see an application for offloading work to an AWS Linux instance. But in either case, could you explain why it might help? I saw you mention in a separate thread how M/S can perform differently from HRD even in cases where one wouldn't expect to see a difference. When I get around to it I'm going to create a tiny HRD app and run the same tests through that. I also wonder if M/S could be responsible for frequent latencies in my admin console. Those have gotten more frequent and annoying the past couple of months ... -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/lbNQRQdSx0AJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
As the OP you may be interested in my app ID as well: mn-live. I provided some logs a few posts back and some exhaustive details at the beginning. However, you won't see this issue popping up anymore on my app since I solved it by setting countdown=1 a week ago. Since then, tasks start very reliably after a 1.5 second delay. If I remove the countdown parameter, then it returns to 20 seconds (+/- .01) pretty reliably. On Feb 5, 5:59 pm, Nicholas Verne nve...@google.com wrote: We would have no need to shoot anyone. However, the explanations quickly become obsolete. They enter the folklore in the form that was current at the time and become entrenched as incorrect information when the implementations have changed. Task Queues use best effort scheduling. They're not real time all the time, although when our best efforts are running smoothly they can appear real time. For scheduling, the task eta marks the earliest time at which the task can run. We can't guarantee that a task WILL run at that time. Steve, we're interested to know about the 10-20 minute delays you've seen. Can you tell us the app id, queue, and whether the tasks were added transactionally? An example from your logs would be very helpful. Nick Verne On Mon, Feb 6, 2012 at 9:27 AM, stevep prosse...@gmail.com wrote: Carter wrote: We regularly but erratically see 10-20 minute delays in running push queue tasks. Been a burr under the saddle forever. What I really don't understand -- assuming GAE engineers never see the benefit of providing at least one priority/reliability queue -- is why the heck there is never any explanation about how tasks get scheduled, and why these weird delays happen. It is either: 1) If we told you we would have to shoot you, or 2) We can't see the benefit of you understanding this. -stevep On Feb 5, 9:24 am, Carter jcmas...@gmail.com wrote: We regularly but erratically see 10-20 minute delays in running push queue tasks. The tasks sit in the queue with ETA as high as 20 minutes *ago* without any errors or retries. (the problem seems unrelated to queue settings since our Maximum Rate, Enorced Rate and Maximum Concurrent all far exceed the queue's throughput at the time of the delays) Any tips or clues on how to prevent this while still using push queues without backends? On Feb 1, 9:03 pm, Robert Kluin robert.kl...@gmail.com wrote: Hey Dave, Hopefully Nick will be able to offer some insight into the cause of your issues. I'd guess it is something related to having very few tasks (one) in thequeue, and it not getting scheduled rapidly. In your case, you could use pull queues to immediately fetch the nexttaskwhen finished with atask. Or even to fetch multiple tasks and do the work in parallel. Basically you'd have a backend that ran a loop (possibly initiated via a pushtask) that would lease atask, or tasks, from the pullqueue, do the work, delete those tasks, then repeat from the lease stage. The cool thing is that if you're, for example, using URL Fetch to pull data this might let you do it in parallel without increasing your costs much (if any). Robert On Wed, Feb 1, 2012 at 14:25, Dave Loomer dloo...@gmail.com wrote: Here are logs from three consecutivetaskexecutions over the past weekend, with only identifying information removed. You'll see that eachtask completes in a few milliseconds, but are 20 seconds apart (remember: I've already checked myqueueconfigurations, nothing else is running on this backend, and I later solved the problem by setting countdown=1 when adding thetask). I don't see any pending latency mentioned. 0.1.0.2 - - [27/Jan/2012:18:33:20 -0800] 200 124 ms=10 cpu_ms=47 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304913211 instance=0 0.1.0.2 - - [27/Jan/2012:18:33:00 -0800] 200 124 ms=11 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304912461 instance=0 0.1.0.2 - - [27/Jan/2012:18:32:41 -0800] 200 124 ms=26 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=4499136807998063691 instance=0 The 20 seconds seems to happen regardless of length oftask. Even though my tasks mostly complete in a couple minutes, I do have cases where they take several minutes, and I don't see a difference. Of course, when atasktakes 5-10 minutes to complete, I'm going to notice and care about a 20-second delaymuch less than when I'm trying to spin through a few tasks in a minute (which is a real-world need for me as well). When reading up on pull queues a while back, I was a little confused about where I would use them with my own backends. I definitely could see an application for offloading work to an AWS Linux instance. But in either
Re: [google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
Here are logs from three consecutive task executions over the past weekend, with only identifying information removed. You'll see that each task completes in a few milliseconds, but are 20 seconds apart (remember: I've already checked my queue configurations, nothing else is running on this backend, and I later solved the problem by setting countdown=1 when adding the task). I don't see any pending latency mentioned. 0.1.0.2 - - [27/Jan/2012:18:33:20 -0800] 200 124 ms=10 cpu_ms=47 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304913211 instance=0 0.1.0.2 - - [27/Jan/2012:18:33:00 -0800] 200 124 ms=11 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=15804554889304912461 instance=0 0.1.0.2 - - [27/Jan/2012:18:32:41 -0800] 200 124 ms=26 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.60 queue_name=overnight-tasks task_name=4499136807998063691 instance=0 The 20 seconds seems to happen regardless of length of task. Even though my tasks mostly complete in a couple minutes, I do have cases where they take several minutes, and I don't see a difference. Of course, when a task takes 5-10 minutes to complete, I'm going to notice and care about a 20-second delay much less than when I'm trying to spin through a few tasks in a minute (which is a real-world need for me as well). When reading up on pull queues a while back, I was a little confused about where I would use them with my own backends. I definitely could see an application for offloading work to an AWS Linux instance. But in either case, could you explain why it might help? I saw you mention in a separate thread how M/S can perform differently from HRD even in cases where one wouldn't expect to see a difference. When I get around to it I'm going to create a tiny HRD app and run the same tests through that. I also wonder if M/S could be responsible for frequent latencies in my admin console. Those have gotten more frequent and annoying the past couple of months ... -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/lbNQRQdSx0AJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
The tasks are not run transactionally, and in my testing the task is the only one in queue. In fact, I also ran the tests *somewhat* successfully on a separate app where this was the only code running. I say somewhat because, as I stated in my original post, the 20-second delays didn't happen every time; more like once every four requests. But when they did occur, it was almost precisely 20 seconds. Below is the entirety of my handler: class AdhocHandler2(webapp.RequestHandler): def get(self): task_create_time = datetime.datetime.now() import string task_create_time_s = task_create_time.strftime(%Y-%m-%d %H:%M:%S) + . + string.zfill(task_create_time.microsecond, 6) t = taskqueue.Task(url='/batch/adhoc', params={'task_create_time': task_create_time_s}, target='overnight-external-data', method='GET') t.add(queue_name = 'overnight-tasks') -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/orTdYjTm7SkJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
To do one better, here is the entirety of the Python code: #!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import wsgiref.handlers import datetime, time from google.appengine.ext import webapp, db from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import taskqueue class AdhocHandler2(webapp.RequestHandler): def get(self): task_create_time = datetime.datetime.now() import string task_create_time_s = task_create_time.strftime(%Y-%m-%d %H:%M:%S) + . + string.zfill(task_create_time.microsecond, 6) t = taskqueue.Task(url='/batch/adhoc', params={'task_create_time': task_create_time_s}, target='overnight-external-data', method='GET') t.add(queue_name = 'overnight-tasks') def main(): application = webapp.WSGIApplication([ \ ('/batch/adhoc2', AdhocHandler2), \ ], debug=True) run_wsgi_app(application) if __name__ == '__main__': main() -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/ELiNYLg4B9cJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
And here is backends.yaml: backends: - name: overnight-external-data class: B1 options: dynamic instances: 1 and queue.yaml: queue: - name: overnight-tasks rate: 50/s bucket_size: 50 retry_parameters: max_backoff_seconds: 1800 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/nIP2SeQDMUsJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
Finally, it's probably an important clue that when I explicitly set countdown=1 when creating the task, the delay in executing the task is always almost exactly 1.5 seconds (not sure why it's not 1.0). If I don't set a countdown value, it's almost as if I had set countdown=20. Except that the ETA in the Task Queue Details page in the admin console reflects the approximate time the task was created, rather than adding 20 seconds to that. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/sbd5Clqozg8J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Weird latency
My ignorant question: Why are we discussing M/S vs. HRD when the OP said he isn't accessing any data in serving his page? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/T8WGpRtowF4J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
Hi Robert, When targeting backend thebackend, this was done merely by specifying target=thebackend when creating the Task object. And then in backends.yaml I modify the instances parameter for the backend in question for each of my various tests. I'm not really too concerned about failfast, so I'll skip that one for the moment ... I haven't played with max concurrent requests, but in the test where I used a frontend, I did not see any additional instances spin up (and my site is very low-use, so there was probably a max of 1-2 instances to start with). I see the same length of delay (~20 seconds) whether I'm testing with my rapid-fire test handler, or running in production with tasks that spend 1+ minutes doing actual work (lots of RPCs- datastore, URLfetch, memcache). Hope this helps. Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/xF79RpgjpAYJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
Interesting. I saw your thread but wasn't entirely sure if it was the issue. I think the thing that threw me off was that your delays were being reflected in the request ms in the logs, while in my case they mostly aren't. Does setting the task countdown work for you? Or is ~1 second delay still too much in your case? On Jan 29, 10:24 am, pdknsk pdk...@googlemail.com wrote: I had the same problem, with often quite exact 20 seconds delays. More details in this thread. http://groups.google.com/group/google-appengine/browse_thread/thread/... In another configuration, the delay increased to several minutes. Please star this bug. http://code.google.com/p/googleappengine/issues/detail?id=6022 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] (mostly) Consistent 20-second delay in starting backend tasks
The abstract is that I have a hobby app (granted, I put a lot of time and energy into it) that does tons of mapreduce-esque backend processing through tasks that execute, then create a new task for the next step, etc. My site will never generate revenue so I aim to someday get my daily costs down to about a dollar or not much more; thus, I'm trying to do everything by limiting each of my backends (3 total backends each doing specialized tasks) to one instance each, while at the same time it's obviously important that tasks complete as quickly as possible. I'm looking for the happy medium between too many and too few instances; while I may find that adding instances or breaking up tasks so that I have fewer tasks running longer can to some degree address the concerns listed below, I've still discovered some things that concern and confuse me and I'd love to know the answers regardless. *My concerns in summary*: I have noticed that even though the logs showed about 1 minute request handling time for each executed task, I was only executing about two tasks every three minutes. After looking into it, the problem seems to lie in the fact that I am configuring each backend with just a single instance. Running some metrics on a mapreduce batch sequence run on a single instance, a batch run that takes 255 minutes to complete through the executing of 183 tasks spends 82 of those minutes waiting for tasks to start after adding them to the queue. I've done lots and lots of analysis running controlled tests to assure myself that the issue is unrelated to my backend or task queue configuration, nor is my code doing anything that should cause any of this. There are no errors shown in the logs, and the logs (and my knowledge of my own app) also show me that none of my code is doing anything at all in the task queue or on the backend in question during these 82 minutes of waiting. It all seems to come down to how the GAE scheduler handles scheduling of requests or tasks on a single-instance backend. *Details* - Backend is standard B1 Dynamic. To create a more controlled and reproducible test I wrote a handler that does nothing but generate a new task which in turn runs that same handler, rinse and repeat. These requests, which the logs show to complete in a few milliseconds (with some exceptions; see below), exhibit pretty much the exact same delays which my production code, which takes an average of a minute to complete a task because it does actual work, shows. A variation of the simplified bare-bones handler I created adds a wrinkle of passing an argument to the launched task which records the time at which the task was added, so that the top of the handler can compare the current time with the time that the task was created in order to estimate the delay in starting the task. The delay is generally very, very close to exactly 20 seconds when running on a single-instance backend, which is more or less the same behavior as my production code and the bare-bones example described above. *Tests* Note that each of the scenarios below has been run many, many times, switching frequently from one test to the other to more or less eliminate the effects of periodic conditions in the infrastructure. Results have been extremely consistent so I'm confident in the numbers. * * 1. *Run the task on a frontend rather than on my backend*. *Result: 100 tasks complete in a second or two. Curiously, the logs show that all requests are served by the same frontend instance.* 2. *Increase the number of instances on my backend to 5*. *Result: Essentially the same performance as when running the tasks on the frontend. **Delay in starting a task ranges 0.01-.05 seconds. **By the time all tasks complete, two instances are spun up. Instances page shows requests distributed evenly amongst the two instances. Logs show that requests complete in 7-15 ms.* * * 3. *4-instance backend*. *Result: By the time all tasks complete, two instances are spun up. Instances page shows requests distributed evenly amongst the two instances. Delay in starting a task ranges 0.28-.1.2 seconds. Logs show that requests themselves complete in around 500 ms.* *Observations/Concerns: If the same number of instances are running as in the 5-instance configuration, with an ample number of idle instances waiting and ready, why are the results different? In the real world these results are just as acceptable to me as in the 5-instance configuration, because in the end it doesn't change cost much, but I'm still curious. And really, 500 ms is a long time to serve a request whose handler does nothing but add another task.* 4. *3-instance backend*. *Result: By the time all tasks complete, 3 instances (yes, three, as opposed to two when configuring my backend with 4-5 instances) are spun up. Instances page shows the vast majority (75-85%) of requests go to one of the instances. Delay in starting a task ranges 0.01-.1.2
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
FWIW should note that my app is master/slave. The pressure to move to HRD/Python 2.7 is very real, but right now I have too many concerns with replication delays and reading others' migration headaches with data volumes similar to mine, so I have no short-term plans to migrate. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/FddU5krbHIsJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: (mostly) Consistent 20-second delay in starting backend tasks
I've been able to nearly solve the delay problem by setting countdown=1 in the Task constructor. This reduces the delay from 20 to about 1.5. Not sure why it's not closer to 1.0 but this will be fine. The time to serve the simple request is unaffected. Still a strange bug (?). Also, some other things lead me to believe the GAE just wants to rest for 20 seconds. I started to wonder if in my previous tests I was just running things through too fast, even though that seemed unlikely since I was seeing the same delays in production when tasks take 1+ minutes to complete. But I put a time.sleep(10) in my handler just to make sure. Strangely, what this did was reduce the delay from 20 seconds down to 10. So the sleep gives 10 seconds of rest and then GAE still wants 10 more? Something like that. When I replaced time.sleep(10) with a tight loop lasting 10 seconds, my higher delays returned although they were more erratic (i.e. not consistently near 20 seconds). Also, I tried creating a new app containing only the code I had written for my test, and got somewhat different results. I got the almost-exactly-20-seconds delay, but only about once every 4-5 requests. The other times it was near zero. Maybe this is because nothing else is going on in the app, so GAE has less need for rest? Almost as if it were a quota thing -- except the fact that I demonstrated earlier that I can eliminate the delay entirely by running tasks on a frontend, or using a 5-instance backend, or (as now demonstrated) setting countdown=1 seems to eliminate that possibility. All very strange. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/wYRmOXSR5-wJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Finding the logs for failed cron jobs and failed tasks
I've seen cases where the reason for the failure just plain isn't in the log. I think his happens when cron isn't able to find an available backend instance (kind of rare, but can happen when things are busy or if you configure a limited number of instances). It will keep trying for a few minutes, then eventually give up and not log anything. On the same topic, I've seen cron jobs initially marked as failed, then a couple minutes marked as successful. These seem to be the cases where it couldn't initially find an available instance, then eventually finds one. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/v96FWH4JBJUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to download logs from a backend?
Amy, I don't think it has anything to do with flushing or delays, as even when I run with the --num_days=2 option, I still only get requests for frontend objects (HTML, images, etc.) from the past two days. In reality, since my app is not yet launched I probably have 100x as many log entries for backends as for frontends in the admin console. I use logging.info quite liberally, and can find plenty of Info-level entries in the admin console from my backends, so this seems unrelated to the --severity option as well (and I have tried playing around with severity levels to no avail). What additional information would you like for me? The exact command I issue from the shell is: appcfg.py --no_cookies --email=myem...@domain.com --passin -- num_days=2 request_logs /path/mn-live /log.txt On Jan 15, 7:00 pm, Amy Unruh amyu+gro...@google.com wrote: Dave, The same logs include both backend and frontend instance logging- they are not separated. You could be experiencing a delay before long-running backend log writes get flushed. You might be interested in the LogService API, http://code.google.com/appengine/docs/python/backends/logserviceapi.html which lets you periodically flush logs during long-running requests, and to examine an application's request logs and application logs. On Sun, Jan 15, 2012 at 3:27 AM, Dave Loomer dloo...@gmail.com wrote: The docs for downloading logs make no specific mention of backends, and from my attempts it seems that you can only download logs for your frontend. That would be strange though, and to make matters worse a web search for google app engine download backend logs (no quotes obvs.) reveals nothing relevant. Either I'm a true pioneer here or no one else has had any troubles with this -- or no one else cares. Here is what I've tried. First, the documented syntax (which gets you the frontend logs - no issues here): appcfg.py request_logs myapp/ mylogs.txt So to get the backend logs I have tried: appcfg.py backends request_logs myapp/ mylogs.txt backend-name (Returns the error: appcfg.py: error: Expected a directory and action argument.) appcfg.py backends request_logs myapp/ backend-name mylogs.txt (As expected, returns the same error: appcfg.py: error: Expected a directory and action argument.) appcfg.py seems confused by backends request_logs so I then tried, without the backends argument: appcfg.py request_logs myapp/ backend-name mylogs.txt (Returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) appcfg.py request_logs myapp/ mylogs.txt backend-name (Same thing: returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) And there is also the documented -vhost to restrict by domain: appcfg.py --vhost=http://backend-name.app-name.appspot.com request_logs myapp/ mylogs.txt (console just shows that is downloading a frontend version number, and the result is that I get nothing downloaded, probably because there are no requests going to my frontend using my backend host name.) So ... did Google really leave this out, or what am I missing? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to download logs from a backend?
I should add that I don't have any truly long-running backend processes -- typically, they all complete in a few minutes, and I run thousands per day. On Jan 18, 12:19 pm, Dave Loomer dloo...@gmail.com wrote: Amy, I don't think it has anything to do with flushing or delays, as even when I run with the --num_days=2 option, I still only get requests for frontend objects (HTML, images, etc.) from the past two days. In reality, since my app is not yet launched I probably have 100x as many log entries for backends as for frontends in the admin console. I use logging.info quite liberally, and can find plenty of Info-level entries in the admin console from my backends, so this seems unrelated to the --severity option as well (and I have tried playing around with severity levels to no avail). What additional information would you like for me? The exact command I issue from the shell is: appcfg.py --no_cookies --email=myem...@domain.com --passin -- num_days=2 request_logs /path/mn-live /log.txt On Jan 15, 7:00 pm, Amy Unruh amyu+gro...@google.com wrote: Dave, The samelogsinclude both backend and frontend instance logging- they are not separated. You could be experiencing a delay before long-running backend log writes get flushed. You might be interested in the LogService API, http://code.google.com/appengine/docs/python/backends/logserviceapi.html which lets you periodically flushlogsduring long-running requests, and to examine an application's requestlogsand applicationlogs. On Sun, Jan 15, 2012 at 3:27 AM, Dave Loomer dloo...@gmail.com wrote: The docs for downloadinglogsmake no specific mention of backends, and from my attempts it seems that you can only downloadlogsfor your frontend. That would be strange though, and to make matters worse a web search for google app engine download backendlogs (no quotes obvs.) reveals nothing relevant. Either I'm a true pioneer here or no one else has had any troubles with this -- or no one else cares. Here is what I've tried. First, the documented syntax (which gets you the frontendlogs- no issues here): appcfg.py request_logs myapp/ mylogs.txt So to get the backendlogsI have tried: appcfg.py backends request_logs myapp/ mylogs.txt backend-name (Returns the error: appcfg.py: error: Expected a directory and action argument.) appcfg.py backends request_logs myapp/ backend-name mylogs.txt (As expected, returns the same error: appcfg.py: error: Expected a directory and action argument.) appcfg.py seems confused by backends request_logs so I then tried, without the backends argument: appcfg.py request_logs myapp/ backend-name mylogs.txt (Returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) appcfg.py request_logs myapp/ mylogs.txt backend-name (Same thing: returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) And there is also the documented -vhost to restrict by domain: appcfg.py --vhost=http://backend-name.app-name.appspot.com request_logs myapp/ mylogs.txt (console just shows that is downloading a frontend version number, and the result is that I get nothing downloaded, probably because there are no requests going to my frontend using my backend host name.) So ... did Google really leave this out, or what am I missing? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to download logs from a backend?
This is great - thanks Amy! On Jan 18, 7:43 pm, Amy Unruh amyu+gro...@google.com wrote: My earlier post was incorrect-- sorry! You do need to specifically request the logs for a backend. You can do that by passing the backend name as the version name, e.g.: appcfg.py request_logs --version=backend_name project_dir outfile You can add the --include_all flag to see details of which instance handled the request. To see the logs for a particular backend instance only, you can filter by its vhost. E.g., to see the logs for the 2nd instance of a backend named 'worker', this should work: appcfg.py request_logs --version=worker --vhost=2.worker.your_appid. appspot.com project_dir outfile On Thu, Jan 19, 2012 at 5:19 AM, Dave Loomer dloo...@gmail.com wrote: Amy, I don't think it has anything to do with flushing or delays, as even when I run with the --num_days=2 option, I still only get requests for frontend objects (HTML, images, etc.) from the past two days. In reality, since my app is not yet launched I probably have 100x as many log entries for backends as for frontends in the admin console. I use logging.info quite liberally, and can find plenty of Info-level entries in the admin console from my backends, so this seems unrelated to the --severity option as well (and I have tried playing around with severity levels to no avail). What additional information would you like for me? The exact command I issue from the shell is: appcfg.py --no_cookies --email=myem...@domain.com --passin -- num_days=2 request_logs /path/mn-live /log.txt On Jan 15, 7:00 pm, Amy Unruh amyu+gro...@google.com wrote: Dave, The same logs include both backend and frontend instance logging- they are not separated. You could be experiencing a delay before long-running backend log writes get flushed. You might be interested in the LogService API, http://code.google.com/appengine/docs/python/backends/logserviceapi.html which lets you periodically flush logs during long-running requests, and to examine an application's request logs and application logs. On Sun, Jan 15, 2012 at 3:27 AM, Dave Loomer dloo...@gmail.com wrote: The docs for downloading logs make no specific mention of backends, and from my attempts it seems that you can only download logs for your frontend. That would be strange though, and to make matters worse a web search for google app engine download backend logs (no quotes obvs.) reveals nothing relevant. Either I'm a true pioneer here or no one else has had any troubles with this -- or no one else cares. Here is what I've tried. First, the documented syntax (which gets you the frontend logs - no issues here): appcfg.py request_logs myapp/ mylogs.txt So to get the backend logs I have tried: appcfg.py backends request_logs myapp/ mylogs.txt backend-name (Returns the error: appcfg.py: error: Expected a directory and action argument.) appcfg.py backends request_logs myapp/ backend-name mylogs.txt (As expected, returns the same error: appcfg.py: error: Expected a directory and action argument.) appcfg.py seems confused by backends request_logs so I then tried, without the backends argument: appcfg.py request_logs myapp/ backend-name mylogs.txt (Returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) appcfg.py request_logs myapp/ mylogs.txt backend-name (Same thing: returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) And there is also the documented -vhost to restrict by domain: appcfg.py --vhost=http://backend-name.app-name.appspot.com request_logs myapp/ mylogs.txt (console just shows that is downloading a frontend version number, and the result is that I get nothing downloaded, probably because there are no requests going to my frontend using my backend host name.) So ... did Google really leave this out, or what am I missing? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google
[google-appengine] How to download logs from a backend?
The docs for downloading logs make no specific mention of backends, and from my attempts it seems that you can only download logs for your frontend. That would be strange though, and to make matters worse a web search for google app engine download backend logs (no quotes obvs.) reveals nothing relevant. Either I'm a true pioneer here or no one else has had any troubles with this -- or no one else cares. Here is what I've tried. First, the documented syntax (which gets you the frontend logs - no issues here): appcfg.py request_logs myapp/ mylogs.txt So to get the backend logs I have tried: appcfg.py backends request_logs myapp/ mylogs.txt backend-name (Returns the error: appcfg.py: error: Expected a directory and action argument.) appcfg.py backends request_logs myapp/ backend-name mylogs.txt (As expected, returns the same error: appcfg.py: error: Expected a directory and action argument.) appcfg.py seems confused by backends request_logs so I then tried, without the backends argument: appcfg.py request_logs myapp/ backend-name mylogs.txt (Returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) appcfg.py request_logs myapp/ mylogs.txt backend-name (Same thing: returns the error: appcfg.py: error: Expected a directory argument and an output_file argument.) And there is also the documented -vhost to restrict by domain: appcfg.py --vhost=http://backend-name.app-name.appspot.com request_logs myapp/ mylogs.txt (console just shows that is downloading a frontend version number, and the result is that I get nothing downloaded, probably because there are no requests going to my frontend using my backend host name.) So ... did Google really leave this out, or what am I missing? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How do I change the login credentials that google deploy uses in Eclipse?
I was prompted once but am no longer prompted and I need to deploy to a project in a different domain using a different administrator account name and password. I do not see where to change or clear the credentials. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] repeated captcha requests
switching to IE - it's totally annoying -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Data Store Down... writes offline.
I just launched my new app (www.getcloak.com). And, wouldn't you know it, just as I'm sending out invite codes App Engine's datastore goes down. Hard. Users can't sign up because writes appear to be disabled. So, um, is this going to be fixed soon? This is Murphy's law in action with App Engine! I can't even appcfg update my app to give users a prettier error message... Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Data Store Down... writes offline.
Ah, I see that scheduled downtime got moved. So I assume this is planned and we'll be back soon? We've been down for a while now... On May 3, 6:09 pm, Dave Peck davep...@gmail.com wrote: I just launched my new app (www.getcloak.com). And, wouldn't you know it, just as I'm sending out invite codes App Engine's datastore goes down. Hard. Users can't sign up because writes appear to be disabled. So, um, is this going to be fixed soon? This is Murphy's law in action with App Engine! I can't even appcfg update my app to give users a prettier error message... Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Data Store Down?
Title says it all. I have numerous apps. The datastore appears to be failing to write, but doing so silently: no exceptions, no nothing. What's up? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Data Store Down?
Well, we're back to working again. But I have logs that pretty clearly show that (1) the datastore was failing to write my entities, and (2) it was failing silently. Not good. -Dave On May 1, 6:30 pm, Dave Peck davep...@gmail.com wrote: Title says it all. I have numerous apps. The datastore appears to be failing to write, but doing so silently: no exceptions, no nothing. What's up? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] TypeError in urlfetch_stub.py for SDK 1.4.3?
I just updgraded to 1.4.3, and now see this error when performing URL fetches: TypeError Exception Value: escape_encode() argument 1 must be string, not unicode Exception Location: /Applications/GoogleAppEngineLauncher.app/Contents/ Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/api/urlfetch_stub.py in _RetrieveURL, line 283 This is happening inside app engine SDK code, which is in turn being tickled by Braintree's payment API. This was not a problem in previous versions of the App Engine SDK, though potentially it is a problem with Braintree, not the SDK. Could someone investigate and advise? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: TypeError in urlfetch_stub.py for SDK 1.4.3?
Looking at this further, it looks like Braintree is using httplib.HTTPSConnection().request() with a unicode body. My read of the documentation is that the body should be bytes by the time you call request, so I think this is a Braintree API error rather than an App Engine SDK error. Does this sound like a reasonable conclusion? Thanks, Dave On Mar 30, 4:54 pm, Dave Peck davep...@gmail.com wrote: I just updgraded to 1.4.3, and now see this error when performing URL fetches: TypeError Exception Value: escape_encode() argument 1 must be string, not unicode Exception Location: /Applications/GoogleAppEngineLauncher.app/Contents/ Resources/GoogleAppEngine-default.bundle/Contents/Resources/ google_appengine/google/appengine/api/urlfetch_stub.py in _RetrieveURL, line 283 This is happening inside app engine SDK code, which is in turn being tickled by Braintree's payment API. This was not a problem in previous versions of the App Engine SDK, though potentially it is a problem with Braintree, not the SDK. Could someone investigate and advise? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] SPF Records for App Engine?
My sign-up validation emails are ending up in users' junk mail folders. What's the scoop with SPF records for App Engine? I found a few older posts on this group about it, but nothing from a GOOG employee or pointing to official GOOG documentation. Could someone point me in the right direction here? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: SPF Records for App Engine?
I've seen some claims from potentially reliable sources that the correct SPF record is in fact: v=spf1 include:aspmx.googlemail.com ~all But this seems wrong given the link you just pointed me to? Thanks! Cheers, Dave On Mar 27, 2:36 pm, Chris Copeland ch...@cope360.com wrote: If you are sending from an address f...@yourdomain.com and yourdomain.com is setup with Google Apps, then here are the instructions:http://www.google.com/support/a/bin/answer.py?answer=178723 If that doesn't help (Yahoo may still be a problem for you), then just use Postmark or Amazon. -Chris On Sun, Mar 27, 2011 at 4:28 PM, Dave Peck davep...@gmail.com wrote: My sign-up validation emails are ending up in users' junk mail folders. What's the scoop with SPF records for App Engine? I found a few older posts on this group about it, but nothing from a GOOG employee or pointing to official GOOG documentation. Could someone point me in the right direction here? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: PyCrypto and user passwords.
Really? No suggestions? I settled on multiple iterations of SHA256. But I note that the version of PyCrypto on app engine doesn't include the Crypto.Random submodule, so it's impossible to even generate a cryptographically satisfactory salt. Can someone on the App Engine team comment on whether Crypto.Random will ever be available? Thanks, Dave On Mar 10, 4:39 pm, Dave Peck davep...@gmail.com wrote: PyCrypto offers the blowfish cipher, but not thebcrypthash. What's the best way to store passwords on App Engine with PyCrypto? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: PyCrypto and user passwords.
Can someone on the App Engine team comment on whether Crypto.Random will ever be available? Did you try to include your own PyCrypto version? No, because you can't. PyCrypto requires native code, and thus must be supported directly by the App Engine team. App Engine does provide PyCrypto on production, but it does not provide the Crypto.Random submodule. Thus my question: might we ever expect to see it? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] PyCrypto and user passwords.
PyCrypto offers the blowfish cipher, but not the bcrypt hash. What's the best way to store passwords on App Engine with PyCrypto? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] nn help how to get user login into MVP example app
I have tried putting code in the Contacts page, the App Controller page, and a login view page i made. I am extremely frustrated. Please assist. Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Constant 500 errors deploying Java app this morning
I've been trying to deploy an updated version of my app all morning, and keep getting errors. What I see is as follows: Unable to update app: Error posting to URL: https://appengine.google.com/api/datastore/cron/update?app_id=sad-foxversion=4; 500 Internal Server Error Server Error (500) A server error has occurred. Please see the logs [/var/folders/Eh/EhpFoV-MGamQxOsSJR6jOU+++Tc/-Tmp-/ appcfg3370065503962088826.log] for further information. And in the log file it tells me to check, I see this: Unable to update: java.io.IOException: Error posting to URL: https://appengine.google.com/api/datastore/cron/update?app_id=sad-foxversion=4; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 582) at com.google.appengine.tools.admin.AppVersionUpload.updateCron(AppVersionUpload.java: 284) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 135) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.tools.admin.AppCfg $UpdateAction.execute(AppCfg.java:547) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:138) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:61) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57) com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/datastore/cron/update?app_id=sad-foxversion=4; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) at com.google.appengine.tools.admin.AppCfg $UpdateAction.execute(AppCfg.java:547) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:138) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:61) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57) Caused by: java.io.IOException: Error posting to URL: https://appengine.google.com/api/datastore/cron/update?app_id=sad-foxversion=4; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 582) at com.google.appengine.tools.admin.AppVersionUpload.updateCron(AppVersionUpload.java: 284) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 135) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] HTTPS CPU cost?
Does using HTTPS imply higher CPU cost? Or is the hard work done outside of metering? (Also, the documentation about secure quotas seems a little vague. My impression is: at least up front, they're the same as the non-secure quotas, and secure bandwidth costs the same as regular?) Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Transactions and user accounts.
I have a User model and I've placed the email address in the key_name. This makes it easy to ensure uniqueness without race conditions. _Changing_ emails becomes a problem. It involves creating a new account and switching all references. Which makes me wonder if the email address really should be key. How have others approached this simple problem? You want transactions on all sides if you can get them... Cheers, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [appengine-java] Cygwin Vista Newbie
Error Message from Cygwin: Juan-PC /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/samples $ ndk-build Android NDK: Could not find application project directory ! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/build/core/build-local. mk:85: *** Android NDK: Aborting . Stop. System Variable : NDK_PROJECT_PATH Variable value : ;C:\Users\Juan\Desktop\NDK\NDK5.0\android-ndk-r5\build\core\build-local.mk Runing Windows Vista What's wrong with the NDK_PROJECT_PATH This is the wrong forum, but it looks like you have a semicolon in front when you shouldn't. If that's not the cause, are you sure this is a system environment variable rather than a user environment variable that maybe isn't available to Cygwin? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Need help downloading java version from gae Newbie
I cannot find anything on the net, so I am requesting assistance downloading a previous version of my gae, gwt app. I am using Ubuntu Linux. Also, if it does not come down to Eclipse directly, kindly instruct me how to unpack it, get it into eclipse. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How to implement MVP Tutorial Contacts into GAE project? Newbie
I would like to put the MVP Tutorial project Contacts into a GAE project to try to extend it. I am new to GAE and GWT and although there are instructions at the end of Part II, I don't understand them. I am using Eclipse on Ubuntu with the GAE SDK. Please assist. Thank you, Dave Allen -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to implement MVP Tutorial Contacts into GAE project? Newbie
Thank you Mr. Hill. I did not make that mistake, but instead wrote in the incorrect package name, then got the error when trying to deploy, not a google app engine project. Quite frustrating typo. I guess that is what happens when trying to grab some unfamiliar code and mess with it. Thanks again for the assistance. Dave On Dec 23, 4:29 pm, Matthew Hill matt2...@gmail.com wrote: Did you specify that your app would use GAE and GWT (it's the default). If so, all you need to do is click on the app engine engine icon up in the toolbar, enter your details, and it'll be deployed. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[appengine-java] BlobstoreService has dependency on HttpServletRequest, my web framework does not
My web framework doesn't give access to the raw servlet request or response objects (stateless). This is obviously making it rather difficult to use the BlobstoreService. Is there any way to get the BlobKeys from a successful upload other than BlobstoreService.getUploadedBlobs? I suppose I could bounce the request off another server using servlets for handling but this is awfully hacky. On the flip side, can I use ByteArrayInputStream to fetch a blob and write it directly to a response without actually calling blobstoreService.serve? I know this isn't efficient, but I do not see a way to get a raw url to the blob meaning I can't access the store from a different server. It's looking like I will have to setup another GAE app to handle file uploads. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: Same infamous question - JDO or JPA - want to hear from people who used both!
Agreed 100%. It's a great library, very simple and easy to use. It's similar to the Python API, but in my opinion even better because it's obvious what's going on, whereas the Python API has magic like auto- fetching of ReferenceProperties, which can cause really terrible performance if you don't realize what it's doing. On Dec 3, 12:51 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: Neither. Go with Objectify. Jeff On Fri, Dec 3, 2010 at 12:18 PM, har_shan harsha...@gmail.com wrote: yes, this is there all over internet and like any other appengine newbie am in same dilemma but now i want to hear recommendation from those who have used/tried both and hence their experiences also i know that Google doesn't play favorites and Max Ross has said in his blog... I'll give you the same answer I give whenever I'm asked this question: If you're not already familiar with JDO or JPA, use JDO because our documentation is better. If you're more familiar with JDO than JPA, use JDO. If you're more familiar with JPA than JDO, use JPA. If you're equally familiar with both then you probably have a preference, so use the one you prefer. Personally i have worked in a pet project using JPA + Hibernate, so am inclined towards JPA as am bit familiar. BUT am starting a new app in appengine so want to be sure that am in right path. I know that in appengine some features are missing in impl from both JPA/JDO, due to datastore constraints, but i do not want to face a situation in future when i hear that life would have been easy when i have chosen JDO for AppEngine! Am also ready to spend time learning JDO if its really worth it. So guys, please share your experiences! As always thank much in advance.. Ask me more if needed.. Hari -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- *Jeff Schwartz* -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] More deployment problems today
I've gotten two 500 errors in a row when trying to update an existing version of my app engine/python app. Seems like whatever has been breaking is still broken. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: The location will be effect connect speed?
I believe Google's datacenter is located in California, so it shouldn't matter where you upload from. On Dec 2, 1:13 am, hpbg delta deltah...@gmail.com wrote: I want make sure the user connects is effectuation in American if I upload the project from Taiwan. or user in Taiwan more fast connect the web data than in American. Thank you. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: More deployment problems today
I'm still having constant problems - at least 50% of deployments are still failing right now. On Dec 2, 3:30 pm, Daniel danielshaneup...@gmail.com wrote: Still broken for me. Another day, another problem with app engine... On Dec 2, 2:14 pm, Amir amir.shim...@gmail.com wrote: It's working again. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[appengine-java] Re: Can't deploy again despite fix announcement
Can you make this sticky or a FAQ or something? I've been having terribly deployment problems (had to adjust my deployment script to retry 10+ times), and seems like this solution should be shouted from the rooftops. :) On Nov 16, 7:20 pm, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Strange, I could have sworn my web.xml was generated by the Google Plugin for Eclipse. Either way, we are looking into ways to either warn users or just bypass the check if it times out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Tue, Nov 16, 2010 at 10:31 AM, came carsten.immome...@googlemail.comwrote: works for me as well. thx On 16 Nov., 01:46, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Okay, just got confirmation that the reason this isn't working intermittently is related to having DOCTYPE in web.xml. Do you guys have a line in your web.xml that looks like this? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; If so, can you replace it with this? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web= http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation= http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/we... version=2.5 The reason this issue occurs is that a deploy will attempt to retrieve the DTD, but if the server is overloaded or not responsive, the deploy operation will just time out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Mon, Nov 15, 2010 at 3:09 PM, Artem artem...@gmail.com wrote: Here it is:http://paste.pocoo.org/show/291784/ On 11/16/2010 01:29 AM, Ikai Lan (Google) wrote: Does anyone have a stack trace if an exception is thrown? Will deploy work after a rollback? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: 500 Server Error on https://appengine.google.com
Me too. 500 errors and can't update my app. Google team? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: 500 Server Error on https://appengine.google.com
I'd like to add: as much as I admire the App Engine team for being so transparent with their status dashboard, it doesn't seem like it always reflects on-the-ground reality. It would be good to have the current outage reflected, for example. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Deployment having issues.
It's been broken for about 1.5 hours for me. On Oct 18, 3:24 pm, johnP j...@thinkwave.com wrote: Having deployment issues from 11:40PDT -- ? Symptoms: 1. When uploading, it Checks if version is ready to be served.. Until it gives up. 2. Switched from version X to version Y in Versions screen. The Versions screen says that Y is the default version. But it continues to serve X (7 instances of X running, and 0 instances of Y running, over 30 minutes later). And the usual existential question: Is this for everyone? Or is it just me??? :) johnP -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[appengine-java] Object references imply ownership?
I'm using JPA, and I'm having a really tough time getting around this problem. It seems that when I try to refer to an object by way of a @ManyToOne, somehow DataNucleus wants to assume some kind of ownership and throws an exception. I have three kinds of objects: Person, Book, Rating. Person and Book objects are independent of one another and created independently. When a person rates a Book, a new Rating object is created and added to a set of Ratings owned by the Person. The Rating object has a reference to the Book. Here are the classes (each extends a superclass that contains the @Id element): class Person extends BasicEntity { private String email; @OneToMany(mappedBy=person, cascade=CascadeType.All, fetch=FetchType.LAZY) private SetRating ratings; } class Book extends BasicEntity { private String name; } class Rating extends BasicEntity { @ManyToOne(fetch=FetchType.LAZY) private Person person; @ManyToOne(fetch=FetchType.LAZY) private Book book; private Integer value; } I get the following exception when I attempt to add such a Rating to a Person: org.springframework.orm.jpa.JpaSystemException: Detected attempt to establish Person(1)/Rating(3) as the parent of Book(2) but the entity identified by Book(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. What gives? Is it not permitted to refer to objects in this way? I've been using this technique in JPA for years. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Object references imply ownership?
Hi Hari, I don't follow what you're saying in #1 below. #2 - This is just the way I have always modeled classes using JPA. In a relational database, the @ManyToOne would cause the key of the owning entity to be stored in the row. In this case, the Rating table would have a column to hold the Person_Id. It's unclear to me how this works with the DataNucleus datastore in GAE. Here's an example of a similar relationship that is supposed to work in GAE: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Obviously, the difference is that I have another @ManyToOne that references another entity type. I've always felt like I had a firm handle on JPA, but using it with GAE has been a very discouraging endeavor, so far. Thanks for the feedback, Dave On 10/04/2010 11:56 PM, Hariharan Anantharaman wrote: Hi, I have encountered similar error using JDO long time back. I firmly believe that if you use @ManyToOne or something it means a relationship amongst them. Though I don't remember exactly what I did ,Coupleof observations 1. In the rating class. Add annotation of rederenced by attribute in annotation. Or a similar annotation needs to be done in Book class. 2. Person has a list of rating and rating again has a person. Are you planning to query by rating entity independently? I think this design tells JPA that a person indirectly owns a book. Thanks Hari On Oct 5, 2010 2:54 AM, Dave Hicks dh...@i-hicks.org mailto:dh...@i-hicks.org wrote: I'm using JPA, and I'm having a really tough time getting around this problem. It seems that when I try to refer to an object by way of a @ManyToOne, somehow DataNucleus wants to assume some kind of ownership and throws an exception. I have three kinds of objects: Person, Book, Rating. Person and Book objects are independent of one another and created independently. When a person rates a Book, a new Rating object is created and added to a set of Ratings owned by the Person. The Rating object has a reference to the Book. Here are the classes (each extends a superclass that contains the @Id element): class Person extends BasicEntity { private String email; @OneToMany(mappedBy=person, cascade=CascadeType.All, fetch=FetchType.LAZY) private SetRating ratings; } class Book extends BasicEntity { private String name; } class Rating extends BasicEntity { @ManyToOne(fetch=FetchType.LAZY) private Person person; @ManyToOne(fetch=FetchType.LAZY) private Book book; private Integer value; } I get the following exception when I attempt to add such a Rating to a Person: org.springframework.orm.jpa.JpaSystemException: Detected attempt to establish Person(1)/Rating(3) as the parent of Book(2) but the entity identified by Book(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. What gives? Is it not permitted to refer to objects in this way? I've been using this technique in JPA for years. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com mailto:google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com mailto:google-appengine-java%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Looking for a JPA/Entity-Group Tutorial
I'm having problems understanding how to get entities to play nice together. So, I'd like to find a good tutorial on how to work with entity groups using JPA. My specific issue, right now, is being unable to add a new entity to a collection that is held by a parent entity. When I attempt to add a new entity to the collection of children, I always get an error indicating that the entity group is incorrect. I just haven't been able to find any information about how to make this work. Thanks for any tips/links. Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: Hi group! My App Engine App is finally launching today.
Wow! What a lot of functionality with such an easy UI. Congratulations! On Sep 8, 3:17 am, Julian Namaro namarojul...@gmail.com wrote: After a lot of work, and quite a bit of testing, I am happy today to present you my app. It's called memobuild, and it's basically an editor for large online documents (e.g. documentation, reports, e-books). You can see more information in the entry of the App Gallery:http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEg... It's built on top of webapp, and it uses a bit of everything: transactions, tasks queues, blobstore, federated login,... Have a look, your feedback is welcome. Let me take the occasion to congratulate the App Engine team for the constant improvements of the platform. Thank you, and please, do keep it up! Julian Namarohttp://www.memobuild.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [appengine-java] Re: Google Web Application problem in Eclipse Helios
Hi Rahul, The fix described above did not seem to work. I also tried deleting the eclipse directory then followed your directions, Dave, how did you manage to bypass this problem? did you just keep on creating servlets manually and adding them to your web.xml? I didn't bypass the problem. It's been a bit of a pain. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Tracking down soft memory limit errors.
I have an app that regularly logs critical Soft Memory errors after roughly 1k requests to a given process. I've looked at all the obvious potential causes (global variables, etc.) but see nothing in my code that should lead to a memory leak. All cross-request state ends up either in memcache or the data store. I have a few questions: 1. My understanding is that this is about leaks. But can a single request that consumes a lot of memory at once cause this error? 2. App Engine logs this as critical but it seems to me to be warning-level information: we're basically looking at a performance issue, right? 3. Most importantly, can anyone recommend tools to track down memory leaks on my local `dev_appserver.py` instance? I've been looking at both Heapy (part of Guppy) and Dowser, but getting them in a running dev_appserver instance seems tricky -- they both require native extensions. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Tracking down soft memory limit errors.
Python. Raw WebApp. On Aug 16, 3:26 pm, Jeff Schwartz jefftschwa...@gmail.com wrote: it would probably help if you provided language, framework etc. On Mon, Aug 16, 2010 at 5:37 PM, Dave Peck davep...@gmail.com wrote: I have an app that regularly logs critical Soft Memory errors after roughly 1k requests to a given process. I've looked at all the obvious potential causes (global variables, etc.) but see nothing in my code that should lead to a memory leak. All cross-request state ends up either in memcache or the data store. I have a few questions: 1. My understanding is that this is about leaks. But can a single request that consumes a lot of memory at once cause this error? 2. App Engine logs this as critical but it seems to me to be warning-level information: we're basically looking at a performance issue, right? 3. Most importantly, can anyone recommend tools to track down memory leaks on my local `dev_appserver.py` instance? I've been looking at both Heapy (part of Guppy) and Dowser, but getting them in a running dev_appserver instance seems tricky -- they both require native extensions. Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- -- Jeff -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.