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镜像手动停止后无法再次启动问题 #168

Closed
anonymous5l opened this issue Jul 8, 2024 · 3 comments
Closed

Docker镜像手动停止后无法再次启动问题 #168

anonymous5l opened this issue Jul 8, 2024 · 3 comments

Comments

@anonymous5l
Copy link

起因:
手动将容器停止后再开启就会出现如下错误导致无法启动程序。

解决方案:
删除容器目录内<容器文件目录>/var/packages/pan-xunlei-com/target/var下的所有文件,再重新启动即可。

错误日志:

07/08 17:00:07 ERR [xunlei-pan-cli] Lockfile TryLock err:Locked by other process
07/08 17:00:07 ERR [xunlei-pan-cli] - panic: Locked by other process
07/08 17:00:07 ERR [xunlei-pan-cli] -
07/08 17:00:07 ERR [xunlei-pan-cli] - goroutine 1 [running]:
07/08 17:00:07 ERR [xunlei-pan-cli] - main.Lockfile()
07/08 17:00:07 ERR [xunlei-pan-cli] - 	/xunlei-pan-cli/cmd/pan-cli-launcher/main.go:1099 +0x1cd
07/08 17:00:07 ERR [xunlei-pan-cli] - main.main()
07/08 17:00:07 ERR [xunlei-pan-cli] - 	/xunlei-pan-cli/cmd/pan-cli-launcher/main.go:1127 +0x125
07/08 17:00:07 INF [xunlei-pan-cli] readlog done
07/08 17:00:07 ERR [xunlei-pan-cli] exited err="exit status 2"
07/08 17:00:07 ERR [main] exited! err="exit status 2"

建议:
/bin/xlp程序内启动的时候加入清空<容器文件目录>/var/packages/pan-xunlei-com/target/var目录下所有文件的功能。

@chrisuhg
Copy link

chrisuhg commented Jul 8, 2024

俺也一样,我用 compose 起的,直接重建比较快

@cnk3x
Copy link
Owner

cnk3x commented Jul 9, 2024

好的。

@cnk3x
Copy link
Owner

cnk3x commented Jul 9, 2024

已修改 daemon version: 3.20.1

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

3 participants