It is not possible to update to version 23.03.1
Until a while ago I have had a docker running correctly on Qnap, but when upgrading to the latest version, 23.03.1, I get an error.
Log:
[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.
[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: 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: 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 ] INSTALL_PACKAGES_INTERNAL: executing...
[cont-env ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
[cont-env ] INSTALL_PACKAGES_INTERNAL: 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: 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: 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.
My docker composer is the following.
jdownloader:
<<: *common-keys-apps # See EXTENSION FIELDS at the top
<<: *med-limits
image: jlesage/jdownloader-2:latest
container_name: jdownloader
ports:
- "$JDOWNLOADER_PORT:5800"
volumes:
- /share/Downloads:/output:rw
- $DOCKERDIR/appdata/jDownloader:/config:rw
environment:
<<: *default-tz-puid-pgid
UMASK: 002
DARK_MODE: 0
KEEP_APP_RUNNING: 1
CLEAN_TMP_DIR: 1
DISPLAY_WIDTH: 1600
DISPLAY_HEIGHT: 960
# USER_ID: $PUID
# GROUP_ID: $PGIDS
VNC_PASSWORD: $JDOWN_VNC_PASSWD
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.jdownloader-rtr.entrypoints=https"
- "traefik.http.routers.jdownloader-rtr.rule=Host(`sub.$DOMAINNAME`)"
## Middlewares
- "traefik.http.routers.jdownloader-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.jdownloader-rtr.service=jdownloader-svc"
- "traefik.http.services.jdownloader-svc.loadbalancer.server.port=5800"
I have commented out the lines, which I have added to see if it was for those permissions, since my GROUP_ID is 100, not 1000 as it comes by default, and in the version that works they are not necessary, version v23.02.2 works correctly. # USER_ID: $PUID # GROUP_ID: $PGIDS
I have tried to change the docker composer by installing the version directly, and it doesn't work either.
Something changed permission of files from the image stored on your Qnap. This can be fixed by removing the container along with the image and then re-creating the container.
Thank you very much for the answer.
Well I have already tried deleting all the container, all the containers, images, volumes... all the directories... and doing a clean install... and it only works if I install version v23.02.2.
In fact, sometimes when I unintentionally update it, I run the following list of commands to get it working again.
docker stop jdownloader && docker rm jdownloader && docker images | grep jlesage/jdownloader-2 | awk '{print $3}' | xargs docker rmi -f && docker container prune -f && docker image prune -f && docker volume prune -f && docker-compose up -d jdownloader
In the docker-compose.yml I use the version "jlesage/jdownloader-2:v23.02.2".
Note that docker rmi jlesage/jdownloader-2 is not enough. The problem affects the baseimage, thus its layers might might be shared with another image (not necessarily the JDownloader one) and won't be removed.
Did you try to use the latest version ? It uses a different baseimage version.
Yes, just now I just tried it and it's still the same, no matter how hard I try I have to go back to version 23.02.2 if I want it to work.