-
Notifications
You must be signed in to change notification settings - Fork 949
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) |
Same problem in v0.32.0 |
And probably same solution - re-read your container. |
What is "re-read" meaning? |
The Docker container is OK, but with the update it introduces an environment Variable GEM_HOME, wich is set in the container. The problem on this issue was, that the container running engine did not notice the new environment, which causes the problem. If this is not your problem, create a new issue, and be sure to read https://github.com/ytti/oxidized/blob/master/docs/Issues.md first. |
So what path should be set in GEM_HOME? In docs is nothing about this variable. |
Came looking for info about the ubuntu user. Looks like ubuntu made a decision to include the ubuntu user with their base image and the only way around it is to either remove the user on build or use the ubuntu user instead of a custom one. https://askubuntu.com/questions/1513927/ubuntu-24-04-docker-images-now-includes-user-ubuntu-with-uid-gid-1000 Edit: Looks like the phusion image used gives a disclaimer: https://github.com/phusion/baseimage-docker/releases/tag/noble-1.0.0 |
@72tlukas72 - please read the whole Issue, everything is explained in it. I'll produce a FAQ some time, and this is why I assigned the issue to me. |
Okay I will wait to v0.33 :-D |
- Reverts the pre-build stage with GEM_HOME as it broke things. I've found a solution which is quite as much compact, but it takes a longer time to build. Closes Issue ytti#3331 - Improve the docker documentation. Closses Issue ytti#3336 - Remove examples/podman-compose as it is described in the docker documentation. - fix rake build_container to comply with the tags in the new GitHub CI.
* Update Dockerfile & Documentation - Reverts the pre-build stage with GEM_HOME as it broke things. I've found a solution which is quite as much compact, but it takes a longer time to build. Closes Issue #3331 - Improve the docker documentation. Closses Issue #3336 - Remove examples/podman-compose as it is described in the docker documentation. - fix rake build_container to comply with the tags in the new GitHub CI.
I've reverted the change in PR #3429, which will fix this issue. |
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: