'版本未准备好'异常导致appengine新应用程序部署失败 [英] appengine new application deployment fails with 'version not ready' exception
问题描述
我试图在appengine上部署一个应用程序,这是一个新的应用程序。
我尝试更改版本名称并重新部署,我甚至创建了一个新的应用程序ID并剥离了相同的应用程序,但没有运气。
2013-06-10 19:47:41,615警告appcfg.py:1778版本仍未准备好投放,正在中止。
2013-06-10 19:47:41,615错误appcfg.py:1992发生意外错误。中止。
Traceback(最近一次调用最后):
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,行1978,在DoUpload
app_summary = self.Commit()
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py ,第1779行,在提交
引发异常('版本未准备就绪。')
例外:版本未准备好。
07:47 PM回滚更新。
Traceback(最近一次调用的最后一个):
在< module>文件中的C:\Program Files(x86)\Google\google_appengine\appcfg.py,第171行。
run_file(__ file__,globals())
在run_file $ b $ execfile中的文件C:\程序文件(x86)\Google\google_appengine\appcfg.py,第167行(script_path,globals_)
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,第4187行,位于< module>
main(sys.argv)
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,第4178行,在主
结果= AppCfgApp(argv).Run()
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg。 py,第2339行,运行
self.action(self)
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\ appcfg.py,第3913行,在__call__
return method()
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\更新$ b $ self.UpdateVersion(rpcserver,self.basepath,appyaml,yaml_file_basename)
文件C:\程序文件(x86)\Google\google_appengine\\中的第2914行appcfg.py \\google \appengine\tools\appcfg.py,第2863行,在UpdateVersion
返回appversion.DoUpload(路径, openfunc)
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,第1978行,在DoUpload
app_summary = self.Commit()
在Commit $ b $中的文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,第1779行b引发异常('版本未准备好')
异常:版本未准备好。
2013-06-10 19:47:43(过程退出代码1)
任何线索?!
它看起来像之前已经见过这个相同的问题。
有一个解决方法可以适用于大多数开发者:
将您的应用程序部署为新版本。请不要经常尝试重新部署您的应用程序。即使
部署脚本超时,您的应用程序也已经在队列中。 使用.latest URL验证新版本是否处于活动状态
- 使用管理控制台将活动应用程序或默认应用程序切换至此版本。 b
如果这样做无效,有人会报告成功执行应用程序回滚,然后重新部署它。
I'm trying to deploy an application on appengine, it is a new one. I tried changing version names and deploying again, I even created a new application id and deplyed the same app but with no luck.
2013-06-10 19:47:41,615 WARNING appcfg.py:1778 Version still not ready to serve, aborting.
2013-06-10 19:47:41,615 ERROR appcfg.py:1992 An unexpected error occurred. Aborting.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1978, in DoUpload
app_summary = self.Commit()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1779, in Commit
raise Exception('Version not ready.')
Exception: Version not ready.
07:47 PM Rolling back the update.
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 4187, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4178, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2339, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3913, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2914, in Update
self.UpdateVersion(rpcserver, self.basepath, appyaml, yaml_file_basename)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2863, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1978, in DoUpload
app_summary = self.Commit()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1779, in Commit
raise Exception('Version not ready.')
Exception: Version not ready.
2013-06-10 19:47:43 (Process exited with code 1)
any clue?!
It looks like this same issue has been seen before.
there is a work around that should work for most developers:
Deploy your application as a new version. Please do not constantly attempt to redeploy your app. Your app is already in the queue even if the deploy script times out.
Validate that the new version is active using the .latest URL
Use the Admin Console to switch the active or default application to this version
Unable to update app: Version not ready
If that doesn't work, some people are reported success with performing a rollback of their application, and then redeploying it.
这篇关于'版本未准备好'异常导致appengine新应用程序部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!