zoneminder-containers / zoneminder-base

An always up-to-date automatically building ZoneMinder container
101 stars 32 forks source link

s6-overlay-suexec: fatal: can only run as pid 1 #28

Closed alexbelgium closed 2 years ago

alexbelgium commented 2 years ago

Hello,

When launching the "main" tag from dockerhub I have an error : "s6-overlay-suexec: fatal: can only run as pid 1" I've tried setting the PUID/PGID to 0 or blank and the issue is still there.

Any idea? Thanks!

alexyao2015 commented 2 years ago

This happens if you've overwritten the cmd and used a separate script to launch init. Init must be ran as pid 1

alexyao2015 commented 2 years ago

I see you're using home assistant. If you're trying to run this as an addon, you must set init to false in the addon config.

alexbelgium commented 2 years ago

Perfect, thanks very much! Indeed I'm building your dockerhub image in an addon :-) if that's ok for you of course

alexbelgium commented 2 years ago

Btw, thanks and congratulations for your great multi-arch zoneminder container !

twistedbrother commented 2 years ago

I see you're using home assistant. If you're trying to run this as an addon, you must set init to false in the addon config.

I didn't manage to find any "init" setting in the Access Point add-on config: where can this setting be changed ?

alexbelgium commented 2 years ago

Hi, this must be set when creating the addon, like here : https://developers.home-assistant.io/docs/add-ons/configuration/#optional-configuration-options

twistedbrother commented 2 years ago

Hi, this must be set when creating the addon, like here : https://developers.home-assistant.io/docs/add-ons/configuration/#optional-configuration-options

OK, understood, thank you very much for the clarification !