V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
liaoy
V2EX  ›  Google App Engine

使用Google app Engine Deploy时出现问题,如何解决。

  •  
  •   liaoy · 2011-10-05 16:31:08 +08:00 · 9328 次点击
    这是一个创建于 4796 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2011-10-05 16:12:11 Running command: "['C:\\Python25\\python.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'[email protected]', '--passin', 'update', 'C:\\micolog']"
    Application:XXXXXX; version: 1
    Host: appengine.google.com

    Starting update of app: ahearhwh, version: 1
    Scanning files on local disk.
    2011-10-05 16:12:46,548 WARNING appengine_rpc.py:435 ssl module not found.
    Without the ssl module, the identity of the remote host cannot be verified, and
    connections may NOT be secure. To fix this, please install the ssl module from
    http://pypi.python.org/pypi/ssl .
    To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl .
    Password for [email protected]: Error 409: --- begin server output ---
    Another transaction by user XXXXXX is already in progress for app: s~XXXXXX, version: 1. That user can undo the transaction with "appcfg rollback".
    --- end server output ---
    2011-10-05 16:13:34 (Process exited with code 1)

    You can close this window now.


    我已经到 http://pypi.python.org/pypi/ssl 里下载,且运行setup (python file). 但还是继续此问题。何解。
    14 条回复    1970-01-01 08:00:00 +08:00
    keakon
        1
    keakon  
       2011-10-05 16:39:48 +08:00
    先读完错误描述再问吧……

    你更新已经失败,要执行rollback才能update

    SSL没用,记住用代理
    Feuda
        2
    Feuda  
       2011-10-08 15:33:54 +08:00
    这两天我部署时出现问题,一直没解决,之前完全正常

    C:\Documents and Settings\Administrator>appcfg.py update d:\xxxxxxxx
    Traceback (most recent call last):
    File "C:\Program Files\Google\google_appengine\appcfg.py", line 77, in <module
    >
    run_file(__file__, globals())
    File "C:\Program Files\Google\google_appengine\appcfg.py", line 73, in run_fil
    e
    execfile(script_path, globals_)
    NameError: global name 'execfile' is not defined



    我想知道这是我的原因还是服务器的原因,phython,GAE,我都重新安装了,还是不行
    xspio
        3
    xspio  
       2011-10-10 01:28:20 +08:00
    @Feuda 连上VPN再上传试试
    Marble
        4
    Marble  
       2011-10-10 15:24:31 +08:00
    @Feuda 不支持d:\xxxxxxxx这种参数吧, 直接切换到project的目录, 然后update xxxxxx
    kirakira
        5
    kirakira  
       2011-10-10 17:52:30 +08:00
    上传被墙了 心里默默问候方校长一百次 然后写个bat
    set HTTP_PROXY=http://google.cn:80
    set HTTPS_PROXY=http://google.cn:80
    appcfg.py update ../项目文件夹
    seemid
        6
    seemid  
       2011-10-19 00:53:45 +08:00
    Application: xxx; version: 1
    Host: appengine.google.com

    Starting update of app: xxx, version: 1
    Scanning files on local disk.
    Password for [email protected]: Error 409: --- begin server output ---
    Another transaction by user inlaidharp is already in progress for app: xxx, version: 1. That user can undo the transaction with "appcfg rollback".
    --- end server output ---
    2011-10-19 00:22:36 (Process exited with code 1)

    You can close this window now.

    更改版本之后,错误如下:

    2011-10-19 00:45:17 Running command: "['D:\\Program Files\\Python\\pythonw.exe', '-u', 'D:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'[email protected]', '--passin', 'update', 'D:\\z\\xxx\\xxx']"
    Application: xxx; version: 2
    Host: appengine.google.com

    Starting update of app: xxx, version: 2
    Scanning files on local disk.
    Password for [email protected]: Error 400: --- begin server output ---
    api_version '2' is not supported by the 'python' runtime.
    --- end server output ---
    2011-10-19 00:45:31 (Process exited with code 1)

    You can close this window now.

    update 上传时 是开着 VPN 的。

    怎么回事呢?求解
    seemid
        7
    seemid  
       2011-10-19 00:56:43 +08:00
    python 是最新安装的
    keakon
        8
    keakon  
       2011-10-19 03:46:42 +08:00
    @seemid 检查app.yaml,把api_version设为1
    xmbaozi
        9
    xmbaozi  
       2011-10-19 09:03:42 +08:00
    你是上次更新中断,要回滚的。
    执行 appcfg.py roll back /项目路径/
    seemid
        10
    seemid  
       2011-10-19 09:21:40 +08:00
    @keakon update 成功了。
    Feuda
        11
    Feuda  
       2011-10-21 14:21:44 +08:00
    @seemid
    你更改什么版本?是PICKY的么?我的是project-picky-v0.1.9.1,现在更新出现的是你这样的错误

    Application: xxx; version: 1
    Host: appengine.google.com

    Starting update of app: xxx, version: 1
    Scanning files on local disk.
    Password for [email protected]: Error 409: --- begin server output ---
    Another transaction by user xxxx is already in progress for app: xxx, version: 1. That user can undo the transaction with "appcfg rollback".
    --- end server output ---
    2011-10-19 00:22:36 (Process exited with code 1)

    You can close this window now.
    seemid
        12
    seemid  
       2011-10-23 20:18:17 +08:00
    @Feuda 更改是:把 version 设为 2 . 不是 PICKY
    louyp
        13
    louyp  
       2011-11-08 23:10:55 +08:00
    是不是Python版本的问题,我也遇到过,为此我写了一段文字,可以参考。
    http://louypblog.appspot.com/2011/11/7/Technology.html 中间一段文字。
    bloggerao
        14
    bloggerao  
       2011-11-09 09:31:30 +08:00
    Google一下关键词 能搜索出来解决办法的,好像某个文件 某个数字错误 修改一下就行。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2424 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:04 · PVG 00:04 · LAX 08:04 · JFK 11:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.