I'm new at Google Cloud services. I'm trying AppEngine. I'm just following the python tutorial here : https://developers.google.com/appengine/docs/python/gettingstartedpython27/uploading
I'm trying to deploy my file in Google but it doesn't work and I don't know why ! First I've forgotten to modify the app.yaml file but now I have filled the "application" with "direct-way-658" which is the name of my application!
Here the log information:
2014-07-29 14:28:47 Running command: "['C:\\python27_x64\\python.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=akash.myeamail#gmail.com', '--passin', 'update', 'D:\\POCGOOGLE\\guestbook']"
02:28 PM Application: direct-way-658; version: 1
02:28 PM Host: appengine.google.com
02:28 PM Starting update of app: direct-way-658, version: 1
02:28 PM Getting current resource limits.
2014-07-29 14:28:48,681 ERROR appcfg.py:2395 An error occurred processing file '': <urlopen error [Errno 11004] getaddrinfo failed>. Aborting.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 126, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 122, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5334, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5325, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2963, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4991, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3762, in Update
self._UpdateWithParsedAppYaml(appyaml, self.basepath)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3815, in _UpdateWithParsedAppYaml
self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3698, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2385, in DoUpload
self.error_fh)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 468, in GetResourceLimits
resource_limits.update(_GetRemoteResourceLimits(logging_context))
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 438, in _GetRemoteResourceLimits
yaml_data = logging_context.Send('/api/appversion/getresourcelimits')
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1724, in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 409, in Send
f = self.opener.open(req)
File "C:\python27_x64\lib\urllib2.py", line 404, in open
response = self._open(req, data)
File "C:\python27_x64\lib\urllib2.py", line 422, in _open
'_open', req)
File "C:\python27_x64\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\python27_x64\lib\urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 387, in do_open
raise url_error
urllib2.URLError: <urlopen error [Errno 11004] getaddrinfo failed>
2014-07-29 14:28:48 (Process exited with code 1)
You can close this window now.
Can you help me please ?
Can you post your app.yaml? Looks like its trying to upload a file with no name "An error occurred processing file '': . Aborting."
I faced something similar while trying to upload a .json file, by following the suggestion here https://gist.github.com/darktable/873098 I edited my App.yaml and added a mime type and it worked.
application: your_app
version: 1
runtime: php
api_version: 1
handlers:
- url: /static
static_dir: static
- url: /.*
script: index.php
- url: /(.*\.json)
mime_type: application/json
static_files: static/\1
upload: static/(.*\.json)
expiration: "1h"
Thank you all for your anwsers ! But it was a proxy problem. The compagny I work for use a proxy for all it connection with internet do I had to set my enrironment variables so that Google app engine go through this proxy.
In the Google SDK shell :
set HTTP_PROXY=http:// name:pass#proxy:port
set HTTPS_PROXY=http:// name:pass#proxy:port
then lanch the app :
appcfg.py update name_of_the_app/
Related
I have a website on app engine - uses python. We have updated the site - to a more modern bootstrap affair. We can now no longer deploy it we get the following error:
2017-04-11 22:27:17 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--oauth2_credential_file=C:\\Users\\spydre/.appcfg_oauth2_tokens', 'update', 'C:\\Users\\spydre\\ashfordchroming2015']"
10:27 PM Application: ashfordchroming2015; version: 1
10:27 PM Host: appengine.google.com
10:27 PM Starting update of app: ashfordchroming2015, version: 1
10:27 PM Getting current resource limits.
10:27 PM Scanning files on local disk.
Could not guess mimetype for static/plugins/jquery-1.11.1.min.map. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/font/revicons.eot. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/arrows.psd. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/bullets.psd. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/small_arrows.psd. Using application/octet-stream.
10:27 PM Scanned 500 files.
Could not guess mimetype for static/bootstrap/css/bootstrap-theme.css.map. Using application/octet-stream.
Could not guess mimetype for static/bootstrap/css/bootstrap.css.map. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/small_arrows.psd. Using application/octet-stream.
Could not guess mimetype for static/bootstrap/css/bootstrap.css.map. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/bullets.psd. Using application/octet-stream.
Could not guess mimetype for static/bootstrap/css/bootstrap-theme.css.map. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/assets/arrows.psd. Using application/octet-stream.
Could not guess mimetype for static/plugins/rs-plugin/font/revicons.eot. Using application/octet-stream.
Could not guess mimetype for static/plugins/jquery-1.11.1.min.map. Using application/octet-stream.
10:27 PM Cloning 476 static files.
10:27 PM Cloning 119 application files.
10:27 PM Uploading 249 files and blobs.
2017-04-11 22:29:29,138 ERROR appcfg.py:2587 An unexpected error occurred. Aborting.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2425, in DoUpload
self._UploadMissingFiles(missing_files, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2554, in _UploadMissingFiles
self.UploadFile(missing_file, file_handle)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2055, in UploadFile
file_classification.StaticMimeType())
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1477, in AddToBatch
self.SendSingleFile(path, payload, mime_type)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1423, in SendSingleFile
path=path)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1719, in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py", line 246, in Send
url, method=method, body=payload, headers=headers)
File "C:\Program Files (x86)\Google\google_appengine\lib\oauth2client\oauth2client\client.py", line 569, in new_request
redirections, connection_type)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1584, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1332, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1306, in _conn_request
conn.connect()
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1053, in connect
raise socket.error, msg
error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
10:29 PM Rolling back the update.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 133, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5510, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5501, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2975, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5157, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3889, in Update
self._UpdateWithParsedAppYaml(appyaml, self.basepath)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3942, in _UpdateWithParsedAppYaml
self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3824, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2425, in DoUpload
self._UploadMissingFiles(missing_files, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2554, in _UploadMissingFiles
self.UploadFile(missing_file, file_handle)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2055, in UploadFile
file_classification.StaticMimeType())
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1477, in AddToBatch
self.SendSingleFile(path, payload, mime_type)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1423, in SendSingleFile
path=path)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1719, in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py", line 246, in Send
url, method=method, body=payload, headers=headers)
File "C:\Program Files (x86)\Google\google_appengine\lib\oauth2client\oauth2client\client.py", line 569, in new_request
redirections, connection_type)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1584, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1332, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1306, in _conn_request
conn.connect()
File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1053, in connect
raise socket.error, msg
socket.error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
2017-04-11 22:29:31 (Process exited with code 1)
We are using windows 10 have downloaded the latest CLI and are running on Python. However the site is running on webapp python 2.5. We have not upgraded it to 2.7.
Here is the code and tutorials: https://github.com/cdhigh/kindleear
I tried a lot of times but it failed with following error message. No matter how you use cmd mode or GAE launcher, it was always the same issue. I have no idea what's going on. Could you help me?
P.S.:Windows 7 64bit OS ,2.7.10 Python,GAE SDK 1.9.22
c:\Program Files (x86)\Google\google_appengine>c:\python27\python.exe
appcfg.py update c:\users\my\applications\mywhitekindleear\app.yaml c:\users\my\applicatio
ns\mywhitekindleear\module-worker.yaml
05:15 PM Host: appengine.google.com
05:15 PM Application: mywhitekindleear; version: 1
05:15 PM
Starting update of app: mywhitekindleear, version: 1
05:15 PM Getting current resource limits.
2015-06-19 17:23:38,694 ERROR appcfg.py:2449 An error occurred processing file '
': [Errno 10060] . Aborting.
Traceback (most recent call last):
File "appcfg.py", line 133, in <module>
run_file(__file__, globals())
File "appcfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 5486, in <module>
main(sys.argv)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 5477, in main
result = AppCfgApp(argv).Run()
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 3018, in Run
self.action(self)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 5133, in __call__
return method()
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 3825, in Update
self.UpdateUsingSpecificFiles()
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 3817, in UpdateUsingSpecificFiles
self.UpdateVersion(rpcserver, self.basepath, module_yaml, file_name)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 3793, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 2439, in DoUpload
self.error_fh)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 493, in GetResourceLimits
resource_limits.update(_GetRemoteResourceLimits(logging_context))
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 463, in _GetRemoteResourceLimits
yaml_data = logging_context.Send('/api/appversion/getresourcelimits')
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pcfg.py", line 1749, in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc_httplib2.py", line 236, in Send
url, method=method, body=payload, headers=headers)
File "c:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__i
nit__.py", line 1584, in request
(response, content) = self._request(conn, authority, uri, request_uri, metho
d, body, headers, redirections, cachekey)
File "c:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__i
nit__.py", line 1332, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, he
aders)
File "c:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__i
nit__.py", line 1306, in _conn_request
conn.connect()
File "c:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__i
nit__.py", line 1053, in connect
raise socket.error, msg
socket.error: [Errno 10060]
c:\Program Files (x86)\Google\google_appengine>
Happened same with me. Then I found out that I am not running the command "appcfg.py ....." in the correct directory. You may want to browse to the directory where your project is present and not in the Google/appengine directory i.e in simple words browse to where your app.yaml and module-worker.yaml are located and try to run the command again.
Hope it helps.
p.s. Dont forget to add PATH of appengine to your system directory
I keep getting the below error every time I do a deploy after updating GAE to a new version (1.8.3 in this case).
I have read other questions about this and the going recommendation is to delete /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/cacerts/*cacerts.txt
Does anyone know of a better fix than deleting these files after every update?
Note: I have the Python SSL module installed
*** Running appcfg.py with the following flags:
--no_cookies --email=joshainglis#gmail.com --passin update
10:52 AM Host: appengine.google.com
10:52 AM Application: josha-search-py-demo; version: 1
Traceback (most recent call last):
File "google_appengine/appcfg.py", line 171, in <module>
run_file(__file__, globals())
File "google_appengine/appcfg.py", line 167, in run_file
execfile(script_path, globals_)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4282, in <module>
main(sys.argv)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4273, in main
result = AppCfgApp(argv).Run()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2409, in Run
self.action(self)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4003, in __call__
return method()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2987, in Update
updatecheck.CheckForUpdates()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/sdk_update_checker.py", line 259, in CheckForUpdates
runtime=runtime))
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 393, in Send
f = self.opener.open(req)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/urllib2.py", line 1215, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 383, in do_open
url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (_ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed):
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***
There is a copy of fancy_urllib inside fancy_urllib where the __init__.py is with InvalidCertificateException class definition.
Just copy .../fancy_urllib/fancy_urllib/__init__.py to .../fancy_urllib/__init__.py
When I click the Deploy button for my project, it gives me the following error: File "C:\Python27\lib\httplib.py", line 721, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: 'port'.
I've successfully deployed this project before, so I tried reverting the files so that I would have the same files when it worked properly. No dice, it seems. That was just a jab in the dark, though -- the full trace shows this starting in Google App Engine's files, not mine.
Anyone know how I can deploy my project?
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 171, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 167, in run_file
execfile(script_path, globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4191, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4182, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2579, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3927, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3040, in Update
updatecheck.CheckForUpdates()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 596, in CheckForUpdates
runtime=self.config.runtime)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 383, in Send
f = self.opener.open(req)
File "C:\Python27\lib\urllib2.py", line 400, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 418, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1215, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 370, in do_open
req)
File "C:\Python27\lib\urllib2.py", line 1146, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 78, in __init__
httplib.HTTPSConnection.__init__(self, *args, **kwargs)
File "C:\Python27\lib\httplib.py", line 1149, in __init__
source_address)
File "C:\Python27\lib\httplib.py", line 693, in __init__
self._set_hostport(host, port)
File "C:\Python27\lib\httplib.py", line 721, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: 'port'
2012-10-22 16:55:29 (Process exited with code 1)
You can close this window now.
I'll preface this by saying I'm not familiar with the GUI, so feel free to completely disregard :).
The error seems to indicate that you are trying to specify a particular port for deployment, and furthermore, the value of that setting is the word 'port'. When using the commnand line with the dev server, port is an argument you can use to specify a particular port to use; my best guess is that this keyword parameter is still defined (as port) when you are trying to deploy. Is there a section where you can specify command-line flags? Is it possible that port is defined there when deploying?
I've resolved this by completely uninstalling and reinstalling both Python 2.7 and GAE. This complete wipe should include the deletion of any environment variables that have been set since your usage of GAE.
In my case, I think it was particularly the creation of environment proxy variables. A complete wipe of Python and GAE resolved this.
Thanks for your help in advance!
I want to get contents of a website, so I use urllib.urlopen(url).
set url='http://localhost:8080'(tomcat page)
If I use Google App Engine Launcher, run the application, browse http://localhost:8082 , it works well.
But if I specify the address and port for the application:
python `"D:\Program Files\Google\google_appengine\dev_appserver.py" -p 8082 -a 10.96.72.213 D:\pagedemon\videoareademo`
there's something wrong:
Traceback (most recent call last):
File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\_webapp25.py", line 701, in __call__
handler.get(*groups)
File "D:\pagedemon\videoareademo\home.py", line 76, in get
wp = urllib.urlopen(url)
File "C:\Python27\lib\urllib.py", line 84, in urlopen
return opener.open(url)
File "C:\Python27\lib\urllib.py", line 205, in open
return getattr(self, name)(url)
File "C:\Python27\lib\urllib.py", line 343, in open_http
errcode, errmsg, headers = h.getreply()
File "D:\Program Files\Google\google_appengine\google\appengine\dist\httplib.py", line 334, in getreply
response = self._conn.getresponse()
File "D:\Program Files\Google\google_appengine\google\appengine\dist\httplib.py", line 222, in getresponse
deadline=self.timeout)
File "D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py", line 263, in fetch
return rpc.get_result()
File "D:\Program Files\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 592, in get_result
return self.__get_result_hook(self)
File "D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py", line 365, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 2 [Errno 11003] getaddrinfo failed
The strangest thing is when I change the url form "http://localhost:8080" to "http://127.0.0.1:8080", it works well!
I googled a lot, but I didn't find any good solutions.Hoping for some help!
Also, I didn't configure any proxy.IE works well.
Your system doesn't necessarily know that localhost should resolve to 127.0.0.1. You might need to put an entry into your hosts file. On Windows, it's located at C:\Windows\System32\drivers\etc\hosts