jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

Container fails to start after boot #170

Open dsrtusr88 opened 1 year ago

dsrtusr88 commented 1 year ago

`[init ] container is starting...

[cont-env ] loading container environment variables...

[cont-env ] APP_NAME: executing...

[cont-env ] APP_NAME: /etc/cont-env.d/APP_NAME: line 1: Firefox: not found

[cont-env ] APP_NAME: terminated successfully.

[cont-env ] APP_NAME: loading...

[cont-env ] APP_VERSION: executing...

[cont-env ] APP_VERSION: /etc/cont-env.d/APP_VERSION: line 1: 109.0.1-r0: not found

[cont-env ] APP_VERSION: terminated successfully.

[cont-env ] APP_VERSION: loading...

[cont-env ] DISPLAY: executing...

[cont-env ] DISPLAY: terminated successfully.

[cont-env ] DISPLAY: loading...

[cont-env ] DOCKER_IMAGE_PLATFORM: executing...

[cont-env ] DOCKER_IMAGE_PLATFORM: /etc/cont-env.d/DOCKER_IMAGE_PLATFORM: line 1: linux/amd64: not found

[cont-env ] DOCKER_IMAGE_PLATFORM: terminated successfully.

[cont-env ] DOCKER_IMAGE_PLATFORM: loading...

[cont-env ] DOCKER_IMAGE_VERSION: executing...

[cont-env ] DOCKER_IMAGE_VERSION: /etc/cont-env.d/DOCKER_IMAGE_VERSION: line 1: 23.03.1: not found

[cont-env ] DOCKER_IMAGE_VERSION: terminated successfully.

[cont-env ] DOCKER_IMAGE_VERSION: 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: executing...

[cont-env ] HOME: terminated successfully.

[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: executing...

[cont-env ] TAKE_CONFIG_OWNERSHIP: /etc/cont-env.d/TAKE_CONFIG_OWNERSHIP: line 1: 1: not found

[cont-env ] TAKE_CONFIG_OWNERSHIP: terminated successfully.

[cont-env ] TAKE_CONFIG_OWNERSHIP: loading...

[cont-env ] XDG_CACHE_HOME: executing...

[cont-env ] XDG_CACHE_HOME: /etc/cont-env.d/XDG_CACHE_HOME: line 1: /config/xdg/cache: Permission denied

[cont-env ] XDG_CACHE_HOME: terminated successfully.

[cont-env ] XDG_CACHE_HOME: loading...

[cont-env ] XDG_CONFIG_HOME: executing...

[cont-env ] XDG_CONFIG_HOME: /etc/cont-env.d/XDG_CONFIG_HOME: line 1: /config/xdg/config: Permission denied

[cont-env ] XDG_CONFIG_HOME: terminated successfully.

[cont-env ] XDG_CONFIG_HOME: loading...

[cont-env ] XDG_DATA_HOME: executing...

[cont-env ] XDG_DATA_HOME: /etc/cont-env.d/XDG_DATA_HOME: line 1: /config/xdg/data: Permission denied

[cont-env ] XDG_DATA_HOME: terminated successfully.

[cont-env ] XDG_DATA_HOME: loading...

[cont-env ] XDG_RUNTIME_DIR: executing...

[cont-env ] XDG_RUNTIME_DIR: /etc/cont-env.d/XDG_RUNTIME_DIR: line 1: /tmp/run/user/app: not found

[cont-env ] XDG_RUNTIME_DIR: terminated successfully.

[cont-env ] XDG_RUNTIME_DIR: loading...

[cont-env ] XDG_STATE_HOME: executing...

[cont-env ] XDG_STATE_HOME: /etc/cont-env.d/XDG_STATE_HOME: line 1: /config/xdg/state: Permission denied

[cont-env ] XDG_STATE_HOME: terminated successfully.

[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: mkdir: can't create directory '': No such file or directory

[cont-init ] 10-xdg-runtime-dir.sh: terminated with error 1.`

jlesage commented 1 year ago

On what device are you running the container ? Looks like files in the image don't have the correct permission (they are all executables).

dsrtusr88 commented 1 year ago

@jlesage qnap device, linux system. nothing has changed with the volume location where the config is?

jlesage commented 1 year ago

The issue doesn't seem to be with the config volume, but with the image itself. Do you see the same behaviour if you run:

docker run --rm jlesage/firefox
dsrtusr88 commented 1 year ago

