File referenced by handler not found: $PYTHON_LIB/default_start_handler.py

441 views
Skip to first unread message

Ted Henderson

unread,
Oct 30, 2016, 12:16:29 PM10/30/16
to Google App Engine
Hello! I found this warning level log firing every few minutes on /_ah/start

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

Everything in my app is working fine, and I have no idea what is causing this. I am worried it's going to jack up the cost of my billing. Here is my app.yaml, which I haven't edited in ages: https://gist.github.com/thedore17/3009d1b5cc0e2a2373923d36f1988623

Nick (Cloud Platform Support)

unread,
Nov 4, 2016, 4:40:52 PM11/4/16
to Google App Engine
Hey Ted,

This may be caused by lacking a default handler in the app.yaml shown. Could you try to add a default handler like the following and see if it stops the issue?

- url: /*
  script: simple.handler


In this case you'd need to make a simple.py file which makes a webapp2 app by the name of handler which simply responds with a 200 to all requests.

I determined that this might be useful by checking a prior thread where another user had seen this behaviour.

Once this is replicated we'll proceed to get the issue tracked internally, probably as a request for more clear warning messages.

Cheers,

Nick
Cloud Platform Community Support

Я Юь

unread,
Nov 6, 2016, 6:07:03 PM11/6/16
to Google App Engine
"/*" for the url entry is wrong, which WAS the cause of the aforementioned error in the referred post. The correct regex would be "/.*", i.e. with a "dot" in-between.

Nick (Cloud Platform Support)

unread,
Nov 17, 2016, 6:38:53 PM11/17/16
to Google App Engine
Hey Я Юь,

Sharp eye! The hazards of regular expressions... Thanks for pointing that out!
Reply all
Reply to author
Forward
0 new messages