Note that there are some explanatory texts on larger screens.

plurals
  1. POApp Engine AttributeError: 'module' object has no attribute 'events'
    primarykey
    data
    text
    <p>I had this error 20 times on the same instance, and then it went away after the instance was killed because of processing too many sequential errors. No changes were made in my code, and this is the only time I have seen this happen.</p> <p>Questions:</p> <ul> <li>What type of problem in my code might be causing this to happen only with some instances? I have no idea where to start looking since I can't recreate the problem.</li> <li>Is there a way to decrease the number of sequential errors allowed by an instance before it is killed so this won't create much disruption if it happens again?</li> </ul> <p>This is the first log I have from this instance (no error):</p> <pre><code>2012-10-05 18:41:03.266 /rpc/?action=ServerAvailable 500 60908ms 0kb popwords/1.2 CFNetwork/548.1.4 Darwin/11.4.2 98.207.195.103 - - [05/Oct/2012:11:41:03 -0700] "GET /rpc/?action=ServerAvailable HTTP/1.1" 500 0 - "popwords/1.2 CFNetwork/548.1.4 Darwin/11.4.2" "www.popwordsapp.appspot.com" ms=60909 cpu_ms=498 loading_request=1 instance=00c61b117c8f8b7f701c0776284c25a64c7ff329 I 2012-10-05 18:41:03.265 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. </code></pre> <p>This is the next log from this instance (first one with error):</p> <pre><code>2012-10-05 18:49:38.704 /rpc/?action=ServerAvailable 500 867ms 0kb popwords/1.2 CFNetwork/548.1.4 Darwin/11.4.2 98.207.195.103 - - [05/Oct/2012:11:49:38 -0700] "GET /rpc/?action=ServerAvailable HTTP/1.1" 500 0 - "popwords/1.2 CFNetwork/548.1.4 Darwin/11.4.2" "www.popwordsapp.appspot.com" ms=867 cpu_ms=86 instance=00c61b117c8f8b7f701c0776284c25a64c7ff329 E 2012-10-05 18:49:38.103 Traceback (most recent call last): File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 195, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 239, in _LoadHandler handler = __import__(path[0]) File "/base/data/home/apps/s~popwordsapp/1.362183705604897547/main.py", line 40, in &lt;module&gt; from google.appengine.ext import db File "/base/python27_runtime/python27_lib/versions/1/google/appengine/ext/db/__init__.py", line 98, in &lt;module&gt; from google.appengine.api import datastore File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/datastore.py", line 62, in &lt;module&gt; from google.appengine.datastore import datastore_query File "/base/python27_runtime/python27_lib/versions/1/google/appengine/datastore/datastore_query.py", line 64, in &lt;module&gt; from google.appengine.datastore import datastore_index File "/base/python27_runtime/python27_lib/versions/1/google/appengine/datastore/datastore_index.py", line 62, in &lt;module&gt; from google.appengine.api import yaml_object File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/yaml_object.py", line 36, in &lt;module&gt; from google.appengine.api import yaml_listener File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/yaml_listener.py", line 34, in &lt;module&gt; yaml.events.StreamStartEvent: 'StreamStart', AttributeError: 'module' object has no attribute 'events' </code></pre> <p>In between these two logs there was one log where an additional instance was created (no error). None of the errors come from this other instance that was created immediately after the first one. It started handling requests successfully after the first instance was killed because of processing too many sequential errors.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload