lean deploy
[INFO] Current CLI tool version: 0.21.0
[INFO] Retrieving app info ...
[INFO] Preparing to deploy (CFJaDd3ww02cXvBVIR9ph0CX) to region: cn group: web staging
[INFO] Python runtime detected
[INFO] pyenv detected. Please make sure pyenv is configured properly.
[INFO] Uploading file 431.64 KiB / 431.64 KiB [=====================] 100.00% 0s
[REMOTE] 开始构建 20200212-224553
[REMOTE] 正在下载应用代码 ...
[REMOTE] 正在解压缩应用代码 ...
[REMOTE] 运行环境:python
[REMOTE] 正在下载和安装依赖项 ...
[REMOTE] 存储镜像到仓库(0B)...
[REMOTE] 版本 20200212-224553 构建完成
[REMOTE] 开始部署 20200212-224553 到 staging1
[REMOTE] 正在创建新实例 ...
[REMOTE] [Python] 使用 Python d.0, Python SDK 1.9.0
[REMOTE] 正在启动新实例 ...
[REMOTE] [ERROR] 实例日志:[ERROR] from leancloud import utils
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/utils.py", line 16, in
[ERROR] from werkzeug import LocalProxy
[ERROR] ImportError: cannot import name 'LocalProxy'
[ERROR] Traceback (most recent call last):
[ERROR] File "/usr/bin/start-wsgi.py", line 74, in
[ERROR] main()
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 722, in call
[ERROR] return self.main(*args, **kwargs)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 697, in main
[ERROR] rv = self.invoke(ctx)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 895, in invoke
[ERROR] return ctx.invoke(self.callback, **ctx.params)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 535, in invoke
[ERROR] return callback(*args, **kwargs)
[ERROR] File "/usr/bin/start-wsgi.py", line 69, in main
[ERROR] wsgi_func = import_app(wsgi_func)
[ERROR] File "/usr/bin/start-wsgi.py", line 34, in import_app
[ERROR] exec(compile(open(filename, "rb").read(), filename, 'exec'), mod)
[ERROR] File "wsgi.py", line 9, in
[ERROR] import leancloud
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/__init__.py", line 18, in
[ERROR] from . import client
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/client.py", line 14, in
[ERROR] from leancloud import utils
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/utils.py", line 16, in
[ERROR] from werkzeug import LocalProxy
[ERROR] ImportError: cannot import name 'LocalProxy'
[ERROR] Traceback (most recent call last):
[ERROR] File "/usr/bin/start-wsgi.py", line 74, in
[ERROR] main()
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 722, in call
[ERROR] return self.main(*args, **kwargs)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 697, in main
[ERROR] rv = self.invoke(ctx)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 895, in invoke
[ERROR] return ctx.invoke(self.callback, **ctx.params)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 535, in invoke
[ERROR] return callback(*args, **kwargs)
[ERROR] File "/usr/bin/start-wsgi.py", line 69, in main
[ERROR] wsgi_func = import_app(wsgi_func)
[ERROR] File "/usr/bin/start-wsgi.py", line 34, in import_app
[ERROR] exec(compile(open(filename, "rb").read(), filename, 'exec'), mod)
[ERROR] File "wsgi.py", line 9, in
[ERROR] import leancloud
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/__init__.py", line 18, in
[ERROR] from . import client
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/client.py", line 14, in
[ERROR] from leancloud import utils
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/utils.py", line 16, in
[ERROR] from werkzeug import LocalProxy
[ERROR] ImportError: cannot import name 'LocalProxy'
[ERROR] Traceback (most recent call last):
[ERROR] File "/usr/bin/start-wsgi.py", line 74, in
[ERROR] main()
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 722, in call
[ERROR] return self.main(*args, **kwargs)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 697, in main
[ERROR] rv = self.invoke(ctx)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 895, in invoke
[ERROR] return ctx.invoke(self.callback, **ctx.params)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 535, in invoke
[ERROR] return callback(*args, **kwargs)
[ERROR] File "/usr/bin/start-wsgi.py", line 69, in main
[ERROR] wsgi_func = import_app(wsgi_func)
[ERROR] File "/usr/bin/start-wsgi.py", line 34, in import_app
[ERROR] exec(compile(open(filename, "rb").read(), filename, 'exec'), mod)
[ERROR] File "wsgi.py", line 9, in
[ERROR] import leancloud
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/__init__.py", line 18, in
[ERROR] from . import client
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/client.py", line 14, in
[ERROR] from leancloud import utils
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/utils.py", line 16, in
[ERROR] from werkzeug import LocalProxy
[ERROR] ImportError: cannot import name 'LocalProxy'
[ERROR] Traceback (most recent call last):
[ERROR] File "/usr/bin/start-wsgi.py", line 74, in
[ERROR] main()
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 722, in call
[ERROR] return self.main(*args, **kwargs)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 697, in main
[ERROR] rv = self.invoke(ctx)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 895, in invoke
[ERROR] return ctx.invoke(self.callback, **ctx.params)
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/click/core.py", line 535, in invoke
[ERROR] return callback(*args, **kwargs)
[ERROR] File "/usr/bin/start-wsgi.py", line 69, in main
[ERROR] wsgi_func = import_app(wsgi_func)
[ERROR] File "/usr/bin/start-wsgi.py", line 34, in import_app
[ERROR] exec(compile(open(filename, "rb").read(), filename, 'exec'), mod)
[ERROR] File "wsgi.py", line 9, in
[ERROR] import leancloud
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/__init__.py", line 18, in
[ERROR] from . import client
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/client.py", line 14, in
[ERROR] from leancloud import utils
[ERROR] File "/usr/share/pyenv/versions/3.5.3/lib/python3.5/site-packages/leancloud/utils.py", line 16, in
[ERROR] from werkzeug import LocalProxy
[ERROR] ImportError: cannot import name 'LocalProxy'
[REMOTE] [ERROR] 应用启动失败: 无法访问应用的 Web 端口(Error: connect ECONNREFUSED 10.30.1.63:51255),请确保程序在 30 秒内正确地启动了 HTTP 服务
[REMOTE] [ERROR] 应用启动失败: 无法访问应用的 Web 端口(Error: connect ECONNREFUSED 10.30.1.63:51255),请确保程序在 30 秒内正确地启动了 HTTP 服务
[REMOTE] [ERROR] 部署发生错误:发生了 1 个错误
[INFO] Deleting temporary files
Deployment failed