My application runs on GAE. Using Google's bulk loader I make occasional backups of the database. It used to be that I could use the GAE SDK (appcfg tool in this case) to upload all the data into the development server on my development machine, thus creating the full data context for the SDK.
This now fails. I'm not sure (or if) how the remote_api validates the provided email/password, but the results are the same failure with all sensible choices of password, e.g. the primary google account password (the account owns the app on GAE), the application specific password used for the bulk download for GAE (the gmail account uses 2 factor authentication), or no password. I attach the script used to run the development upload (which used to work until recently) and the command window output from running it. Also the app.yaml file. Anyone have any idea what the problem might be? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Loading test data from "ocsnedb20131204.bak" 11:31 AM Uploading data records. [INFO ] Logging to bulkloader-log-20131204.113157 [INFO ] Throttling transfers: [INFO ] Bandwidth: 250000 bytes/second [INFO ] HTTP connections: 8/second [INFO ] Entities inserted/fetched/modified: 20/second [INFO ] Batch Size: 10 Please enter login credentials for localhost:8081 Email: dgma...@gmail.com Password for dgma...@gmail.com: Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 196, in <module> run_file(__file__, globals()) File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 192, in run_file execfile(script_path, globals_) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 4810, in <module> main(sys.argv) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 4801, in main result = AppCfgApp(argv).Run() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 2611, in Run self.action(self) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 4495, in __call__ return method() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 4307, in PerformUpload run_fn(args) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pcfg.py", line 4198, in RunBulkloader sys.exit(bulkloader.Run(arg_dict)) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bu lkloader.py", line 4408, in Run return _PerformBulkload(arg_dict) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bu lkloader.py", line 4194, in _PerformBulkload throttle_class=throttle_class) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\bu lkloader.py", line 4101, in _GetRemoteAppId rpc_server_factory=throttled_rpc_server_factory, secure=secure) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remo te_api\remote_api_stub.py", line 659, in GetRemoteAppId app_id = GetRemoteAppIdFromServer(server, path, rtok) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remo te_api\remote_api_stub.py", line 568, in GetRemoteAppIdFromServer response = server.Send(path, payload=None, **urlargs) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap pengine_rpc.py", line 409, in Send f = self.opener.open(req) File "C:\Python27\lib\urllib2.py", line 404, in open response = self._open(req, data) File "C:\Python27\lib\urllib2.py", line 422, in _open '_open', req) File "C:\Python27\lib\urllib2.py", line 382, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 1214, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1184, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno 10061] No connection could be made becau se the target machine actively refused it> Press any key to continue . . .
app.yaml
Description: Binary data
@ECHO OFF FOR /F "tokens=1-4 delims=/ " %%I IN ('DATE /t') DO SET mydate=%%L%%J%%K ECHO Backing up to "ocsnedb%mydate%.bak" appcfg.py download_data --url=http://ocsnedb-hrd.appspot.com/_ah/remote_api --filename=ocsnedb%mydate%.bak pause