-
Notifications
You must be signed in to change notification settings - Fork 932
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: cannot execute oxidized #3331
Comments
Can you provide more information on your setup (how do you start the container, with which arguments...)? |
I'm using Portainer, nothing change (beside version if image). Command is '/sbin/my_init' and mapped directory for config, data and model. |
I see several problems in the Dockerfile:
I can run the docker image with docker without problem:
Also using
To further inspect your problem, I really need the arguments you are passing to docker, in order to try to reproduce. |
I've found the difference. In 0.31.0, oxidized gets installed in The path is correctly specified in the container image, which explains why it works for me: $ podman inspect docker.io/oxidized/oxidized:0.30.1 | grep PATH
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
$ podman inspect docker.io/oxidized/oxidized:0.31.0 | grep PATH
"PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"created_by": "ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", Portainer probably did not updated its specified path when you tried the new image, which causes the error on your server. A quick workaround would be to update the PATH in Portainer. |
The change was introduced in commit c56bc4b (PR #3272). I tend to leave this unchanged: introducing Portainer should be able to re-read the PATH from the containter image, or let you set the PATH correctly. Could you try this? |
I tried to update path, but Container still fails to start, now it logs:
|
Running it on Synology if it matters and using the latest image. |
Nevermind, creating Container from scratch updated PATH and added GEM_HOME (which was missing from my config) |
Hello,
I tried upgrade Oxidized from 0.30.1 to 0.31.0, but after start I got only error mesage cannot execute oxidized
Log:
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Dec 2 11:47:51 f84c882441e4 syslog-ng[14]: syslog-ng starting up; version='4.3.1'
*** Booting runit daemon...
*** Runit started as PID 24
Dec 2 11:47:52 f84c882441e4 cron[30]: (CRON) INFO (pidfile fd = 3)
Dec 2 11:47:52 f84c882441e4 cron[30]: (CRON) INFO (Running @reboot jobs)
setuser: cannot execute oxidized: [Errno 2] No such file or directory
setuser: cannot execute oxidized: [Errno 2] No such file or directory
setuser: cannot execute oxidized: [Errno 2] No such file or directory
setuser: cannot execute oxidized: [Errno 2] No such file or directory
The text was updated successfully, but these errors were encountered: