gbbirkisson / spis

Simple private image server 🖼️
GNU General Public License v3.0
128 stars 8 forks source link

user "nginx" missing in docker image #183

Closed driftbeater closed 5 months ago

driftbeater commented 7 months ago

Hi,

I tried to run the docker image. nginx cannot start since the user nginx is not existing. Do i do anything wrong here?

Any help would be appreciated.

i@raspberrypi:/srv/dev-disk-by-label-nas1/spis_working_dir $ sudo docker run -it -p 8080:8080 -v /srv/dev-disk-by-label-nas1/nasfs/Bilder:/var/lib/spis/media -v /srv/dev-disk-by-label-nas1/spis_working_dir:/var/lib/spis/data ghcr.io/gbbirkisson/spis
2024-03-03 17:35:45,941 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-03-03 17:35:45,950 INFO supervisord started with pid 1
2024-03-03 17:35:46,960 INFO spawned: 'nginx' with pid 7
2024-03-03 17:35:46,972 INFO spawned: 'spis' with pid 8
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/15-local-resolvers.envsh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/20-envsubst-on-templates.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/30-tune-worker-processes.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/40-user-fix.sh, not executable
/docker-entrypoint.sh: Configuration complete; ready for start up
2024-03-03T17:35:47.044662Z  INFO spis_server: Starting spis version 0.6.0
2024-03-03T17:35:47.047675Z  INFO spis_server: Media dir: "/var/lib/spis/media"
2024-03-03T17:35:47.048439Z  INFO spis_server: Thumb dir: "/var/lib/spis/data/thumbnails"
2024-03-03T17:35:47.048679Z  INFO spis_server: Data file: "/var/lib/spis/data/spis.db"
2024-03-03T17:35:47.048736Z  INFO spis_server: Setting up DB
2024-03-03T17:35:47.056933Z  INFO spis_server: Setting up media processing
2024/03/03 17:35:47 [emerg] 7#7: getpwnam("nginx") failed in /etc/nginx/nginx.conf:2
2024-03-03T17:35:47.059612Z  INFO spis_server: Setting up file watcher
2024-03-03 17:35:47,063 WARN exited: nginx (exit status 1; not expected)
2024-03-03T17:35:47.669139Z  INFO spis_server: Setting up file walker
2024-03-03T17:35:47.669340Z  INFO spis_server::pipeline: Starting db processing component
2024-03-03T17:35:47.670339Z  INFO spis_server: Start listening on socket /var/run/spis.sock
2024-03-03T17:35:47.670633Z  INFO spis_server::pipeline: Added processing schedule: 0 0 2 * * *
2024-03-03 17:35:48,680 INFO spawned: 'nginx' with pid 30
2024-03-03 17:35:48,683 INFO success: spis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/15-local-resolvers.envsh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/20-envsubst-on-templates.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/30-tune-worker-processes.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/40-user-fix.sh, not executable
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/03/03 17:35:48 [emerg] 30#30: getpwnam("nginx") failed in /etc/nginx/nginx.conf:2
2024-03-03 17:35:48,772 WARN exited: nginx (exit status 1; not expected)
2024-03-03 17:35:50,783 INFO spawned: 'nginx' with pid 36
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/15-local-resolvers.envsh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/20-envsubst-on-templates.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/30-tune-worker-processes.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/40-user-fix.sh, not executable
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/03/03 17:35:50 [emerg] 36#36: getpwnam("nginx") failed in /etc/nginx/nginx.conf:2
2024-03-03 17:35:50,865 WARN exited: nginx (exit status 1; not expected)
2024-03-03 17:35:53,878 INFO spawned: 'nginx' with pid 42
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/15-local-resolvers.envsh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/20-envsubst-on-templates.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/30-tune-worker-processes.sh, not executable
/docker-entrypoint.sh: Ignoring /docker-entrypoint.d/40-user-fix.sh, not executable
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/03/03 17:35:53 [emerg] 42#42: getpwnam("nginx") failed in /etc/nginx/nginx.conf:2
2024-03-03 17:35:53,957 WARN exited: nginx (exit status 1; not expected)
2024-03-03 17:35:54,960 INFO gave up: nginx entered FATAL state, too many start retries too quickly
^C2024-03-03 17:36:12,987 WARN received SIGINT indicating exit request
2024-03-03 17:36:12,988 INFO waiting for spis to die
2024-03-03T17:36:13.296632Z  WARN spis_server::pipeline: file_channel was closed
2024-03-03 17:36:14,063 INFO stopped: spis (exit status 0)
github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.