Unable to connect to remote shell

133 views
Skip to first unread message

Ritesh Agrawal

unread,
Jul 28, 2014, 1:11:28 PM7/28/14
to google-a...@googlegroups.com
Hello all,
I am using python 2.7.3 with django 1.6.4.

I am trying to connect to remote python interactive shell but getting error
ritesh@ritesh-PC:~/Git/appoint-me/default$ python manage.py remote shell
WARNING:root:The Backends API is deprecated and will be removed in a future release. Please migrate to the Modules API as soon as possible.
INFO:root:Setting up remote_api for 'appoint-me' at https://appoint-me.appspot.com/_ah/remote_api.
INFO:root:Connecting to remote_api handler.

IMPORTANT: Check your login method settings in the App Engine Dashboard if you have problems logging in. Login is only supported for Google Accounts.
DEBUG:google.appengine.tools.appengine_rpc:Could not load authentication cookies; LoadError: '/home/ritesh/.appcfg_cookies' does not look like a Netscape format cookies file
DEBUG:google.appengine.tools.appengine_rpc:Server: appoint-me.appspot.com
DEBUG:google.appengine.tools.appengine_rpc:Sending HTTPS request:
GET /_ah/remote_api?rtok=652543765521 HTTPS/1.1
X-appcfg-api-version: 1
Content-type: application/octet-stream
User-agent: Google-remote_api/1.0 Linux/3.2.0-65-generic Python/2.7.3.final.0

DEBUG:google.appengine.tools.appengine_rpc:Got http error, this is try #1
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/ritesh/Git/appoint-me/default/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/home/ritesh/Git/appoint-me/default/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ritesh/Git/appoint-me/default/djangoappengine/management/commands/remote.py", line 16, in run_from_argv
    stub_manager.setup_remote_stubs(connection)
  File "/home/ritesh/Git/appoint-me/default/djangoappengine/db/stubs.py", line 118, in setup_remote_stubs
    rpc_server_factory=rpc_server_factory)
  File "/home/ritesh/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 725, in ConfigureRemoteApi
    app_id = GetRemoteAppIdFromServer(server, path, rtok)
  File "/home/ritesh/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", line 568, in GetRemoteAppIdFromServer
    response = server.Send(path, payload=None, **urlargs)
  File "/home/ritesh/google_appengine/google/appengine/tools/appengine_rpc.py", line 409, in Send
    f = self.opener.open(req)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found


Please guide me on this.

Regards
Ritesh Agrawal

Vinny P

unread,
Aug 6, 2014, 1:22:21 AM8/6/14
to google-a...@googlegroups.com
On Mon, Jul 28, 2014 at 12:11 PM, RITESH AGRAWAL <udr.r...@gmail.com> wrote:
I am trying to connect to remote python interactive shell but getting error
IMPORTANT: Check your login method settings in the App Engine Dashboard if you have problems logging in. Login is only supported for Google Accounts.
DEBUG:google.appengine.tools.appengine_rpc:Could not load authentication cookies; LoadError: '/home/ritesh/.appcfg_cookies' does not look like a Netscape format cookies file
DEBUG:google.appengine.tools.appengine_rpc:Server: appoint-me.appspot.com
DEBUG:google.appengine.tools.appengine_rpc:Sending HTTPS request:
GET /_ah/remote_api?rtok=652543765521 HTTPS/1.1

Please guide me on this.



If you delete the file /home/ritesh/.appcfg_cookies and retry, what happens? Are you connecting through a proxy server (usually found in a work or school environment)?


-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

 
Reply all
Reply to author
Forward
0 new messages