Skip to content
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

s6-supervise (child): fatal: unable to exec run: Permission denied - On start #28

Closed
painejake opened this issue Oct 20, 2016 · 7 comments

Comments

@painejake
Copy link

painejake commented Oct 20, 2016

When starting the container the following errors are outputted into the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 
-------------------------------------
          _     _ _
         | |___| (_) ___
         | / __| | |/ _ \ 
         | \__ \ | | (_) |
         |_|___/ |_|\___/
               |_|
Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
-------------------------------------
GID/UID
-------------------------------------
User uid:    1006
User gid:    500
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] done.
[services.d] starting services
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds
[services.d] done.
s6-supervise (child): fatal: unable to exec run: Permission denied
s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds

Running:
CentOS 7 - 3.10.0-327.36.2.el7.x86_64
Docker version 1.10.3, build cb079f6-unsupported

SELinux set to permissive

Command used to created container:
docker create --name sonarr -p 8989:8989 -e PUID=1006 -e PGID=500 -v /dev/rtc:/dev/rtc:ro -v /home/sonarr:/config -v /home/media:/tv -v /home/sonarr:/downloads linuxserver/sonarr

Where 1006 is the UID of the sonarr user and 500 is the GUID of the media group (shared between all necessary containers)

Seems that it could be linked to s6-overlay? Not sure only been using docker for a few days :)

Links:
just-containers/s6-overlay#158

Let me know if any further information is required

@tobbenb
Copy link
Member

tobbenb commented Oct 20, 2016

Are you using the centos package for docker or the official docker version?
If you use the centos version, please remove it and install the official docker version.

@painejake
Copy link
Author

Thanks @tobbenb will give that a whirl

@painejake
Copy link
Author

That's exactly the issue, I didn't even think of installing the latest version from the docker repo!

Thanks

@stephenomenon
Copy link

I'm having this exact same issue on Fedora 25, with the same image. However, switching from the fedora Docker package to the Official Docker package did not resolve this issue for me. Any other suggestions out there?

@fdrock
Copy link

fdrock commented Dec 21, 2016

I am having the same issue under Fedora 25 for 2 different containers, Sonarr and Plex. I am also on docker repo not Fedora's

s6-supervise plex: warning: unable to spawn ./run - waiting 10 seconds

s6-supervise sonarr: warning: unable to spawn ./run - waiting 10 seconds

Any way we can re-open this thread or should we open a new one?

@sparklyballs
Copy link
Contributor

it's an issue directly with fedora 25 and docker

just-containers/s6-overlay#158 (comment)

there's not much we can do about it until it's fixed upstream by either fedora or docker.

@inhumantsar
Copy link

@sparklyballs there's a workaround listed in that comment which works. ie: adding VOLUME ["/run"] to the dockerfile or -v /run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants