Hi,
 I am sorry, still can't get rid of this error.
Done Shuffling remote_api handlers before all. At start I get this

INFO     2009-11-26 14:54:26,308 base.py:161] Setting up remote_api for
'tut-it' at http://tut-it.appspot.com/remote_api
INFO     2009-11-26 14:54:26,310 appengine_rpc.py:420] Loaded authentication
cookies from /home/sunny/.appcfg_cookies
INFO     2009-11-26 14:54:26,310 appengine_rpc.py:157] Server:
tut-it.appspot.com
INFO     2009-11-26 14:54:26,310 base.py:170] Now using the datastore at
'tut-it' at http://tut-it.appspot.com/remote_api

But....
at syncdb it fails getting an HTTP 302.

Thanks,
Gurminder

Here are the logs.


Running on app-engine-patch 1.1
processing file ._django.po in
/home/sunny/apatch/app-engine-patch-sample/apps/pagination/locale/fr/LC_MESSAGES
sh: msgfmt: not found
processing file django.po in
/home/sunny/apatch/app-engine-patch-sample/apps/pagination/locale/fr/LC_MESSAGES
sh: msgfmt: not found
processing file ._django.po in
/home/sunny/apatch/app-engine-patch-sample/apps/pagination/locale/pl/LC_MESSAGES
sh: msgfmt: not found
processing file django.po in
/home/sunny/apatch/app-engine-patch-sample/apps/pagination/locale/pl/LC_MESSAGES
sh: msgfmt: not found
processing file django.po in
/home/sunny/apatch/app-engine-patch-sample/apps/pagination/locale/de/LC_MESSAGES
sh: msgfmt: not found
DEBUG    2009-11-26 14:54:26,990 appengine_rpc.py:343] Sending HTTP request:
POST /remote_api? HTTP/1.1
Host: tut-it.appspot.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: Google-remote_api/1.0 Linux/2.6.28-11-generic
Python/2.5.4.final.0

DEBUG    2009-11-26 14:54:33,893 appengine_rpc.py:349] Got http error, this
is try #1
DEBUG    2009-11-26 14:54:33,894 appengine_rpc.py:364] Got 302 redirect.
Location: http://tut-it.appspot.com/remote_api/
DEBUG    2009-11-26 14:54:33,896 appengine_rpc.py:343] Sending HTTP request:
POST /remote_api? HTTP/1.1
Host: tut-it.appspot.com
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: Google-remote_api/1.0 Linux/2.6.28-11-generic
Python/2.5.4.final.0

DEBUG    2009-11-26 14:54:42,391 appengine_rpc.py:349] Got http error, this
is try #2
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    execute_manager(settings)
  File "/home/sunny/apatch/app-engine-patch-sample/apps/__init__.py", line
384, in execute_manager

  File "/home/sunny/apatch/app-engine-patch-sample/apps/__init__.py", line
325, in execute

  File
"/home/sunny/apatch/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/management/base.py",
line 200, in run_from_argv
  File
"/home/sunny/apatch/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/management/base.py",
line 227, in execute
  File
"/home/sunny/apatch/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/management/base.py",
line 356, in handle
  File
"/home/sunny/apatch/app-engine-patch-sample/common/zip-packages/django-1.1.zip/django/core/management/commands/syncdb.py",
line 63, in handle_noargs
  File
"/home/sunny/apatch/app-engine-patch-sample/common/appenginepatch/appenginepatcher/patch.py",
line 66, in count
    return old_count(self, limit)
  File "/usr/local/google_appengine/google/appengine/ext/db/__init__.py",
line 1552, in count
    result = raw_query.Count(limit=limit)
  File "/usr/local/google_appengine/google/appengine/api/datastore.py", line
1084, in Count
    self._ToPb(limit=limit), resp)
  File
"/usr/local/google_appengine/google/appengine/api/apiproxy_stub_map.py",
line 72, in MakeSyncCall
    apiproxy.MakeSyncCall(service, call, request, response)
  File
"/usr/local/google_appengine/google/appengine/api/apiproxy_stub_map.py",
line 266, in MakeSyncCall
    rpc.CheckSuccess()
  File "/usr/local/google_appengine/google/appengine/api/apiproxy_rpc.py",
