最近部署一支失败,这是错误log。
lean deploy
[INFO] lean (v1.2.4) running on darwin/arm64
[INFO] lean deploy
now has no default target. Specify the environment by --prod
or --staging
flag to avoid this prompt:
[?] Please select the environment:
1) Production
2) Staging
=> 1
[INFO] Current app: robo-api-dev (nhwUtsqnRDNnbw3YtNa4OrLk-gzGzoHsz), group: web, region: cn-n1
[INFO] Deploying new version to production
[INFO] Python runtime detected
[INFO] pyenv detected. Please make sure pyenv is configured properly.
[INFO] Found executable file: /Users/jiemeng/.pyenv/shims/python3.9
[INFO] Uploading file 14.50 MiB / 14.50 MiB [=======================] 100.00% 6s
[REMOTE] 开始构建 20241217-123034
[REMOTE] 正在下载应用代码 ...
[REMOTE] 正在解压缩应用代码 ...
[REMOTE] 运行环境:python
[REMOTE] 正在下载和安装依赖项 ...
[REMOTE] [ERROR] 部署失败:build failed: %!T(MISSING)otal %!R(MISSING)eceived %!X(MISSING)ferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2827 100 2827 0 0 71 0 0:00:39 0:00:39 --:--:-- 144
Cloning into '/usr/share/pyenv'...
fatal: unable to access 'https://github.com/pyenv/pyenv.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Failed to git clone https://github.com/pyenv/pyenv.git
The command '/bin/sh -c chmod +x /usr/bin/start-wsgi.py && http_proxy=http://proxy.leancloud.cn:8080 https_proxy=http://proxy.leancloud.cn:8080 curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | http_proxy=http://proxy.leancloud.cn:8080 https_proxy=http://proxy.leancloud.cn:8080 bash && http_proxy=http://proxy.leancloud.cn:8080 https_proxy=http://proxy.leancloud.cn:8080 pyenv install 3.9 && pyenv global 3.9 && http_proxy=http://proxy.leancloud.cn:8080 https_proxy=http://proxy.leancloud.cn:8080 pip install --upgrade pip && http_proxy=http://proxy.leancloud.cn:8080 https_proxy=http://proxy.leancloud.cn:8080 pip install 'gevent>=22.10.2,<23.0.0' 'click>=6.7,<7.0' 'requests>=2.25.1' 'gevent-websocket>=0.10.1,<1.0.0' 'uwsgi>=2.0.0,<3.0.0'' returned a non-zero code: 255
Deployment failed