我如何执行命令'appcfg rollback'? [英] How do I execute the command 'appcfg rollback'?

查看:144
本文介绍了我如何执行命令'appcfg rollback'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上传项目时,出现网络故障,我不得不停下来,而上传过程只完成了31%。现在,当我点击将应用程序部署到Google应用程序引擎时,会生成以下消息:

  com.google.appengine.tools.admin .HttpIoException:发布到URL的错误:
https://appengine.google.com/api/appversion/create?app_id=programworks&version=1&
409冲突
用户suhailgupta03的另一个事务已经在应用程序中:
s〜programworks,版本:1.该用户可以使用
appcfg rollback撤消事务。

无法更新应用:发布到网址时出错:https://appengine.google.com/api/appversion/create?app_id=programworks&version=1&
409冲突
用户suhailgupta03的另一个事务已经在应用中:
s〜programworks,version:1.该用户可以使用appcfg rollback撤消事务。

打开我的shell提示符并在其中键入 appcfg rollback 但我收到一条消息,说这个命令没有找到。我已经安装了谷歌应用程序引擎作为netbeans的插件。



我保留罐子的路径的谷歌应用程序引擎: /home/non-admin/appengine-java-sdk-1.6.6/lib /



<请告诉我该怎么做才能回滚以前的流程?我非常需要上传 war 文件! 你想要 appcfg.sh rollback (它位于 path_to_your_app_engine_sdk / bin / 中)。 appcfg 对于每种类型的运行时(Python,Java,Go)都有不同的变体,因此建议的命令有点泛化。



如果由于某种原因,您无法轻松访问项目的整个war目录(例如,如果您的IDE仅向您提供.war文件),则可以执行以下操作: p>


  1. 制作一个名为 war 的目录。

  2. war 文件夹内创建另一个目录并将其命名为 WEB-INF

  3. code> WEB-INF 删除两个xml文件,即 web.xml appengine-web.xml 。这些应该分别具有您部署的 web.xml appengine-web.xml 文件的内容。

然后运行以下shell命令(假设您从 bin> 目录执行它App Engine Java SDK):

  [non-admin @ user bin] $ ./appcfg.sh rollback / home / admin / NetBeansProjects / PersonalSite / web / war 

如果您使用Go appengine工具,需要运行:

  $ cd [您的go_appengine目录] 
$ ./appcfg.py rollback [您的应用目录中有app.yaml]


While uploading the project , there was a network failure and I had to stop, when the uploading process was only 31% complete. Now when I click to deploy application to google app engine the following message is produced :

com.google.appengine.tools.admin.HttpIoException: Error posting to URL: 
https://appengine.google.com/api/appversion/create?app_id=programworks&version=1&
409 Conflict
Another transaction by user suhailgupta03 is already in progress for app: 
s~programworks, version: 1. That user can undo the transaction with 
"appcfg rollback".

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=programworks&version=1&
409 Conflict
Another transaction by user suhailgupta03 is already in progress for app: 
s~programworks, version: 1. That user can undo the transaction with "appcfg rollback".

I open my shell prompt and type in there appcfg rollback but I get a message that this command is not found.I have installed google app engine as a plugin for netbeans.

The path where I have kept the jars of google app engine : /home/non-admin/appengine-java-sdk-1.6.6/lib/

Please tell what should I do to rollback the previous process ? I badly need to upload the war file.!

解决方案

You want appcfg.sh rollback (which is in path_to_your_app_engine_sdk/bin/). appcfg comes in different variants for each type of runtime (Python, Java, Go), so the suggested command is a bit generic.

If, for whatever reason, you don't have easy access to the entire war directory of your project (if, for example your IDE only gives you a .war file), you can do the following:

  1. Make a directory named war.
  2. Inside the war folder make another directory and name it as WEB-INF.
  3. In the folder WEB-INF drop two xml files, namely web.xml and appengine-web.xml. These should have the contents of your deployed web.xml and appengine-web.xml files respectively.

Then run the following shell command (this assumes you execute it from the bin directory of the App Engine Java SDK):

[non-admin@user bin]$ ./appcfg.sh rollback /home/non-admin/NetBeansProjects/PersonalSite/web/war

If you are using the Go appengine tools, then you'll need to run:

$ cd [your go_appengine directory]
$ ./appcfg.py rollback [your app directory with app.yaml in it]

这篇关于我如何执行命令'appcfg rollback'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