1

When I try to update my Google App Engine module, I get an error saying that the name and version are already in use (which they are, I'm trying to UPDATE). I've tried updating the whole EAR as well as just the module that I want to update, but both result in the same errors:

Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?module=stomp&app_id=<my_app_id>&version=stomp&
400 Bad Request
Version 'stomp' is already in use as a module name. Please use a different version.

    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
    at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
    at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:973)
    at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:645)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:147)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:445)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1339)
    at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:325)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:211)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:122)
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:118)
com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?module=stomp&app_id=<my_app_id>&version=stomp&
400 Bad Request
Version 'stomp' is already in use as a module name. Please use a different version.

    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:451)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1339)
    at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:325)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:211)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:122)
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:118)
Caused by: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?module=stomp&app_id=<my_app_id>&version=stomp&
400 Bad Request
Version 'stomp' is already in use as a module name. Please use a different version.

    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:293)
    at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
    at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:973)
    at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:645)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:147)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:445)
    ... 6 more
4

1 回答 1

3

我认为它抱怨模块和版本共享相同的名称“stomp”,尝试使用不同的版本和模块名称。

我还没有在 App Engine 文档中找到这一点,但它似乎是一个限制,您不能将模块名称与其版本名称相同,例如具有此 yaml 文件的模块将不可更新:

application: my-app-id
version: test
module: test
runtime: python27
api_version: 1
threadsafe: true

尽管您将能够运行更新以上传模块的初始版本,但当您再次尝试更新它时,它将失败并出现以下错误:

Error 400: 
--- begin server output ---
Version 'test' is already in use as a module name. Please use a different version.
--- end server output ---
于 2014-04-08T12:06:18.650 回答