-
Notifications
You must be signed in to change notification settings - Fork 34
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 image shutting down after a few days #16
Comments
Are you using provided Dockerfile for alpine linux? To get more detailed logging (debug) you'll need to compile in debug mode (without --release, binary then will be in target/debug) and set environment variable to RUST_LOG=debug (which will log debug from all creates) or just RUST_LOG=audioserve=debug - to log only debug messages from this binary. You can also try to strip down features you are not using - compile with --no-default-features and then --features you want. This will leave out unwanted code in case it causes problems. When exactly the termination of container happens?
As exist status is 0 I assume it's not segfault or some other OS enforced termination. |
Also looking now at default logging when running in Docker container it was not ideal - although info logging is enabled for release build, it's not enabled by adding appropriate env. variable (I've fixed it in latest master).
|
I run it using this docker-compose configuration: audioserve:
image: izderadicka/audioserve
container_name: audioserve
command: ["--allow-symlinks", "/audiobooks"]
volumes:
- /home/mange/services/audioserve/config:/home/audioserve/.audioserve
- /home/mange/services/audioserve/library:/audiobooks
env_file:
- /home/mange/services/audioserve/config/secrets.env
restart: unless-stopped It happens when the service is not used. I'll see about recompiling it and trying the debug logs for a bit, but now it's been running without issue for 4 days. I'll recompile it the next time it crashes, just before I also capture the whole output of |
@Mange Any more crashes? Some logs? |
Seems from Log is just full of
so I can't give you anything from there. |
Thanks, |
I am actually trying to use it, though. 😄 |
@Mange And is it working? Can you open another issue for these error messages? I'm also trying to use it , but getting different messages
I think I know why this message come from - it's when websocket is closed unexpentantly (mobile device lost connection, rev. proxy closes connection). Here it looks like client is using incorrect websocket request - or maybe it's proxy (normally you need to do some setup on rev. proxy for websockets to work). |
Any update? Still problem with docker image stability? |
It seems to have gone away. Feel free to close this.
I'll reopen if I see it happening again with any additional information I
have.
Den fre 27 dec. 2019 17:45Ivan Zderadicka <notifications@github.com> skrev:
… Any update? Still problem with docker image stability?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AAAAMP5DDLALZHW5JYLTBVTQ2YWLLA5CNFSM4IHKWZ62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHXOLSY#issuecomment-569304523>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMP6CJR3UIAWCPBGYVJTQ2YWLLANCNFSM4IHKWZ6Q>
.
|
@Mange Thanks |
I'm running the service inside the official docker image and proxy it via nginx + let's encrypt. After a few days the process exits with status code 0 and no log output, making nginx shut down (for domain name reasons with docker-compose; but that's not the issue here).
Is there some way I can try to debug this problem? I'm pretty confident in Rust, but it's also running on a server with limited hardware, so recompiling constantly is probably not going to work for me.
It's happened four times now, so I'm now turning on
restart: unless-stopped
to work around it, but getting to the cause of the issue would be preferred by me.The little information I can give:
docker inspect
either.I'm sorry I cannot give any more information. This "issue" is literally me asking for ideas on what to look for so I can give you better information.
The text was updated successfully, but these errors were encountered: