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

kubernetes中启动报错,本地环境下是正常的 #1450

Open
hctech opened this issue Sep 6, 2018 · 4 comments
Open

kubernetes中启动报错,本地环境下是正常的 #1450

hctech opened this issue Sep 6, 2018 · 4 comments
Labels
area/kubernetes kind/report-problem Categorizes issue when someone report the problem he/she meeted

Comments

@hctech
Copy link

hctech commented Sep 6, 2018

bad interpreter: Text file busy

image

@nobodyiam
Copy link
Member

是不是有编辑器打开了启动脚本?

https://web.archive.org/web/20110204213049/http://dpk.net/2009/03/13/flock-before-execve/

@AoleiC
Copy link

AoleiC commented Sep 6, 2018

昨天用Swarm也遇到过一次,config的, 没太深究,重启就好了

@hctech
Copy link
Author

hctech commented Sep 10, 2018

刚开始的确使用 sublime 打开过 startup-kubernetes.sh 的脚本。后来直接 clone 下来直接 docker build 故障依旧。需要重启很多次才能 running

@zczc0128
Copy link

zczc0128 commented Oct 8, 2018

Kubernetes里部署碰到同样的问题,在startup-kubernetes.sh脚本的一下两行之间加上sleep 1 或者 sync可以解决这个问题, 如下:


chmod 755 $SERVICE_NAME".jar"
sleep 1
./$SERVICE_NAME".jar" start


详见 moby/moby#9547

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubernetes kind/report-problem Categorizes issue when someone report the problem he/she meeted
Projects
None yet
Development

No branches or pull requests

5 participants