line 111, in CheckSuccess
    raise self.exception
urllib2.HTTPError: HTTP Error 302: Found
==========================================



On Thu, Nov 26, 2009 at 3:28 PM, Andrius A <[email protected]> wrote:

> Hi Guys,
>
> Have fixed this. You need to have the remote_api handler for it. Because
> syncdb is accessing it on production server, dont know yet how syncdb works,
> but at least its working now.
>
> Make it your* first handler* in app.yaml file, otherwise it will not work
> (
> http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html
> )
>
> handlers:
> - url: /remote_api
>   script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
>   login: admin
>
>
> Regards,
> Andrew
>
> 2009/11/21 Guri <[email protected]>
>
> Hi,
>>  I got similar problem. Not able to update on app engine.
>>
>> Anyone ?
>>
>> Thanks,
>> Guri
>>
>> On Nov 14, 3:10 am, Andrew <[email protected]> wrote:
>> > Hi,
>> >
>> > I am trying to deploy site with recent app-engine-patch by invoking
>> > "manage.py update" and getting this 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.
>> > Will check again in 2 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 "D:\projects\python\export\svn\src\manage.py", line 20, in
>> > <module>
>> >     execute_manager(settings)
>> >   File "D:\projects\python\export\svn\src\__init__.py", line 384, in
>> > execute_manager
>> >
>> >   File "D:\projects\python\export\svn\src\__init__.py", line 325, in
>> > execute
>> >
>> >   File "D:\projects\python\export\svn\src\common\zip-packages
>> > \django-1.1.zip\django\core\management\commands\update.py", line 70,
>> > in run_from_argv
>> >   File "D:\projects\python\export\svn\src\common\zip-packages
>> > \django-1.1.zip\django\core\management\commands\update.py", line 53,
>> > in run_appcfg
>> >   File "D:\projects\python\export\svn\src\__init__.py", line 188, in
>> > call_command
>> >
>> >   File "D:\projects\python\export\svn\src\common\zip-packages
>> > \django-1.1.zip\django\core\management\base.py", line 227, in execute
>> >   File "D:\projects\python\export\svn\src\common\zip-packages
>> > \django-1.1.zip\django\core\management\base.py", line 356, in handle
>> >   File "D:\projects\python\export\svn\src\common\zip-packages
>> > \django-1.1.zip\django\core\management\commands\syncdb.py", line 63,
>> > in handle_noargs
>> >   File "D:\projects\python\CloudBidder\src\common\appenginepatch
>> > \appenginepatcher\patch.py", line 66, in count
>> >     return old_count(self, limit)
>> >   File "C:\Program Files (x86)\Google\google_appengine\google\appengine
>> > \ext\db\__init__.py", line 1552, in count
>> >     result = raw_query.Count(limit=limit)
>> >   File "C:\Program Files (x86)\Google\google_appengine\google\appengine
>> > \api\datastore.py", line 1084, in Count
>> >     self._ToPb(limit=limit), resp)
>> >   File "C:\Program Files (x86)\Google\google_appengine\google\appengine
>> > \api\apiproxy_stub_map.py", line 72, in MakeSyncCall
>> >     apiproxy.MakeSyncCall(service, call, request, response)
>> >   File "C:\Program Files (x86)\Google\google_appengine\google\appengine
>> > \api\apiproxy_stub_map.py", line 266, in MakeSyncCall
>> >     rpc.CheckSuccess()
>> >   File "C:\Program Files (x86)\Google\google_appengine\google\appengine
>> > \api\apiproxy_rpc.py", line 111, in CheckSuccess
>> >     raise self.exception
>> > urllib2.HTTPError: HTTP Error 302: Found
>> >
>> > What does it mean? It says that "Running syncdb", as far as I know
>> > there is no syncing with app engine datastore?
>> >
>> > Would be grateful for your help!
>> >
>> > Thanks,
>> > Andrius
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "app-engine-patch" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<app-engine-patch%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/app-engine-patch?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "app-engine-patch" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<app-engine-patch%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/app-engine-patch?hl=en.
>



-- 
--------------------------------------------------------------

--

You received this message because you are subscribed to the Google Groups 
"app-engine-patch" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/app-engine-patch?hl=en.


Reply via email to