Reading this again it looks like your issue is just the syntax and it's trying to interpret '--oauth2' as the hostname. The syntax is 'remote_api_shell.py [-s HOSTNAME]'. On the latest SDK (1.9.33) the --oauth2 option has been removed as it is now the default and only option. If I try it the incorrect way above it produces a similar error 'Unable to find server at --oauth2'.
On Wednesday, February 24, 2016 at 3:22:24 AM UTC-5, Andri Firstianto-GCP wrote: > > Dear Adam, > > Thank you for the feedback. > > Here are > > Project Name : xxx-xxxxxx-xx-xxx > Project ID: xxx-xxxxxx-xx-xxx-1227 > Website: xxx-xxxxxx-xx-xxx-1227.appspot.com > Application Name: xxx-xxxxxx-xx-xxx-1227 > > > Here is the result of this command line: appcfg.py update app.yaml > 11:56 PM Host: appengine.google.com > 11:56 PM Application: xxx-xxxxxxt-xx-xxx-1227; version: 1 > 11:56 PM > Starting update of app: xxx-xxxxxx-xx-xxx-1227, version: 1 > 11:56 PM Getting current resource limits. > 11:56 PM Scanning files on local disk. > 11:56 PM Cloning 10 application files. > 11:56 PM Compilation starting. > 11:56 PM Compilation completed. > 11:56 PM Starting deployment. > 11:56 PM Checking if deployment succeeded. > 11:56 PM Deployment successful. > 11:56 PM Checking if updated app version is serving. > 11:56 PM Completed update of app: xxx-xxxxxx-xx-xxx-1227, version: 1 > > Here is the command "NOT OK" > remote_api_shell.py -s --oauth2 xxx-xxxxxx-xx-xxx-1227.appspot.com > > ERROR: urllib2.URLError: <urlopen error [Errno 11001] getaddrinfo failed> > > Please help and thank you... > > > > > On Tuesday, February 23, 2016 at 3:32:07 PM UTC-8, Adam (Cloud Platform > Support) wrote: >> >> Does 'appcfg.py update app.yaml' also work from the command line directly >> in your project directory? Note that the application 'name' is not >> necessarily the same as the application 'id', so that can also be your >> issue. Make sure you are passing the <app-id> as '***-1227.appspot.com' >> matching the first output above. >> >> On Sunday, February 21, 2016 at 10:18:13 PM UTC-5, Andri Firstianto-GCP >> wrote: >>> >>> 1. No, i have replaced <app_id> with GAE python application NAME and >>> NOT running behind a proxy. >>> >>> 2. *** OK, if use Google App Engine Launcher to deploy **** >>> >>> 2016-02-21 19:02:08 Running command: "['C:\\Python27\\pythonw.exe', >>> '-u', 'E:\\..Pre-CRT-Inv\\GAE\\ptthon-gae-1.9.32\\appcfg.py', >>> '--oauth2_credential_file=C:\\Users\\Andri/.appcfg_oauth2_tokens', >>> 'update', 'E:\\workspace\\test-master']" >>> 07:02 PM Application: ***-1227; version: 1 >>> 07:02 PM Host: appengine.google.com >>> 07:02 PM >>> Starting update of app: ***-1227, version: 1 >>> 07:02 PM Getting current resource limits. >>> 07:02 PM Scanning files on local disk. >>> 07:02 PM Cloning 10 application files. >>> 07:02 PM Uploading 3 files and blobs. >>> 07:02 PM Uploaded 3 files and blobs. >>> 07:02 PM Compilation starting. >>> 07:02 PM Compilation completed. >>> 07:02 PM Starting deployment. >>> 07:02 PM Checking if deployment succeeded. >>> 07:02 PM Deployment successful. >>> 07:02 PM Checking if updated app version is serving. >>> 07:02 PM Completed update of app: ***-1227, version: 1 >>> 2016-02-21 19:02:30 (Process exited with code 0) >>> >>> You can close this window now. >>> >>> >>> 3. **** Failed to connect GAE Apps via remote_api_shell.py ***** >>> here is the error : >>> >>> Traceback (most recent call last): >>> File "E:\..Pre-CRT-Inv\GAE\python-gae\remote_api_shell.py", line 126, >>> in <module> >>> run_file(__file__, globals()) >>> File "E:\..Pre-CRT-Inv\GAE\python-gae\remote_api_shell.py", line 122, >>> in run_file >>> execfile(_PATHS.script_file(script_name), globals_) >>> File >>> "E:\..Pre-CRT-Inv\GAE\python-gae\google\appengine\tools\remote_api_shell.py", >>> >>> line 149, in <module> >>> main(sys.argv) >>> File >>> "E:\..Pre-CRT-Inv\GAE\python-gae\google\appengine\tools\remote_api_shell.py", >>> >>> line 145, in main >>> appengine_rpc.HttpRpcServer) >>> File >>> "E:\..Pre-CRT-Inv\GAE\python-gae\google\appengine\tools\remote_api_shell.py", >>> >>> line 74, in remote_api_shell >>> remote_api_stub.MaybeInvokeAuthentication() >>> File >>> "E:\..Pre-CRT-Inv\GAE\python-gae\google\appengine\ext\remote_api\remote_api_stub.py", >>> >>> line 740, in MaybeInvokeAuthentication >>> datastore_stub._server.Send(datastore_stub._path, payload=None) >>> File >>> "E:\..Pre-CRT-Inv\GAE\python-gae\google\appengine\tools\appengine_rpc.py", >>> line 405, 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 11001] getaddrinfo failed> >>> >>> >>> Please help and thank you >>> >>> >>> >>> On Sunday, February 21, 2016 at 3:36:55 PM UTC-8, Adam (Cloud Platform >>> Support) wrote: >>>> >>>> This usually means that the host is unreachable. What are you providing >>>> as <app_id>? Are you connecting from behind a proxy? >>>> >>>> On Saturday, February 20, 2016 at 5:17:10 PM UTC-5, Andri >>>> Firstianto-GCP wrote: >>>>> >>>>> Hi, >>>>> >>>>> Try to execute from command.com >>>>> remote_api_shell.py -s --oauth2 <app_id>.appspot.com >>>>> >>>>> already download OAuth 2.0 client IDs (JSON) and save at >>>>> gae-python-application folder (PATH already set to this loction). >>>>> >>>>> but still got error below >>>>> "urllib2.URLError: <urlopen error [Errno 11001] getaddrinfo failed>" >>>>> >>>>> Please help and thank you >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f6dbd634-e70f-49a6-a095-c62939d9f88b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
