Google App Engine Launcher has a problem. After you click Deploy, you will find that it cannot work normally. Sorry, the following error is reported:
16:32:27, 427 ERROR appcfg. py: 1568 An unexpected error occurred. Aborting.
Traceback (most recent call last ):
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1535, in DoUpload
Missing_files = self. Begin ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1305, in Begin
Version = self. version, payload = self. config. ToYAML ())
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appengine_rpc.py", line 346, in Send
F = self. opener. open (req)
File "C:/Python25/lib/urllib2.py", line 381, in open
Response = self. _ open (req, data)
File "C:/Python25/lib/urllib2.py", line 399, in _ open
'_ Open', req)
File "C:/Python25/lib/urllib2.py", line 360, in _ call_chain
Result = func (* args)
File "C:/Python25/lib/urllib2.py", line 1115, in https_open
Return self. do_open (httplib. HTTPSConnection, req)
File "C:/Python25/lib/urllib2.py", line 1082, in do_open
Raise URLError (err)
URLError: <urlopen error (8, 'eof occurred in violation of Protocol')>
Traceback (most recent call last ):
File "C:/Program Files/Google/google_appengine/appcfg. py", line 68, in <module>
Run_file (_ file __, globals ())
File "C:/Program Files/Google/google_appengine/appcfg. py", line 64, in run_file
Execfile (script_path, globals _)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2757, in <module>
Main (sys. argv)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2748, in main
Result = AppCfgApp (argv). Run ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1763, in Run
Self. action (self)
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2619, in _ call __
Return method ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 2070, in Update
Lambda path: open (OS. path. join (basepath, path), 'rb '))
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1535, in DoUpload
Missing_files = self. Begin ()
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appcfg. py", line 1305, in Begin
Version = self. version, payload = self. config. ToYAML ())
File "C:/Program Files/Google/google_appengine/google/appengine/tools/appengine_rpc.py", line 346, in Send
F = self. opener. open (req)
File "C:/Python25/lib/urllib2.py", line 381, in open
Response = self. _ open (req, data)
File "C:/Python25/lib/urllib2.py", line 399, in _ open
'_ Open', req)
File "C:/Python25/lib/urllib2.py", line 360, in _ call_chain
Result = func (* args)
File "C:/Python25/lib/urllib2.py", line 1115, in https_open
Return self. do_open (httplib. HTTPSConnection, req)
File "C:/Python25/lib/urllib2.py", line 1082, in do_open
Raise URLError (err)
Urllib2.URLError: <urlopen error (8, 'eof occurred in violation of Protocol')>
2010-06-16 16:32:27 (Process exited with code 1)
The reason is that https://appengine.google.com/is not easily uploaded.
The solution is as follows:
1. Execute the following command in the command line:
Set HTTP_PROXY = http://google.cn: 80
Set HTTPS_PROXY = http://google.cn: 80
Appcfg. py update your app folder
It can be uploaded successfully.
2. the command line upload solution is
Appcfg. py -- insecure update project
The -- insecure parameter is added.