The load module for Google applications opens an empty file at boot

I execute the following two commands:

appcfg.py download_data --kind=Journal --url=http://appname.appspot.com/_ah/remote_api --filename=Journals.sql3 appcfg.py upload_data --url=http://localhost:8080/_ah/remote_api --kind=Journal --filename=Journals.sql3 

The first successfully loads the data into the following files: bulkloader-results-20130718.112127.sql3 Journals.sql3 No errors. When I open the file in notepad, it looks like the data is there.

The second opens every random new empty file every time it starts (for example, bulkloader-progress-20130718.115805.sql3). He then gives the following error log:

 INFO 2013-07-18 11:54:48,930 module.py:595] default: "POST /_ah/remote_api HTTP/1.1" 200 96 INFO 2013-07-18 11:58:17,563 module.py:595] default: "GET /_ah/remote_api?rtok=36123921049 HTTP/1.1" 200 64 INFO 2013-07-18 11:58:20,609 module.py:595] default: "GET /_ah/remote_api HTTP/1.1" 200 37 ERROR 2013-07-18 09:58:20,618 handler.py:384] Exception while handling service_name: "datastore_v4" method: "AllocateIds" request: "" Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\handler.py", line 380, in post response_data = self.ExecuteRequest(request) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\handler.py", line 411, in ExecuteRequest response_data) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 94, in MakeSyncCall return stubmap.MakeSyncCall(service, call, request, response) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 328, in MakeSyncCall rpc.CheckSuccess() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_rpc.py", line 156, in _WaitImpl self.request, self.response) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 200, in MakeSyncCall self._MakeRealSyncCall(service, call, request, response) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remote_api\remote_api_stub.py", line 234, in _MakeRealSyncCall raise pickle.loads(response_pb.exception()) AttributeError: 'NoneType' object has no attribute 'THREADSAFE' INFO 2013-07-18 11:58:20,622 module.py:595] default: "POST /_ah/remote_api HTTP/1.1" 200 96 

What am I doing wrong?

EDIT: There is still no solution. What's funny is that loading the application engine on the server works.

+6
source share
1 answer

There seems to be a ticket for this problem, and this is due to the latest version of the dev (1.8.2) Python server.

As suggested on this ticket, I downgraded my Dev server to a previous version of the SDK (1.8.1), and bulk loading worked again as expected.

+4
source

Source: https://habr.com/ru/post/949732/


All Articles