【问题标题】:How do I rollback the appcfg in Google App Engine's Python SDK?如何回滚 Google App Engine 的 Python SDK 中的 appcfg?
【发布时间】:2016-03-14 11:05:39
【问题描述】:

前几天我试图为我的网站发布代码,然后我收到了这样的问候:

2016-03-14 01:18:30 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--oauth2_credential_file=C:\\Users\\Bryce/.appcfg_oauth2_tokens', 'update', 'C:\\Users\\Bryce\\Desktop\\ShaolinP']"
01:19 AM Application: shaolinpretzels; version: 2
01:19 AM Host: appengine.google.com
01:19 AM 
Starting update of app: shaolinpretzels, version: 2
01:19 AM Getting current resource limits.
01:23 AM Scanning files on local disk.
Error 409: --- begin server output ---
Another transaction by user classsicb is already in progress for app: s~shaolinpretzels, version: 2. That user can undo the transaction with "appcfg rollback".
--- end server output ---
2016-03-14 01:29:21 (Process exited with code 1)

You can close this window now.

没有 Python 编程经验,我使用模板来发布网站。如果有人可以详细说明如何回滚 appcfg,对于 从未使用过 Python 的人,将不胜感激。

【问题讨论】:

    标签: python google-app-engine appcfg


    【解决方案1】:

    那是因为初始更新可能已停止或其他原因。所以你需要像错误消息指出的那样回滚。

    在你的具体情况下,你可以打开命令提示符(Win+R,然后输入cmd然后回车) 并运行以下命令:

    C:\Program Files (x86)\Google\google_appengine\appcfg.py rollback C:\Users\Bryce\Desktop\ShaolinP
    

    【讨论】:

    • 谢谢;我不得不将“Program Files (x86)”放在双引号中,但其余代码可以正常工作并解决了我的问题。
    猜你喜欢
    • 1970-01-01
    • 2012-02-29
    • 2018-02-10
    • 2012-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-29
    • 1970-01-01
    相关资源
    最近更新 更多