PiRSquared17 / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

Can't upload app with 1.1 RC #205

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extract the app engine patch from 1.1RC
2. Create a NEW app id on app engine and edit app.yaml accordingly
3. run manage.py update

The syncdb process at the end of the update fails with following error:

Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Running syncdb.
Traceback (most recent call last):
  File "./manage.py", line 26, in <module>
    execute_manager(settings)
  File "/tmp/app-engine-patch-sample/__init__.py", line 384, in execute_manager

  File "/tmp/app-engine-patch-sample/__init__.py", line 325, in execute

  File
"/tmp/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/man
agement/commands/update.py",
line 70, in run_from_argv
  File
"/tmp/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/man
agement/commands/update.py",
line 53, in run_appcfg
  File "/tmp/app-engine-patch-sample/__init__.py", line 188, in call_command

  File
"/tmp/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/man
agement/base.py",
line 227, in execute
  File
"/tmp/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/man
agement/base.py",
line 356, in handle
  File
"/tmp/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/man
agement/commands/syncdb.py",
line 63, in handle_noargs
  File
"/tmp/app-engine-patch-sample/common/appenginepatch/appenginepatcher/patch.py",
line 66, in count
    return old_count(self, limit)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/ext/db/__init__.py",
line 1401, in count
    return self._get_query().Count(limit=limit)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/api/datastore.py",
line 979, in Count
    self._ToPb(limit=limit), resp)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/api/apiproxy_stub_map.p
y",
line 72, in MakeSyncCall
    apiproxy.MakeSyncCall(service, call, request, response)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/api/apiproxy_stub_map.p
y",
line 244, in MakeSyncCall
    stub.MakeSyncCall(service, call, request, response)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/ext/remote_api/remote_a
pi_stub.py",
line 184, in MakeSyncCall
    response)
  File
"/home/irwin/Downloads/google_appengine/google/appengine/ext/remote_api/remote_a
pi_stub.py",
line 147, in MakeSyncCall
    request_pb.Encode()))
  File
"/home/irwin/Downloads/google_appengine/google/appengine/tools/appengine_rpc.py"
,
line 344, in Send
    f = self.opener.open(req)
  File "/usr/lib/python2.5/urllib2.py", line 387, in open
    response = meth(req, response)
  File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.5/urllib2.py", line 425, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Reproducible bug.

Original issue reported on code.google.com by hyrv...@gmail.com on 14 Aug 2009 at 7:43

GoogleCodeExporter commented 9 years ago
I run nearly into the same, but I get:

  File "/opt/python2.5/lib/python2.5/urllib2.py", line 506, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 405: Method Not Allowed

Original comment by cssg...@gmail.com on 18 Aug 2009 at 9:03

GoogleCodeExporter commented 9 years ago
with the option below i was able to upload the app.

./manage.py update --nosyncdb 

Original comment by cssg...@gmail.com on 20 Aug 2009 at 6:33

GoogleCodeExporter commented 9 years ago
not running the --syncdb is not viable workaround unfortunately, since your 
models 
will be out of sync i presume.
Anyone developer from the path can chime in here ? 

It seems a showstopper for 1.1 usage.

Original comment by hyrv...@gmail.com on 20 Aug 2009 at 6:38

GoogleCodeExporter commented 9 years ago
This is happening to me also on python 2.6.1 and 2.5.4 and with both 1.1RC and 
1.0.2.3 
patches.

@developers
If it helps, syncing starts with auth app and parse all models well until line 
65 in 
syncdb.py where it's lost in a call to model.all().count(1)

Also there are some weird indentation in that file.

Original comment by acafon@gmail.com on 22 Aug 2009 at 2:57

GoogleCodeExporter commented 9 years ago
And I am getting 500: Internal Server Error

Original comment by acafon@gmail.com on 22 Aug 2009 at 2:59

GoogleCodeExporter commented 9 years ago
found out the issue. Appeared we were missing the remote api handler in the 
app.yaml
and the DATABASE_OPTIONS for the hostname in settings.py needed to be updated 
too.
Can close this bug now....

Original comment by hyrv...@gmail.com on 9 Sep 2009 at 9:19

GoogleCodeExporter commented 9 years ago
I was able to solve my problem too.
I did already setup the remote api but there was a problem with a 
incomplete/bad 
revision. Remove the last revision and upload it again solved the 405 error for 
me.

@hyrvine
I think DATABASE_OPTIONS are really optional, the default for hostname 
<remoteid>.appspot.com should work in all conditions, even with your own Doamin 
and 
Google Apps. You changed the app-id in app.yaml?

Original comment by cssg...@gmail.com on 11 Sep 2009 at 10:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm getting 500 http error code when running syncdb any ideas for a workaround?

Original comment by mklujszo on 14 Oct 2009 at 9:36