jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

nginix won't start after upgrade #101

Closed Ranbato closed 1 year ago

Ranbato commented 1 year ago

I am stumped so putting this out there. I'm trying to upgrade from jlesage/baseimage-gui:alpine-3.16-v4 to jlesage/baseimage-gui:alpine-3.17-v4

My test image comes up when I use docker run, but not docker-compose. I get the following error [nginx ] execve(/etc/services.d/nginx/run): Permission denied when it tries to start xvnc.

The changes are https://github.com/borgbase/vorta-docker/pull/16/files

Docker run docker run --rm -p 5811:5800 -p 5911:5900 -v /volume1/config/vorta:/config -v /volumeUSB1/:/destination -v /volume1:/data:ro -v /dev/fuse:/dev/fuse docker-vorta Compose

  vorta:
    #image: ghcr.io/borgbase/vorta-docker:local
    image: localhost:5000/vorta-docker:latest 
    container_name: vorta
    hostname: storage-vorta
    volumes:
      - /volume1/config/vorta:/config
      - /volume1:/data:ro
      - /volumeUSB1/:/destination
    ports:
      - 5811:5800
    # restart: unless-stopped

The full logs, I've also got some debugging info in them where I did some ls-al and tried a chmod on the run script

[init        ] container is starting...
[cont-env    ] loading container environment variables...
[cont-env    ] APP_NAME: loading...
[cont-env    ] DISPLAY: executing...
[cont-env    ] DISPLAY: terminated successfully.
[cont-env    ] DISPLAY: loading...
[cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
[cont-env    ] GTK2_RC_FILES: executing...
[cont-env    ] GTK2_RC_FILES: terminated successfully.
[cont-env    ] GTK2_RC_FILES: loading...
[cont-env    ] GTK_THEME: executing...
[cont-env    ] GTK_THEME: terminated successfully.
[cont-env    ] GTK_THEME: loading...
[cont-env    ] HOME: loading...
[cont-env    ] QT_STYLE_OVERRIDE: executing...
[cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
[cont-env    ] QT_STYLE_OVERRIDE: loading...
[cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
[cont-env    ] XDG_CACHE_HOME: loading...
[cont-env    ] XDG_CONFIG_HOME: loading...
[cont-env    ] XDG_DATA_HOME: loading...
[cont-env    ] XDG_RUNTIME_DIR: loading...
[cont-env    ] XDG_STATE_HOME: loading...
[cont-env    ] container environment variables initialized.
[cont-secrets] loading container secrets...
[cont-secrets] container secrets loaded.
[cont-init   ] executing container initialization scripts...
[cont-init   ] 10-certs.sh: executing...
[cont-init   ] 10-certs.sh: terminated successfully.
[cont-init   ] 10-check-app-niceness.sh: executing...
[cont-init   ] 10-check-app-niceness.sh: terminated successfully.
[cont-init   ] 10-cjk-font.sh: executing...
[cont-init   ] 10-cjk-font.sh: terminated successfully.
[cont-init   ] 10-clean-logmonitor-states.sh: executing...
[cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
[cont-init   ] 10-clean-tmp-dir.sh: executing...
[cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
[cont-init   ] 10-fontconfig-cache-dir.sh: executing...
[cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
[cont-init   ] 10-init-users.sh: executing...
[cont-init   ] 10-init-users.sh: terminated successfully.
[cont-init   ] 10-nginx.sh: executing...
[cont-init   ] 10-nginx.sh: terminated successfully.
[cont-init   ] 10-openbox.sh: executing...
[cont-init   ] 10-openbox.sh: terminated successfully.
[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
[cont-init   ] 10-vnc-password.sh: executing...
[cont-init   ] 10-vnc-password.sh: terminated successfully.
[cont-init   ] 10-web-data.sh: executing...
[cont-init   ] 10-web-data.sh: terminated successfully.
[cont-init   ] 10-x11-unix.sh: executing...
[cont-init   ] 10-x11-unix.sh: terminated successfully.
[cont-init   ] 10-xdg-runtime-dir.sh: executing...
[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
[cont-init   ] 15-install-pkgs.sh: executing...
[cont-init   ] 15-install-pkgs.sh: terminated successfully.
[cont-init   ] 50-init.sh: executing...
[cont-init   ] 50-init.sh: total 128
[cont-init   ] 50-init.sh: drwx------    1 root     root           920 Apr 19 07:37 .
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           222 Apr 19 07:37 ..
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             7 Feb 10 09:44 alpine-release
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            12 Apr 19 07:29 alsa
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            84 Apr 19 07:33 apk
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Feb 10 09:45 conf.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           342 Apr 16 09:56 cont-env.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Mar  3 15:43 cont-finish.d
[cont-init   ] 50-init.sh: drwx------    1 root     root           636 Apr 18 16:10 cont-init.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            10 Apr 16 09:56 cont-logrotate.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             8 Feb 10 09:45 crontabs
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            97 Jun 27  2022 environment
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            52 Apr 19 07:28 fonts
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            89 Nov  4 08:43 fstab
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           216 Sep  9  2022 fuse.conf
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            41 Apr 19 07:37 group
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            36 Apr 19 07:28 gtk-3.0
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            14 Apr 19 07:37 hostname
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           175 Apr 19 07:37 hosts
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Feb 10 09:45 init.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           570 Nov  4 08:43 inittab
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root          1748 Sep 27  2022 inputrc
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            54 Feb 10 09:44 issue
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            20 Nov  9 08:46 login.defs
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            18 Apr 16 09:56 logmonitor
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            22 Apr 19 07:29 logrotate.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            86 Feb 10 09:45 modprobe.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            15 Nov  4 08:43 modules
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Feb 10 09:45 modules-load.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           284 Nov  4 08:43 motd
[cont-init   ] 50-init.sh: lrwxrwxrwx    1 root     root            12 Apr 19 07:36 mtab -> /proc/mounts
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           132 Feb 10 09:45 network
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           205 Nov  4 08:43 nsswitch.conf
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Feb 10 09:45 opt
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           188 Feb 10 09:44 os-release
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           360 Mar  3 15:43 pam.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            68 Apr 19 07:37 passwd
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            70 Apr 19 07:37 passwd-
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            58 Feb 10 09:45 periodic
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            38 Apr 19 07:28 pkcs11
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           846 Nov  4 08:43 profile
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            78 Feb 10 09:45 profile.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root          3144 Nov  4 08:43 protocols
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            38 Apr 19 07:37 resolv.conf
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root           184 Oct 22 01:19 rsyncd.conf
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            12 Feb 10 09:44 secfixes.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            98 Nov 19 03:13 securetty
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           226 Mar  3 15:43 security
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root         12813 Nov  4 08:43 services
[cont-init   ] 50-init.sh: drwx------    1 root     root           138 Apr 18 16:10 services.d
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     shadow          29 Apr 19 07:37 shadow
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            38 Nov  4 08:43 shells
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            32 Apr 19 07:28 ssh
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           172 Apr 19 07:28 ssl
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            26 Feb 10 09:45 ssl1.1
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            53 Nov  4 08:43 sysctl.conf
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root             0 Feb 10 09:45 sysctl.d
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            22 Apr 19 07:28 terminfo
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root          5636 Nov 19 03:13 udhcpd.conf
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            54 Apr 19 07:28 xdg
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            14 Apr 19 07:33 xml
[cont-init   ] 50-init.sh: total 4
[cont-init   ] 50-init.sh: drwx------    1 root     root           138 Apr 18 16:10 .
[cont-init   ] 50-init.sh: drwx------    1 root     root           920 Apr 19 07:37 ..
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root           110 Apr 16 09:56 app
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            38 Apr 16 09:56 certsmonitor
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            68 Mar  3 15:41 default
[cont-init   ] 50-init.sh: -rwxr-xr-x    1 root     root          2354 Mar  3 15:41 exit
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            88 Apr 16 09:56 gui
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            48 Mar  3 15:41 logmonitor
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            50 Mar  3 15:41 logrotate
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            96 Apr 16 09:56 nginx
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            64 Apr 16 09:56 openbox
[cont-init   ] 50-init.sh: drwx------    1 root     root            14 Apr 18 16:10 vorta
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            48 Apr 16 09:56 xvnc
[cont-init   ] 50-init.sh: total 12
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            96 Apr 16 09:56 .
[cont-init   ] 50-init.sh: drwx------    1 root     root           138 Apr 18 16:10 ..
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 certsmonitor.dep
[cont-init   ] 50-init.sh: -rwxr-xr-x    1 root     root           237 Apr 16 09:56 is_ready
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            49 Apr 16 09:56 params
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 respawn
[cont-init   ] 50-init.sh: -rwxr-xr-x    1 root     root           502 Apr 16 09:56 run
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 xvnc.dep
[cont-init   ] 50-init.sh: total 12
[cont-init   ] 50-init.sh: drwxr-xr-x    1 root     root            96 Apr 16 09:56 .
[cont-init   ] 50-init.sh: drwx------    1 root     root           138 Apr 18 16:10 ..
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 certsmonitor.dep
[cont-init   ] 50-init.sh: -rwxr-xr-x    1 root     root           237 Apr 16 09:56 is_ready
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root            49 Apr 16 09:56 params
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 respawn
[cont-init   ] 50-init.sh: -rwxrwxrwx    1 root     root           502 Apr 16 09:56 run
[cont-init   ] 50-init.sh: -rw-r--r--    1 root     root             0 Apr 16 09:56 xvnc.dep
[cont-init   ] 50-init.sh: terminated successfully.
[cont-init   ] 85-take-config-ownership.sh: executing...
[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
[cont-init   ] 89-info.sh: executing...
    ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           vorta                                         │
    │ Application Version:   n/a                                           │
    │ Docker Image Version:  n/a                                           │
    │ Docker Image Platform: linux/amd64                                   │
    │                                                                      │
    ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
[cont-init   ] 89-info.sh: terminated successfully.
[cont-init   ] all container initialization scripts executed.
[init        ] giving control to process supervisor.
[supervisor  ] loading services...
[supervisor  ] loading service 'default'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] service 'certsmonitor' is disabled.
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'openbox'...
[supervisor  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'logrotate'...
[supervisor  ] all services loaded.
[supervisor  ] starting services...
[supervisor  ] starting service 'xvnc'...
[xvnc        ] Xvnc TigerVNC 1.13.1 - built Apr 16 2023 16:56:42
[xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc        ] Underlying X server release 12013000
[xvnc        ] Wed Apr 19 07:37:12 2023
[xvnc        ]  vncext:      VNC extension running!
[xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
[xvnc        ]  vncext:      created VNC server for screen 0
[supervisor  ] starting service 'nginx'...
[nginx       ] execve(/etc/services.d/nginx/run): Permission denied
[supervisor  ] service 'nginx' failed to be started: not ready after 5000 msec, giving up.
[supervisor  ] stopping service 'nginx'...
[supervisor  ] service 'nginx' exited (with status 126).
Ranbato commented 1 year ago

Even odder, a rebuild of the old container exhibits the same issue so it has to be an updated dependency breaking nginix. I'm going to try a non-alpine image and see what happens.

jlesage commented 1 year ago

Do you see the same behaviour when running the container without any parameter:

docker run --rm docker-vorta
jlesage commented 1 year ago

Also, it looks like the /etc/services.d directory doesn't have correct permissions:

[cont-init   ] 50-init.sh: drwx------    1 root     root           138 Apr 18 16:10 ..
Ranbato commented 1 year ago

image That was it. Don't understand why it changed but I've corrected it. Thanks!