today i updated to the latest docker image and now openhab does not start anymore.
In console i got this error:
++ echo gosu openhab tini -s ./start.sh
+ '[' 'gosu openhab tini -s ./start.sh' == 'su-exec openhab tini -s ./start.sh' ']'
+ exec gosu openhab tini -s ./start.sh
/entrypoint: line 119: exec: gosu: not found
Something in your system insists on using gosu while it got replaced with su-exec.
Do you use Portainer or something like that? I know Portainer stores all the default ENV or CMD values even though you don’t override them. Then it keeps using outdated default values after the defaults changed.
I have a test environment in docker with portainer, the only thing I had to do was a recreation of the container with repulling the image, after that the container used su-exec (it’s openHAB5.0 here, should be the same anyway…)
EDIT: Same for openHAB4, totally forgot that I had another test environment for openHAB4 as well…
Using “Default” would be better for these options. Otherwise you probably always have to manually update each option whenever the default value changes for good reasons.
Do not fully understand, did you change anything in portainer or just re-deployed? My compose does not contain anything like gosu…
I can see in the portainer advanced container settings that gosu command but I am not that specialist and have no idea where this is coming from.
Should I change that or just re-deploy?
EDIT:
OK in the meanwhile I just stopped and re-created but doesn’t help, not reachable
Changed now in advanced settings to su-exec but also no success.
What I also can see in glances that openhab is still recreating and using gosu.
What can I do here (Just noticed cannot save the change to su-exec in advanced settings)
OK, also removed the container (selecting without deleting the non-persistent volumes) and deployed the custom template again and YESSS up and running!
Try to create a new empty container with the same OpenHAB image. If it starts you might have the same issue I had.
Curiously starting the original image worked fine so that allowed me to take action.