I keep getting deployment errors while running ./manage.py update (or
appcfg update).
I've always been getting random 500 errors like:
Initiating update.
Cloning 212 static files.
ERROR:root:An unexpected error occurred. Aborting.
Rolling back the update.
Error 500: --- begin server output ---
Server Error (500)
A server error has occured.
--- end server output ---
(Issue:
http://code.google.com/p/googleappengine/issues/detail?id=590)
Today, I also started seeing httplib.BadStatusLine errors (full
traceback at end, issue:
http://code.google.com/p/googleappengine/issues/detail?id=610)
Is anyone else getting these?
I get a successful deploy roughly every 1 in 5 times, with the others
giving me errors. Needless to say, it's slowing down my development
process.
Thanks,
Aral
Full traceback of the BadStatusLine error:
Initiating update.
Cloning 224 static files.
Cloned 100 files.
Cloned 200 files.
Cloning 763 application files.
ERROR:root:An unexpected error occurred. Aborting.
Rolling back the update.
Traceback (most recent call last):
File "./manage.py", line 30, in <module>
execute_manager(settings)
File "/Users/aral/singularity/__init__.py", line 272, in
execute_manager
File "/Users/aral/singularity/__init__.py", line 219, in execute
File "/Users/aral/singularity/appengine_django/management/commands/
update.py", line 54, in run_from_argv
run_appcfg()
File "/Users/aral/singularity/appengine_django/management/commands/
update.py", line 43, in run_appcfg
appcfg.main(new_args)
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1936, in main
AppCfgApp(argv).Run()
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1521, in Run
self.action.function(self)
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1733, in Update
lambda path: open(os.path.join(basepath, path), "rb"))
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1313, in DoUpload
missing_files = self.Begin()
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1207, in Begin
CloneFiles("/api/appversion/clonefiles", files_to_clone,
"application")
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 1201, in CloneFiles
payload=BuildClonePostBody(chunk))
File "/usr/local/google_appengine/google/appengine/tools/appcfg.py",
line 296, in Send
f = self.opener.open(req)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 374, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 392, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 353, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 1101, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 1074, in do_open
r = h.getresponse()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/httplib.py", line 924, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/httplib.py", line 385, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/httplib.py", line 349, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine