nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

s6-sudoc: fatal: unable to get exit status from server: Operation timed out

Open tebra-jl opened this issue 3 years ago • 49 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

After updating from 2.9.19 to 2.9.21, docker don’t start. See log below.

Nginx Proxy Manager Version 2.9.21

Operating System Odroid Debian OS docker arm64

Additional context

Docker-compose

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - app-data:/data
      - letsencrypt:/etc/letsencrypt
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
volumes:
  app-data:
  letsencrypt:

Log of docker:

s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/01_perms.sh
/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_perms.sh: not found
cont-init: info: /etc/cont-init.d/01_perms.sh exited 127
cont-init: info: running /etc/cont-init.d/01_s6-secret-init.sh
/package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: 20: /package/admin/s6-overlay-3.1.4.1/etc/s6-rc/scripts/cont-init: /etc/cont-init.d/01_s6-secret-init.sh: Permission denied
cont-init: info: /etc/cont-init.d/01_s6-secret-init.sh exited 126
cont-init: warning: some scripts exited nonzero
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service prepare: starting
❯ Checking folder structure ...
s6-rc: fatal: timed out
s6-sudoc: fatal: unable to get exit status from server: Operation timed out
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.

tebra-jl avatar Mar 22 '23 20:03 tebra-jl

Sorry, all good now. I just restart one more time…

tebra-jl avatar Mar 22 '23 20:03 tebra-jl

Faced the same issue, docker only works when restarted again

molejado avatar Mar 23 '23 06:03 molejado

Same problem here. It does work if you restart the container. It does not work when first started (ie. after a computer reboot). It also doesn't work again when starting after an update. Currently on version 2.9.22. I'm not sure where these logs it refers to are located. A big problem is that the container doesn't restart on its own. It just hangs there not working until it is restarted.

This is still an issue. I would recommend opening it back up.

Bovive avatar Mar 24 '23 15:03 Bovive

Same problem here. It does work if you restart the container. It does not work when first started (ie. after a computer reboot). It also doesn't work again when starting after an update. Currently on version 2.9.22. I'm not sure where these logs it refers to are located. A big problem is that the container doesn't restart on its own. It just hangs there not working until it is restarted.

This is still an issue. I would recommend opening it back up.

This is also the case for me. I have returned to 2.9.19 and can still use it normally. Continue to wait and see.

albicoccca avatar Mar 25 '23 02:03 albicoccca

Assuming this is happening on your existing stacks that have been running for a while, I'm guessing that the script that checks ownership at startup is taking longer than expected due to the size of your letsencrypt folder.

Certbot doesn't clean up older certs and just leaves them there after each renewal, so this folder can get filled with files although they are not too big.

The second restart would be faster if the files were fresh in storage caches, perhaps.

See the release notes for 2.9.20 for instructions to prune this folder.

In the meantime I'll look at fixing the timeout.

jc21 avatar Mar 26 '23 23:03 jc21

Same problem here, the log says:

❯ Configuring npmuser ... id: 'npmuser': no such user s6-rc: fatal: timed out s6-sudoc: fatal: unable to get exit status from server: Operation timed out /run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.

MarkKla avatar Mar 27 '23 13:03 MarkKla

Assuming this is happening on your existing stacks that have been running for a while, I'm guessing that the script that checks ownership at startup is taking longer than expected due to the size of your letsencrypt folder.

Certbot doesn't clean up older certs and just leaves them there after each renewal, so this folder can get filled with files although they are not too big.

The second restart would be faster if the files were fresh in storage caches, perhaps.

See the release notes for 2.9.20 for instructions to prune this folder.

In the meantime I'll look at fixing the timeout.

Do you know if there are detailed instructions on how to use this for npm? I am not Docker savvy. The commands listed either give me a "no configuration file provided" or "no such container" error. Thanks!

Bovive avatar Mar 27 '23 14:03 Bovive

Also have the problem. Tried stopping / restart Docker. Restart Synology NAS but keeps coming back. Because of that all my program's are not running anymore that works with the proxy so hopping you find a fix

Log: s6-sudoc: fatal: unable to get exit status from server: Operation timed out /run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information

mikeo999 avatar Mar 27 '23 14:03 mikeo999

The /etc/letsencrypt directories on the arm64 rpis that are timing out are not large (~125k and ~250k respectively). I've been running npm for about 18 months but use a single wildcard cert for each instance.

kosmonot avatar Mar 27 '23 15:03 kosmonot

Just for pointing out that same issue (along with same workaround too) happens even starting from scratch with a brand new NPM container (v2.10.0).

EDIT - BTW just noticed that in another installation of mine (running v2.9.22 arm64) everything worked fine after upgrade to latest (v2.10.0)

walterzilla avatar Mar 27 '23 18:03 walterzilla

Came here to add another vote that I am experiencing this issue

StewartPolsky avatar Mar 27 '23 18:03 StewartPolsky

Fresh server install of ubuntu 22.04, new docker installed, same problem no certs, can't create a user default won't log in. Same error message as above.

allluke avatar Mar 27 '23 19:03 allluke

+1

krovs avatar Mar 27 '23 19:03 krovs

v2.9.22 works, v2.10 fails to launch with s6-rc: fatal: timed out

mrskizzex avatar Mar 27 '23 21:03 mrskizzex

Fresh server install of ubuntu 22.04, new docker installed, same problem no certs, can't create a user default won't log in. Same error message as above.

I've just spun up Ubuntu 22.04.2 LTS amd64 with only docker installed and I don't have any problems using this config, login and changing default user works absolutely fine.

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

jc21 avatar Mar 27 '23 22:03 jc21

I've put a fix up and it's available in the github-develop docker tag, can you please try that and let me know if you get further. Please close this if that fixes it.

jc21 avatar Mar 27 '23 23:03 jc21

I've put a fix up and it's available in the github-develop docker tag, can you please try that and let me know if you get further. Please close this if that fixes it.

the github-develop docker tag fixed it for me.

thedxt avatar Mar 28 '23 02:03 thedxt

Great. I'll close this for now.

FWIW the problem seems to be that chown'ing the entire contents of the /etc/nginx folder on some systems caused the issue.

jc21 avatar Mar 28 '23 05:03 jc21

I'm not sure if this is an intented side effect of the github-develop docker tag but it does work and the proxy configs work. However if you login to the management then the user account is the admin@example with the changeme password again.

If you login it shows 0 proxy hosts but there are proxy hosts from the old config.

If I change my docker tag to 2.9.22 then everything goes back to normal

this is on github-develop

image

this is on 2.9.22 image

the only change was the docker tag.

thedxt avatar Mar 28 '23 13:03 thedxt

github-develop does not fix it for me.

❯ Configuring npmuser ...
id: 'npmuser': no such user
❯ Checking paths ...
❯ Setting ownership ...
s6-rc: fatal: timed out
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
s6-sudoc: fatal: unable to get exit status from server: Operation timed out

Update: The only way I could get it working asap was to run the container as root. e.g.:

services:
  app:
    user: root

claytondukes avatar Mar 28 '23 13:03 claytondukes