为什么部署失败,回滚到成功的版本也失败呀? runtime: python3.9
错误是: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-03-10 22:57:45 WARN 1-640b4537-3b09ae27a9e7017fac21b34b - s info failed, attempt to retry, error: Command failed with exit code 1: s info --access 1678460215236 --output 1678460215236.output
ERROR: TypeError: Invalid output format: 1678460215236.output.
Please use one of default, json, yaml, raw
, {"shortMessage":"Command failed with exit code 1: s info --access 1678460215236 --output 1678460215236.output","command":"s info --access 1678460215236 --output 1678460215236.output","escapedCommand":""s info" "--access 1678460215236" "--output 1678460215236.output"","exitCode":1,"stdout":"\nERROR:\nTypeError: Invalid output format: 1678460215236.output.\n\nPlease use one of default, json, yaml, raw\n\n","stderr":"","failed":true,"timedOut":false,"isCanceled":false,"killed":false}
2023-03-10 22:57:46 ERROR 1-640b4537-3b09ae27a9e7017fac21b34b - Failed to deploy, errorMsg:[Command failed with exit code 1: s info --access 1678460215236 --output 1678460215236.output
ERROR: TypeError: Invalid output format: 1678460215236.output.
Please use one of default, json, yaml, raw
]
{'errorMessage': "Unable to import module 'index'", 'errorType': 'ImportModuleError', 'stackTrace': ["ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /code/cryptography/hazmat/bindings/_openssl.abi3.so)"]}
系统环境变了?怎么突然报错 /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /code/cryptography/hazmat/bindings/_openssl.abi3.so
cd /usr/local/python3 python3 -m venv tutorial-env source tutorial-env/bin/activate 再次尝试pip命令
根据错误信息看,部署失败的原因是在部署过程中运行了pip命令,而使用root用户运行pip命令可能会导致权限问题,所以推荐使用虚拟环境。如果您没有在部署时使用虚拟环境,可以尝试在代码中使用虚拟环境。同时,您可以检查一下您的操作系统和运行时环境是否发生了变化。
至于为什么回滚到成功版本后也失败了,这可能是因为您的代码依赖于特定的系统库版本,而成功版本的部署环境与当前部署环境不同,导致在回滚后依然无法正常运行。建议您尝试更新依赖库或调整代码以解决这个问题。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。