[GH-ISSUE #1091] Docker Container can't start #901

Closed
opened 2026-02-26 06:34:52 +03:00 by kerem · 3 comments
Owner

Originally created by @d33pjs on GitHub (May 11, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1091

I have trouble with current Docker Images.

sha256:29aa3e4dbb2b1d58fcb69bb4d73745bc20c48ace12e4b9565d359caabbc16dc3 is working as expected:

[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] 01_s6-secret-init.sh: executing... 
[cont-init.d] 01_s6-secret-init.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Disabling IPV6 in hosts
❯ Disabling IPV6 in hosts: /etc/nginx/conf.d
  ❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf
  ❯ /etc/nginx/conf.d/include/block-exploits.conf
  ❯ /etc/nginx/conf.d/include/proxy.conf
  ❯ /etc/nginx/conf.d/include/ip_ranges.conf
  ❯ /etc/nginx/conf.d/include/ssl-ciphers.conf
  ❯ /etc/nginx/conf.d/include/resolvers.conf
  ❯ /etc/nginx/conf.d/include/force-ssl.conf
  ❯ /etc/nginx/conf.d/include/assets.conf
  ❯ /etc/nginx/conf.d/production.conf
  ❯ /etc/nginx/conf.d/default.conf
Disabling IPV6 in hosts
❯ Disabling IPV6 in hosts: /data/nginx
  ❯ /data/nginx/default_host/site.conf
  ❯ /data/nginx/proxy_host/5.conf
  ❯ /data/nginx/proxy_host/3.conf
  ❯ /data/nginx/proxy_host/4.conf
  ❯ /data/nginx/proxy_host/1.conf

sqlite does not support inserting default values. Set the `useNullAsDefault` flag to hide this warning. (see docs http://knexjs.org/#Builder-insert).
[5/11/2021] [1:35:00 PM] [Migrate  ] › ℹ  info      Current database version: none
[5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
[5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
[5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
[5/11/2021] [1:35:01 PM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
[5/11/2021] [1:35:01 PM] [SSL      ] › ℹ  info      Renewing SSL certs close to expiry...
[5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
[5/11/2021] [1:35:01 PM] [Global   ] › ℹ  info      Backend PID 222 listening on port 3000 ... 

But this:
sha256:c9e7873e57504243f42daadf4ae43bd6274a6895f9cf7b5315024acf216a8f6e
and this (both pulled the last cpuple of days with "latest" tag)
sha256:ebe0f248625b27f2fced38dee520f1ead5ded7b954dfa8202306d7e5c9f1a0a0

give the following error on "docker-compose up -d":

[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] 01_s6-secret-init.sh: executing... 
[cont-init.d] 01_s6-secret-init.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run: line 27: awk: command not found
Disabling IPV6 in hosts
❯ Disabling IPV6 in hosts: /etc/nginx/conf.d
  ❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf
  ❯ /etc/nginx/conf.d/include/block-exploits.conf
  ❯ /etc/nginx/conf.d/include/proxy.conf
  ❯ /etc/nginx/conf.d/include/ip_ranges.conf
  ❯ /etc/nginx/conf.d/include/ssl-ciphers.conf
  ❯ /etc/nginx/conf.d/include/resolvers.conf
  ❯ /etc/nginx/conf.d/include/force-ssl.conf
  ❯ /etc/nginx/conf.d/include/assets.conf
  ❯ /etc/nginx/conf.d/production.conf
  ❯ /etc/nginx/conf.d/default.conf
Disabling IPV6 in hosts
❯ Disabling IPV6 in hosts: /data/nginx
  ❯ /data/nginx/default_host/site.conf
  ❯ /data/nginx/proxy_host/5.conf
  ❯ /data/nginx/proxy_host/3.conf
  ❯ /data/nginx/proxy_host/4.conf
  ❯ /data/nginx/proxy_host/1.conf
nginx: error while loading shared libraries: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
sqlite does not support inserting default values. Set the `useNullAsDefault` flag to hide this warning. (see docs http://knexjs.org/#Builder-insert).		
[5/11/2021] [1:33:34 PM] [Migrate  ] › ℹ  info      Current database version: none
./run: line 27: awk: command not found
Disabling IPV6 in hosts
❯ Disabling IPV6 in hosts: /etc/nginx/conf.d
[... loop ...]

I think, there are two errors:
libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
and
./run: line 27: awk: command not found

My docker-compose.yaml:

version: "3"

networks:
  default:
    external:
      name: mynetwork

services:
  nginxprxmgr:
    #image: jc21/nginx-proxy-manager:latest # latest, hub.docker.com/r/jc21/nginx-proxy-manager/tags
    image: jc21/nginx-proxy-manager@sha256:29aa3e4dbb2b1d58fcb69bb4d73745bc20c48ace12e4b9565d359caabbc16dc3 
    container_name: nginxprxmgr
    restart: unless-stopped
    ports:
      # Public HTTP Port:
      - '80:80'
      # Public HTTPS Port:
      - '443:443'
      # Admin Web Port:
      - '81:81'
    environment:
      # Uncomment this if IPv6 is not enabled on your host
      DISABLE_IPV6: 'true'
    volumes:
      # Make sure this config.json file exists as per instructions above:
      - /mnt/data/nginx-proxy-manager/config.json:/app/config/production.json
      - /mnt/data/nginx-proxy-manager/data:/data
      - npmetc:/etc
      #- /mnt/data/nginx-proxy-manager/etc:/etc
      - /mnt/data/nginx-proxy-manager/letsencrypt:/etc/letsencrypt

volumes:
  npmetc:
  • Ubuntu 20.04.2 LTS (5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux)
  • Docker version 20.10.6, build 370c289
  • docker-compose version 1.25.0, build unknown
Originally created by @d33pjs on GitHub (May 11, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1091 I have trouble with current Docker Images. sha256:29aa3e4dbb2b1d58fcb69bb4d73745bc20c48ace12e4b9565d359caabbc16dc3 is working as expected: ``` [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] 01_s6-secret-init.sh: executing... [cont-init.d] 01_s6-secret-init.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. Disabling IPV6 in hosts ❯ Disabling IPV6 in hosts: /etc/nginx/conf.d ❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf ❯ /etc/nginx/conf.d/include/block-exploits.conf ❯ /etc/nginx/conf.d/include/proxy.conf ❯ /etc/nginx/conf.d/include/ip_ranges.conf ❯ /etc/nginx/conf.d/include/ssl-ciphers.conf ❯ /etc/nginx/conf.d/include/resolvers.conf ❯ /etc/nginx/conf.d/include/force-ssl.conf ❯ /etc/nginx/conf.d/include/assets.conf ❯ /etc/nginx/conf.d/production.conf ❯ /etc/nginx/conf.d/default.conf Disabling IPV6 in hosts ❯ Disabling IPV6 in hosts: /data/nginx ❯ /data/nginx/default_host/site.conf ❯ /data/nginx/proxy_host/5.conf ❯ /data/nginx/proxy_host/3.conf ❯ /data/nginx/proxy_host/4.conf ❯ /data/nginx/proxy_host/1.conf sqlite does not support inserting default values. Set the `useNullAsDefault` flag to hide this warning. (see docs http://knexjs.org/#Builder-insert). [5/11/2021] [1:35:00 PM] [Migrate ] › ℹ info Current database version: none [5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ info Fetching IP Ranges from online services... [5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ info Fetching https://ip-ranges.amazonaws.com/ip-ranges.json [5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v4 [5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v6 [5/11/2021] [1:35:01 PM] [SSL ] › ℹ info Let's Encrypt Renewal Timer initialized [5/11/2021] [1:35:01 PM] [SSL ] › ℹ info Renewing SSL certs close to expiry... [5/11/2021] [1:35:01 PM] [IP Ranges] › ℹ info IP Ranges Renewal Timer initialized [5/11/2021] [1:35:01 PM] [Global ] › ℹ info Backend PID 222 listening on port 3000 ... ``` But this: sha256:c9e7873e57504243f42daadf4ae43bd6274a6895f9cf7b5315024acf216a8f6e and this (both pulled the last cpuple of days with "latest" tag) sha256:ebe0f248625b27f2fced38dee520f1ead5ded7b954dfa8202306d7e5c9f1a0a0 give the following error on "docker-compose up -d": ``` [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] 01_s6-secret-init.sh: executing... [cont-init.d] 01_s6-secret-init.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. ./run: line 27: awk: command not found Disabling IPV6 in hosts ❯ Disabling IPV6 in hosts: /etc/nginx/conf.d ❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf ❯ /etc/nginx/conf.d/include/block-exploits.conf ❯ /etc/nginx/conf.d/include/proxy.conf ❯ /etc/nginx/conf.d/include/ip_ranges.conf ❯ /etc/nginx/conf.d/include/ssl-ciphers.conf ❯ /etc/nginx/conf.d/include/resolvers.conf ❯ /etc/nginx/conf.d/include/force-ssl.conf ❯ /etc/nginx/conf.d/include/assets.conf ❯ /etc/nginx/conf.d/production.conf ❯ /etc/nginx/conf.d/default.conf Disabling IPV6 in hosts ❯ Disabling IPV6 in hosts: /data/nginx ❯ /data/nginx/default_host/site.conf ❯ /data/nginx/proxy_host/5.conf ❯ /data/nginx/proxy_host/3.conf ❯ /data/nginx/proxy_host/4.conf ❯ /data/nginx/proxy_host/1.conf nginx: error while loading shared libraries: libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory sqlite does not support inserting default values. Set the `useNullAsDefault` flag to hide this warning. (see docs http://knexjs.org/#Builder-insert). [5/11/2021] [1:33:34 PM] [Migrate ] › ℹ info Current database version: none ./run: line 27: awk: command not found Disabling IPV6 in hosts ❯ Disabling IPV6 in hosts: /etc/nginx/conf.d [... loop ...] ``` I think, there are two errors: `libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory` and `./run: line 27: awk: command not found` My docker-compose.yaml: ``` version: "3" networks: default: external: name: mynetwork services: nginxprxmgr: #image: jc21/nginx-proxy-manager:latest # latest, hub.docker.com/r/jc21/nginx-proxy-manager/tags image: jc21/nginx-proxy-manager@sha256:29aa3e4dbb2b1d58fcb69bb4d73745bc20c48ace12e4b9565d359caabbc16dc3 container_name: nginxprxmgr restart: unless-stopped ports: # Public HTTP Port: - '80:80' # Public HTTPS Port: - '443:443' # Admin Web Port: - '81:81' environment: # Uncomment this if IPv6 is not enabled on your host DISABLE_IPV6: 'true' volumes: # Make sure this config.json file exists as per instructions above: - /mnt/data/nginx-proxy-manager/config.json:/app/config/production.json - /mnt/data/nginx-proxy-manager/data:/data - npmetc:/etc #- /mnt/data/nginx-proxy-manager/etc:/etc - /mnt/data/nginx-proxy-manager/letsencrypt:/etc/letsencrypt volumes: npmetc: ``` - Ubuntu 20.04.2 LTS (5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux) - Docker version 20.10.6, build 370c289 - docker-compose version 1.25.0, build unknown
kerem 2026-02-26 06:34:52 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@idolpx commented on GitHub (May 26, 2021):

Try this to resolve the first issue. Login to the shell of the container.
sudo docker exec -it nginxprxmgr bash

Then install "musl-dev".
apt-get install musl-dev

Then create a link to it.
ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1

Then exit and restart the container.

<!-- gh-comment-id:848595252 --> @idolpx commented on GitHub (May 26, 2021): Try this to resolve the first issue. Login to the shell of the container. `sudo docker exec -it nginxprxmgr bash` Then install "musl-dev". `apt-get install musl-dev` Then create a link to it. `ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1` Then exit and restart the container.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 11, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1987487991 --> @github-actions[bot] commented on GitHub (Mar 11, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 24, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2825985323 --> @github-actions[bot] commented on GitHub (Apr 24, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#901
No description provided.