Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

基于docker构建项目会出现 python3: command not found错误 #76

Open
huangjipo opened this issue Dec 10, 2021 · 1 comment
Open

Comments

@huangjipo
Copy link

DEBU[2021-12-10T06:06:54Z] pending message has been sent: slog______
DEBU[2021-12-10T06:06:54Z] [ShellLog]: /bin/bash: line 21: python3: command not found
DEBU[2021-12-10T06:06:54Z] pending message has been sent: slog______
DEBU[2021-12-10T06:06:54Z] [Exit]: StdOut/Err, log size = 525
INFO[2021-12-10T06:06:55Z] Container flowci/debian-docker 0347dcce8f713b50455379c487e0b495a0f9d2c5b5765a84de4d2985b90bfb0b for cmd 61b2ee4ce8e7603bf8ed2259 has been deleted
INFO[2021-12-10T06:06:56Z] Container mysql:5.6 50d684f3e33281c8a004ac7ba0aee5a085a49a765c2c4ecc113717d3fdc938b5 for cmd 61b2ee4ce8e7603bf8ed2259 has been deleted
WARN[2021-12-10T06:06:56Z] open : no such file or directory
INFO[2021-12-10T06:06:56Z] Cmd '61b2ee4ce8e7603bf8ed2259' been executed with exit code 127
DEBU[2021-12-10T06:06:56Z] Result of cmd been pushed
INFO[2021-12-10T06:06:56Z] [Agent Status] = Idle
DEBU[2021-12-10T06:06:56Z] [Exit]: cmd been executed and service is available !
DEBU[2021-12-10T06:06:56Z] pending message has been sent: cmd_out___
INFO[2021-12-10T06:06:56Z] [Uploaded]: /ws/.logs/61b2ee4ce8e7603bf8ed2259.log
DEBU[2021-12-10T06:06:56Z] [Exit]: LogConsumer
DEBU[2021-12-10T06:07:01Z] pending message has been sent: profile___
DEBU[2021-12-10T06:07:01Z] ...
DEBU[2021-12-10T06:07:11Z] ...
DEBU[2021-12-10T06:07:12Z] pending message has been sent: profile___
DEBU[2021-12-10T06:07:21Z] ...
DEBU[2021-12-10T06:07:23Z] pending message has been sent: profile___
DEBU[2021-12-10T06:07:31Z] ...
DEBU[2021-12-10T06:07:34Z] pending message has been sent: profile___
DEBU[2021-12-10T06:07:41Z] ...

@gy2006
Copy link
Contributor

gy2006 commented Dec 13, 2021

Agent 是通过 docker 启动的?还是直接运行 Agent 的可执行文件启动的?

如果是本地直接运行 Agent 的可执行文件启动的,需要启动之前添加 FLOWCI_AGENT_VOLUMES 环境变量,让 Agent 自动加载 python 的运行环境

export FLOWCI_AGENT_VOLUMES="name=pyenv,dest=/ci/python,script=init.sh,image=flowci/pyenv,init=init-pyenv-volume.sh"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants