jlesage / docker-jdownloader-2

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

[Bug] after some time past ah reboot jdownloader app crashes constantly #170

Open DaStivi opened 1 year ago

DaStivi commented 1 year ago

Current Behavior

after some time past ah reboot jdownloader app crashes constantly container log only shows following:

[supervisor ] service 'app' exited (with status 0). [supervisor ] restarting service 'app'. [supervisor ] starting service 'app'...

but with VNC i'll see 2 error logs before ah constant restart loop of the 'app'

image image

redploy the container does not work...

what worked is to delete the persistent storage and reploy fresh... nothing has been changed, config-wise, before this issue happens.. so homehow this is happening after jdownloader updates? idk?

Expected Behavior

No response

Steps To Reproduce

nothing special, running for weeks and suddenly after some reboots of the container host this starts to happen...

Environment

Container creation

portainer

Container log

[supervisor  ] service 'app' exited (with status 0).
[supervisor  ] restarting service 'app'.
[supervisor  ] starting service 'app'...
[supervisor  ] service 'app' exited (with status 0).
[supervisor  ] restarting service 'app'.
[supervisor  ] starting service 'app'...
[supervisor  ] service 'app' exited (with status 0).
[supervisor  ] restarting service 'app'.
[supervisor  ] starting service 'app'...

Container inspect

{
    "AppArmorProfile": "docker-default",
    "Args": [],
    "Config": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": [
            "/init"
        ],
        "Domainname": "",
        "Entrypoint": null,
        "Env": [
            "KEEP_APP_RUNNING=1",
            "SECURE_CONNECTION=1",
            "TZ=Europe/Vienna",
            "MYJDOWNLOADER_DEVICE_NAME=jDownloader@QNAP-Docker",
            "JDOWNLOADER_HEADLESS=0",
            "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",
            "GROUP_ID=1000",
            "SUP_GROUP_IDS=",
            "UMASK=0022",
            "LANG=en_US.UTF-8",
            "APP_NICENESS=0",
            "INSTALL_PACKAGES=",
            "CONTAINER_DEBUG=0",
            "DISPLAY_WIDTH=1920",
            "DISPLAY_HEIGHT=1080",
            "DARK_MODE=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"
        ],
        "ExposedPorts": {
            "3129/tcp": {},
            "5800/tcp": {},
            "5900/tcp": {}
        },
        "Hostname": "00f0d658bc73",
        "Image": "jlesage/jdownloader-2:latest",
        "Labels": {
            "com.qnap.qcs.gpu": "False",
            "com.qnap.qcs.network.mode": "nat",
            "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": "23.04.1"
        },
        "OnBuild": null,
        "OpenStdin": true,
        "StdinOnce": false,
        "Tty": true,
        "User": "",
        "Volumes": {
            "/config": {},
            "/output": {}
        },
        "WorkingDir": "/tmp"
    },
    "Created": "2023-09-23T19:23:48.44990785Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/9ad6142ddda894eea73c27c2ae1721e92fea25458ab0b648e529ca0334121f9c-init/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/9574422fa2e29f9de5505f126680c632fce796e20d25c48c374e94bf51221815/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/294134e8111f376ef4a64e6d46931a24db98e1d471b8d3e2d3332e99be9166f4/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/0c3dc60981a2f7e154eddab1ea8c8e362f3868ac2cf5c1a319944107ae0fa249/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/562865cccfca464192bfe6ae8d06dcb736e8ddbdca3d1149be10ed5d8ce73adc/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/55811b3e7ade598a95da700c2fb76749fc2e5861d97b1c3404415019b18cd0f4/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/bf9fcf3dee06beb6dee19c2cbc397a06d61d0dec7a01b4db7c7def6960310e40/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/0abdce431a951aa632bc5c6eff57dea4bd15adaec5d42271a7b760ba64a5adb6/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/460d36085750a22a0db911847b86652fa5fa0cc4e193c35745be8af963304621/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/aa1b1c98afc361c702763abf9a9a1c92ae9309069464f8053358b579704fbbcb/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/560af66cd5404d5fdf7f59bfc016acc61af18e7ec87690600b81360e74378eed/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/140151dd13ce6ce822b14ebe76872e5e7204833a7c036e8e0793dc3373b8f756/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/fbbd2cbefdd54fa5fbbbe16758093d9920677809c95d1a4a288b2ea8ac0402e7/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/02317ce19f4fc3561940c3d1f3e9668388e90dd44188645ced956952985bb0aa/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/570403c2ce45ba80952d511199a8abf6cdc7f61f95ebec56ac51d764c3beb44e/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/fe80297822eac2e63ffcbff595b532078af9f81dbb44b4d104d2c1d1e34ffe80/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/ef536a0bc2f31a3e662822ac42e9565995c28e90e6999a412a19de7c8d859091/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/e7aba60fdda93a6bff1bc23335debf295fda7378914c4717613d35f219159c8e/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/73ce573adcd67348cda156df8c0409940cdc1309268783105b9bd420e3174f9f/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/581750678e1046dad940c46bf5d411cab20579f6bd13c60ba45cde4f2772d508/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/58b3eb5de86e52fccddbbe59ecf3095c6d2db546d590ad9229c5d1d045b765ad/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/0ea19687f52936b361497d6beb1732e751cd708d5b38cc42923bbba967dd15de/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/d9ae985d1c2094fc755efc2f2bed80dbe33dc16bccb6597a2175ffc94d299a37/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/e78c9d5e4bb7cffecf78f846596d2e54ea6c36d6c54424fbbfffd7cc041a61a0/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/e41acfbb2ad8db6ab536d0671d72229b3a472f600c527e62c41c1d24205cd276/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/65d07304215da222f355a7742bcf201de396ed675f35c1aef0ba64cd290ec4bd/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/26aa2e9e7edfb928fcd71e7da4c2f19238220eaac0f208acaa280accfffeee04/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/ae7d4d85c3dc221df0d17a73edf25c962faeb1b141a7b642a189c9669d547dc2/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/351d266708b411fc1df5f2d042e743199fcae40a65098abd1a5d8663b7f8f7d5/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/db21c89b80c4a5deafe5c0e95985229a7aa9178f94b744955134f0a2fa6cfc1e/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/4f6a93c8899ef8c68b2986965f0b16aa4b750a554a0a1ec6145f3e6a10fb7e4b/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/cf8dff5a0daffa545aec9da264b72425c23806f5c849015e476633fbf3ab1a0c/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/0eb932cd6acb8b653e2a1a9a2b83f9560edf13e6472769474f33057c7ddcfb26/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/c8eb629d8ce7af559a49e8c08f3df85dd3100b8cb85906c575eb67acc4522ecc/diff:/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/3a431d38bdd51203166b34403da7a96bc785c8e3858d9c1ec563f0fedf2209d4/diff",
            "MergedDir": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/9ad6142ddda894eea73c27c2ae1721e92fea25458ab0b648e529ca0334121f9c/merged",
            "UpperDir": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/9ad6142ddda894eea73c27c2ae1721e92fea25458ab0b648e529ca0334121f9c/diff",
            "WorkDir": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/overlay2/9ad6142ddda894eea73c27c2ae1721e92fea25458ab0b648e529ca0334121f9c/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "/share/Container/jdownloader2/config:/config",
            "/share/Download:/output"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": [
            "AUDIT_WRITE",
            "CHOWN",
            "DAC_OVERRIDE",
            "FOWNER",
            "FSETID",
            "KILL",
            "MKNOD",
            "NET_BIND_SERVICE",
            "NET_RAW",
            "SETFCAP",
            "SETGID",
            "SETPCAP",
            "SETUID",
            "SYS_CHROOT"
        ],
        "CapDrop": [
            "AUDIT_CONTROL",
            "BLOCK_SUSPEND",
            "DAC_READ_SEARCH",
            "IPC_LOCK",
            "IPC_OWNER",
            "LEASE",
            "LINUX_IMMUTABLE",
            "MAC_ADMIN",
            "MAC_OVERRIDE",
            "NET_ADMIN",
            "NET_BROADCAST",
            "SYSLOG",
            "SYS_ADMIN",
            "SYS_BOOT",
            "SYS_MODULE",
            "SYS_NICE",
            "SYS_PACCT",
            "SYS_PTRACE",
            "SYS_RAWIO",
            "SYS_RESOURCE",
            "SYS_TIME",
            "SYS_TTY_CONFIG",
            "WAKE_ALARM"
        ],
        "Cgroup": "",
        "CgroupParent": "",
        "CgroupnsMode": "host",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 100000,
        "CpuQuota": 25000,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": [],
        "Dns": [
            "1.1.1.1"
        ],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "private",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {
                "max-file": "10",
                "max-size": "10m"
            },
            "Type": "json-file"
        },
        "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"
        ],
        "Memory": 2147483648,
        "MemoryReservation": 0,
        "MemorySwap": 4294967296,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "bridge",
        "OomKillDisable": false,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "3129/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "3129"
                }
            ],
            "5800/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "5800"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "always"
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": [
            {
                "Hard": 65535,
                "Name": "nofile",
                "Soft": 65535
            }
        ],
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": []
    },
    "HostnamePath": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0/hostname",
    "HostsPath": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0/hosts",
    "Id": "8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0",
    "Image": "sha256:f1b3bf3b57dbbee30e3cee81973c818d3bda5606c69086dff0fbc879d16b8bad",
    "LogPath": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0/8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0-json.log",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/config",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/share/Container/jdownloader2/config",
            "Type": "bind"
        },
        {
            "Destination": "/output",
            "Mode": "",
            "Propagation": "rprivate",
            "RW": true,
            "Source": "/share/Download",
            "Type": "bind"
        }
    ],
    "Name": "/jdownloader2",
    "NetworkSettings": {
        "Bridge": "lxcbr0",
        "EndpointID": "a1d4443d3619b764f5b14db008833b52761e3b66129d31e34be7cf316bd1ceab",
        "Gateway": "10.0.3.1",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "10.0.3.2",
        "IPPrefixLen": 24,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "02:42:0a:00:03:02",
        "Networks": {
            "bridge": {
                "Aliases": null,
                "DriverOpts": null,
                "EndpointID": "a1d4443d3619b764f5b14db008833b52761e3b66129d31e34be7cf316bd1ceab",
                "Gateway": "10.0.3.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": {},
                "IPAddress": "10.0.3.2",
                "IPPrefixLen": 24,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:0a:00:03:02",
                "NetworkID": "78218fb83d12946ffd667c417ba48336e7e06bed55c4fd4b9b16ed3891c2039f"
            }
        },
        "Ports": {
            "3129/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "3129"
                }
            ],
            "5800/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "5800"
                }
            ],
            "5900/tcp": null
        },
        "SandboxID": "574b3b6a2f6ebc6c4f5ee6e4b1c4f0194988ed8941ac0d1564a990d1cd91a568",
        "SandboxKey": "/var/run/docker/netns/574b3b6a2f6e",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "/init",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 53,
            "ResourceId": "8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0",
            "SubResourceIds": [],
            "Type": 1,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/containers/8c48c5329c5a53300af14e4fcf1d062dacd6f0148f161b014e33fe917fb107c0/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "2023-09-26T06:04:11.432359512Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 16376,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2023-09-26T06:04:17.424374712Z",
        "Status": "running"
    }
}

Anything else?

No response

DaStivi commented 1 year ago

just deleted the jdownloader.jar and core.jar now from persistent storage and it looks like even with the old config after ah fresh installation its running now again..

srvazquez commented 11 months ago

Same issue as @DaStivi. Solved following the same process, deleting jdownloader.jar and core.jar

DaStivi commented 11 months ago

Same issue as @DaStivi. Solved following the same process, deleting jdownloader.jar and core.jar

it's still happening from time to time... :( not sure whats causing this behaviour... i really wonder no one else mention this...

jlesage commented 11 months ago

Did you try to report the crash to the JDownloader forum or to submit a support ticket?

DaStivi commented 11 months ago

i would have thougth this is more an issue of the container implementation, isn't it?

jlesage commented 11 months ago

The JDownloader software is the same as the one running on a "normal" desktop. Maybe the environment provided by the container causes a side effect on JD, but we cannot exclude an issue from JD itself.

BTW, do you have the Tray Icon extension enabled (it is disabled by default)? I'm asking because the crash seems related to this.

DaStivi commented 8 months ago

now after almost 2 or 3 Months of no issues it happend again... :(

i didn't enabled any tray icon intentionally ... i will check into this and try to disable it, if its really enabled, i don't think i need this... i also don't use the jdownloader application at all.. i only access jd via the my.jdownloader site..