[~] # docker run --rm jlesage/firefox [init ] container is starting... [cont-env ] loading container environment variables... [cont-env ] APP_NAME: executing... [cont-env ] APP_NAME: /etc/cont-env.d/APP_NAME: line 1: Firefox: not found [cont-env ] APP_NAME: terminated successfully. [cont-env ] APP_NAME: loading... [cont-env ] APP_VERSION: executing... [cont-env ] APP_VERSION: /etc/cont-env.d/APP_VERSION: line 1: 109.0.1-r0: not found [cont-env ] APP_VERSION: terminated successfully. [cont-env ] APP_VERSION: loading... [cont-env ] DISPLAY: executing... [cont-env ] DISPLAY: terminated successfully. [cont-env ] DISPLAY: loading... [cont-env ] DOCKER_IMAGE_PLATFORM: executing... [cont-env ] DOCKER_IMAGE_PLATFORM: /etc/cont-env.d/DOCKER_IMAGE_PLATFORM: line 1: linux/amd64: not found [cont-env ] DOCKER_IMAGE_PLATFORM: terminated successfully. [cont-env ] DOCKER_IMAGE_PLATFORM: loading... [cont-env ] DOCKER_IMAGE_VERSION: executing... [cont-env ] DOCKER_IMAGE_VERSION: /etc/cont-env.d/DOCKER_IMAGE_VERSION: line 1: 23.03.1: not found [cont-env ] DOCKER_IMAGE_VERSION: terminated successfully. [cont-env ] DOCKER_IMAGE_VERSION: 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: executing... [cont-env ] HOME: terminated successfully. [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: executing... [cont-env ] TAKE_CONFIG_OWNERSHIP: /etc/cont-env.d/TAKE_CONFIG_OWNERSHIP: line 1: 1: not found [cont-env ] TAKE_CONFIG_OWNERSHIP: terminated successfully. [cont-env ] TAKE_CONFIG_OWNERSHIP: loading... [cont-env ] XDG_CACHE_HOME: executing... [cont-env ] XDG_CACHE_HOME: /etc/cont-env.d/XDG_CACHE_HOME: line 1: /config/xdg/cache: not found [cont-env ] XDG_CACHE_HOME: terminated successfully. [cont-env ] XDG_CACHE_HOME: loading... [cont-env ] XDG_CONFIG_HOME: executing... [cont-env ] XDG_CONFIG_HOME: /etc/cont-env.d/XDG_CONFIG_HOME: line 1: /config/xdg/config: not found [cont-env ] XDG_CONFIG_HOME: terminated successfully. [cont-env ] XDG_CONFIG_HOME: loading... [cont-env ] XDG_DATA_HOME: executing... [cont-env ] XDG_DATA_HOME: /etc/cont-env.d/XDG_DATA_HOME: line 1: /config/xdg/data: not found [cont-env ] XDG_DATA_HOME: terminated successfully. [cont-env ] XDG_DATA_HOME: loading... [cont-env ] XDG_RUNTIME_DIR: executing... [cont-env ] XDG_RUNTIME_DIR: /etc/cont-env.d/XDG_RUNTIME_DIR: line 1: /tmp/run/user/app: not found [cont-env ] XDG_RUNTIME_DIR: terminated successfully. [cont-env ] XDG_RUNTIME_DIR: loading... [cont-env ] XDG_STATE_HOME: executing... [cont-env ] XDG_STATE_HOME: /etc/cont-env.d/XDG_STATE_HOME: line 1: /config/xdg/state: not found [cont-env ] XDG_STATE_HOME: terminated successfully. [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: mkdir: can't create directory '': No such file or directory [cont-init ] 10-xdg-runtime-dir.sh: terminated with error 1.

jlesage commented 1 year ago

How the issue started ? Only after a reboot of the device ? After an update of the container image ?

dsrtusr88 commented 1 year ago

just on a reboot of the container itself. removed the image and rebuilt, same result.

jlesage commented 1 year ago

Can you share the output of:

docker run --rm jlesage/firefox ls -l /etc/cont-env.d
dsrtusr88 commented 1 year ago

@jlesage [~] # docker run --rm jlesage/firefox ls -l /etc/cont-env.d total 56 -rw-r--r-- 1 root root 7 Mar 5 13:18 APP_NAME -rw-r--r-- 1 root root 10 Mar 5 13:18 APP_VERSION -rwxrwxrwx 1 root root 757 Mar 4 00:12 DISPLAY -rwxrwxrwx 1 root root 11 Mar 3 22:43 DOCKER_IMAGE_PLATFORM -rw-r--r-- 1 root root 7 Mar 5 13:18 DOCKER_IMAGE_VERSION -rwxrwxrwx 1 root root 357 Mar 4 00:12 GTK2_RC_FILES -rwxrwxrwx 1 root root 328 Mar 4 00:12 GTK_THEME -rwxrwxrwx 1 root root 0 Mar 3 22:41 HOME -rwxrwxrwx 1 root root 328 Mar 4 00:12 QT_STYLE_OVERRIDE -rwxrwxrwx 1 root root 2 Mar 3 22:41 TAKE_CONFIG_OWNERSHIP -rwxrwxrwx 1 root root 18 Mar 3 22:41 XDG_CACHE_HOME -rwxrwxrwx 1 root root 19 Mar 3 22:41 XDG_CONFIG_HOME -rwxrwxrwx 1 root root 17 Mar 3 22:41 XDG_DATA_HOME -rwxrwxrwx 1 root root 18 Mar 3 22:41 XDG_RUNTIME_DIR -rwxrwxrwx 1 root root 18 Mar 3 22:41 XDG_STATE_HOME

jlesage commented 1 year ago

And:

docker run --rm jlesage/firefox sh -c "[ -x /etc/cont-env.d/APP_NAME ] && echo true || echo false"
dsrtusr88 commented 1 year ago

@jlesage false

jlesage commented 1 year ago

And this:

docker run --rm jlesage/firefox sh -c "umask 022 && [ -x /etc/cont-env.d/APP_NAME ] && echo true || echo false"
dsrtusr88 commented 1 year ago

@jlesage false