jlesage / docker-jdownloader-2

Docker container for JDownloader 2
MIT License
817 stars 71 forks source link

Boot fail: could not load 'app.dep': command failed (126) #130

Open sadmam opened 1 year ago

sadmam commented 1 year ago

Hello there,

I'm trying to use you container on a asustor AS3102T v2, i'm able to run other containers fine, also i have tried to run on a ubuntu VM and it did work fine... but every time i try to run it on the NAS it fails to start... I don't have a lot to go on.

Can you guys help out? bellow the log:

[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 ] DOCKER_IMAGE_VERSION: loading... [cont-env ] GTK_THEME: executing... [cont-env ] GTK_THEME: terminated successfully. [cont-env ] GTK_THEME: loading... [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: 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 ] 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-jwm.sh: executing... [cont-init ] 10-jwm.sh: terminated successfully. [cont-init ] 10-nginx.sh: executing... [cont-init ] 10-nginx.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 ] 55-jdownloader2.sh: executing... [cont-init ] 55-jdownloader2.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: JDownloader 2 │ │ Application Version: n/a │ │ Docker Image Version: 22.12.1 │ │ 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 ] could not load 'app.dep': command failed (126) [finish ] executing container finish scripts... [finish ] all container finish scripts executed.

I have tried different versions... the error is always the same... I have also changed the debug to 1, the info is the same... am I missing something?

jlesage commented 1 year ago

How did you created the container, or what are the container settings ?

sadmam commented 1 year ago

I used: docker run -d --name=jdownloader2 \ -p 3129:3129 \ -p 5800:5800 \ -p 5900:5900 \ -e TZ=Europe/Lisbon \ -v /volume1/Docker/jdownload2/config:/config:rw \ -v /volume1/Docker/jdownload2/output:/output:rw \ --restart always \ jlesage/jdownloader-2

jlesage commented 1 year ago

Looks like the content of the container is wrong. app.dep is a file from the Docker image that doesn't have execute permission. In you case, the file seems that have it...

Did you try the delete the container and image and re-create them ?

sadmam commented 1 year ago

Yap... i tried also a couple of params from the documentation... changed some values but the result is the same... as i said on an ubuntu VM it woked "out of the box"...

jlesage commented 1 year ago

How do you create the container on the Asustor ?

sadmam commented 1 year ago

It has docker running on it... so i just use the cmd I posted above... I have other containers running fine on the Asustor... to do a GUI management I use portainer... thats it

jlesage commented 1 year ago

Ok, could you provide the output of:

docker inspect <container name>
sadmam commented 1 year ago

[ { "Id": "c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820", "Created": "2023-01-06T21:54:09.230849537Z", "Path": "/init", "Args": [], "State": { "Status": "restarting", "Running": true, "Paused": false, "Restarting": true, "OOMKilled": false, "Dead": false, "Pid": 0, "ExitCode": 1, "Error": "", "StartedAt": "2023-01-06T21:54:42.438177425Z", "FinishedAt": "2023-01-06T21:54:43.180534637Z" }, "Image": "sha256:717805b0e624b5e8db46749770984db77e52f175a34903f387f6fed3915f55f0", "ResolvConfPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820/resolv.conf", "HostnamePath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820/hostname", "HostsPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820/hosts", "LogPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820/c44d03cdef95203563e9a6a348e0367bfc99bb4b678f2defd9f5697dcdd22820-json.log", "Name": "/jdownloader2", "RestartCount": 5, "Driver": "btrfs", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "/volume1/Docker/jdownload2/config:/config:rw", "/volume1/Docker/jdownload2/output:/output:rw" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "default", "PortBindings": { "3129/tcp": [ { "HostIp": "", "HostPort": "3129" } ], "5800/tcp": [ { "HostIp": "", "HostPort": "5800" } ], "5900/tcp": [ { "HostIp": "", "HostPort": "5900" } ] }, "RestartPolicy": { "Name": "always", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "CgroupnsMode": "host", "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": [], "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": [], "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": null, "Name": "btrfs" }, "Mounts": [ { "Type": "bind", "Source": "/volume1/Docker/jdownload2/config", "Destination": "/config", "Mode": "rw", "RW": true, "Propagation": "rprivate" }, { "Type": "bind", "Source": "/volume1/Docker/jdownload2/output", "Destination": "/output", "Mode": "rw", "RW": true, "Propagation": "rprivate" } ], "Config": { "Hostname": "c44d03cdef95", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "3129/tcp": {}, "5800/tcp": {}, "5900/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PUID=1000", "PGID=100", "GROUP_ID=100", "TZ=Europe/Lisbon", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/base/sbin:/opt/base/bin", "ENV=/root/.docker_rc", "USER_ID=1000", "SUP_GROUP_IDS=", "UMASK=0022", "LANG=en_US.UTF-8", "KEEP_APP_RUNNING=0", "APP_NICENESS=0", "INSTALL_PACKAGES=", "CONTAINER_DEBUG=0", "DISPLAY_WIDTH=1920", "DISPLAY_HEIGHT=1080", "DARK_MODE=0", "SECURE_CONNECTION=0", "SECURE_CONNECTION_VNC_METHOD=SSL", "SECURE_CONNECTION_CERTS_CHECK_INTERVAL=60", "WEB_LISTENING_PORT=5800", "VNC_LISTENING_PORT=5900", "VNC_PASSWORD=", "ENABLE_CJK_FONT=0" ], "Cmd": [ "/init" ], "Image": "jlesage/jdownloader-2", "Volumes": { "/config": {}, "/output": {} }, "WorkingDir": "/tmp", "Entrypoint": null, "OnBuild": null, "Labels": { "org.label-schema.description": "Docker container for JDownloader 2", "org.label-schema.name": "jdownloader-2", "org.label-schema.schema-version": "1.0", "org.label-schema.vcs-url": "https://github.com/jlesage/docker-jdownloader-2", "org.label-schema.version": "22.12.1" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "61676b47c90dacc2e8a20722ea00ba34e8c4335ca4979f264e2a81060ea16bcc", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "/var/run/docker/netns/61676b47c90d", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "2b53d3131b3299bd11a0b4342a3d773faaaaa114e962f429d3b626c4b0a153e3", "EndpointID": "", "Gateway": "", "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "", "DriverOpts": null } } }

Sure, thanks for your help!

jlesage commented 1 year ago

Could you provide the output of:

docker run --rm jlesage/jdownloader-2 ls -l /etc/services.d/default
sadmam commented 1 year ago

here you go: `total 0 -rw-r--r-- 1 root root 0 Nov 27 02:11 app.dep

-rw-r--r-- 1 root root 0 Nov 27 02:11 logmonitor.dep`

jlesage commented 1 year ago

Could you do another test by running the following commands ?

echo '#!/bin/sh' > /tmp/test.sh
echo 'ls -l /etc/services.d/*/' >> /tmp/test.sh
chmod +x /tmp/test.sh

docker run --rm -v /tmp/test.sh:/etc/cont-init.d/88-test.sh jlesage/jdownloader-2

Please then share the output.

sadmam commented 1 year ago

log.txt I have attached the log...

Thanks for the help

jlesage commented 1 year ago

Can you try the latest image to see if it's better ?

sadmam commented 1 year ago

Issue still there... tried your latest commands... the log result is attached. Thanks for your effort! log.txt