为什么部署失败,回滚到成功的版本也失败呀? runtime: python3.9 错误是: WAR

为什么部署失败,回滚到成功的版本也失败呀? 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

展开
收起
云上静思 2023-03-12 10:07:55 1443 分享 版权
3 条回答
写回答
取消 提交回答
  • 天下风云出我辈,一入江湖岁月催,皇图霸业谈笑中,不胜人生一场醉。

    cd /usr/local/python3 python3 -m venv tutorial-env source tutorial-env/bin/activate 再次尝试pip命令

    2023-03-12 22:39:31
    赞同 展开评论
  • 复制一下,试试custom runtime 10

    此答案来自钉钉群“阿里函数计算官网客户"

    2023-03-12 18:13:39
    赞同 展开评论
  • 根据错误信息看,部署失败的原因是在部署过程中运行了pip命令,而使用root用户运行pip命令可能会导致权限问题,所以推荐使用虚拟环境。如果您没有在部署时使用虚拟环境,可以尝试在代码中使用虚拟环境。同时,您可以检查一下您的操作系统和运行时环境是否发生了变化。

    至于为什么回滚到成功版本后也失败了,这可能是因为您的代码依赖于特定的系统库版本,而成功版本的部署环境与当前部署环境不同,导致在回滚后依然无法正常运行。建议您尝试更新依赖库或调整代码以解决这个问题。

    2023-03-12 11:10:01
    赞同 展开评论

快速交付实现商业价值。

收录在圈子:
+ 订阅
阿里云 云原生应用平台 肩负阿里巴巴集团基础设施云化以及核心技术互联网化的重要职责,致力于打造稳定、标准、先进的云原生产品,成为云原生时代的引领者,推动行业全面想云原生的技术升级,成为阿里云新增长引擎。商业化产品包括容器、云原生中间件、函数计算等。
还有其他疑问?
咨询AI助理