jlesage / docker-jdownloader-2

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

[Bug] Invalid download directory #158

Closed boardlord1 closed 1 year ago

boardlord1 commented 1 year ago

Current Behavior

Running on an Intel-based Synology NAS with many other containers, which don't have any problems with mapped volumes.

My compose file is basically the example on the github page, with volumes and user id/group id adopted to my environment.

However, when starting a download, Jdownloader complains of invalid download directory...: image

On the settings tab, I don't see any folders that I know are in the directory mapped to /output, so something is not right: image

However, I know the mapping is correct - see what I see in /output is I log into the container shell: image

Expected Behavior

I'd expect the folder "g" to show up in the GUI when browsing /output and Jdownloader to be able to use the folder.

Steps To Reproduce

No response

Environment

Container creation

Created with Portainer via stacks (partial stack file below:

jdownloader-2: container_name: jdownloader-2 image: jlesage/jdownloader-2 cap_add:

Container log

2023-06-24T06:39:13.215191323Z [init        ] container is starting...
2023-06-24T06:39:13.217202923Z [cont-env    ] loading container environment variables...
2023-06-24T06:39:13.217897732Z [cont-env    ] APP_NAME: loading...
2023-06-24T06:39:13.219824695Z [cont-env    ] DISPLAY: executing...
2023-06-24T06:39:13.223584356Z [cont-env    ] DISPLAY: terminated successfully.
2023-06-24T06:39:13.223957130Z [cont-env    ] DISPLAY: loading...
2023-06-24T06:39:13.224925748Z [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
2023-06-24T06:39:13.226388276Z [cont-env    ] DOCKER_IMAGE_VERSION: loading...
2023-06-24T06:39:13.227914450Z [cont-env    ] GTK2_RC_FILES: executing...
2023-06-24T06:39:13.246658643Z [cont-env    ] GTK2_RC_FILES: terminated successfully.
2023-06-24T06:39:13.246897788Z [cont-env    ] GTK2_RC_FILES: loading...
2023-06-24T06:39:13.247710694Z [cont-env    ] GTK_THEME: executing...
2023-06-24T06:39:13.251736096Z [cont-env    ] GTK_THEME: terminated successfully.
2023-06-24T06:39:13.251871995Z [cont-env    ] GTK_THEME: loading...
2023-06-24T06:39:13.252599576Z [cont-env    ] HOME: loading...
2023-06-24T06:39:13.254314958Z [cont-env    ] INSTALL_PACKAGES_INTERNAL: executing...
2023-06-24T06:39:13.256444944Z [cont-env    ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
2023-06-24T06:39:13.256823842Z [cont-env    ] INSTALL_PACKAGES_INTERNAL: loading...
2023-06-24T06:39:13.257722107Z [cont-env    ] QT_STYLE_OVERRIDE: executing...
2023-06-24T06:39:13.261023699Z [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
2023-06-24T06:39:13.261366935Z [cont-env    ] QT_STYLE_OVERRIDE: loading...
2023-06-24T06:39:13.262358117Z [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
2023-06-24T06:39:13.263978888Z [cont-env    ] XDG_CACHE_HOME: loading...
2023-06-24T06:39:13.265665609Z [cont-env    ] XDG_CONFIG_HOME: loading...
2023-06-24T06:39:13.267372368Z [cont-env    ] XDG_DATA_HOME: loading...
2023-06-24T06:39:13.268857533Z [cont-env    ] XDG_RUNTIME_DIR: loading...
2023-06-24T06:39:13.270526556Z [cont-env    ] XDG_STATE_HOME: loading...
2023-06-24T06:39:13.271801657Z [cont-env    ] container environment variables initialized.
2023-06-24T06:39:13.271890145Z [cont-secrets] loading container secrets...
2023-06-24T06:39:13.271970252Z [cont-secrets] container secrets loaded.
2023-06-24T06:39:13.272004065Z [cont-init   ] executing container initialization scripts...
2023-06-24T06:39:13.273458087Z [cont-init   ] 10-certs.sh: executing...
2023-06-24T06:39:13.348757980Z [cont-init   ] 10-certs.sh: terminated successfully.
2023-06-24T06:39:13.349541603Z [cont-init   ] 10-check-app-niceness.sh: executing...
2023-06-24T06:39:13.368515814Z [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
2023-06-24T06:39:13.369533732Z [cont-init   ] 10-cjk-font.sh: executing...
2023-06-24T06:39:13.373583983Z [cont-init   ] 10-cjk-font.sh: terminated successfully.
2023-06-24T06:39:13.374591224Z [cont-init   ] 10-clean-logmonitor-states.sh: executing...
2023-06-24T06:39:13.380608723Z [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
2023-06-24T06:39:13.381747595Z [cont-init   ] 10-clean-tmp-dir.sh: executing...
2023-06-24T06:39:13.384240761Z [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
2023-06-24T06:39:13.388403102Z [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
2023-06-24T06:39:13.391434004Z [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
2023-06-24T06:39:13.391764177Z [cont-init   ] 10-init-users.sh: executing...
2023-06-24T06:39:13.517475992Z [cont-init   ] 10-init-users.sh: terminated successfully.
2023-06-24T06:39:13.519449671Z [cont-init   ] 10-nginx.sh: executing...
2023-06-24T06:39:13.569603554Z [cont-init   ] 10-nginx.sh: terminated successfully.
2023-06-24T06:39:13.570479477Z [cont-init   ] 10-openbox.sh: executing...
2023-06-24T06:39:13.664013571Z [cont-init   ] 10-openbox.sh: terminated successfully.
2023-06-24T06:39:13.665112868Z [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
2023-06-24T06:39:13.667064260Z [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
2023-06-24T06:39:13.667821226Z [cont-init   ] 10-vnc-password.sh: executing...
2023-06-24T06:39:13.676962458Z [cont-init   ] 10-vnc-password.sh: terminated successfully.
2023-06-24T06:39:13.677840849Z [cont-init   ] 10-web-data.sh: executing...
2023-06-24T06:39:13.681638466Z [cont-init   ] 10-web-data.sh: terminated successfully.
2023-06-24T06:39:13.682389013Z [cont-init   ] 10-x11-unix.sh: executing...
2023-06-24T06:39:13.684426731Z [cont-init   ] 10-x11-unix.sh: terminated successfully.
2023-06-24T06:39:13.685184917Z [cont-init   ] 10-xdg-runtime-dir.sh: executing...
2023-06-24T06:39:13.688569497Z [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
2023-06-24T06:39:13.689332825Z [cont-init   ] 15-install-pkgs.sh: executing...
2023-06-24T06:39:13.690963102Z [cont-init   ] 15-install-pkgs.sh: terminated successfully.
2023-06-24T06:39:13.691743935Z [cont-init   ] 55-jdownloader2.sh: executing...
2023-06-24T06:39:13.789602955Z [cont-init   ] 55-jdownloader2.sh: terminated successfully.
2023-06-24T06:39:13.790438767Z [cont-init   ] 85-take-config-ownership.sh: executing...
2023-06-24T06:39:13.899994135Z [cont-init   ] 85-take-config-ownership.sh: terminated successfully.
2023-06-24T06:39:13.900929614Z [cont-init   ] 89-info.sh: executing...
2023-06-24T06:39:13.902831280Z     ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
2023-06-24T06:39:13.903630164Z     │                                                                      │
2023-06-24T06:39:13.904297531Z     │ Application:           JDownloader 2                                 │
2023-06-24T06:39:13.904781063Z     │ Application Version:   n/a                                           │
2023-06-24T06:39:13.905459615Z     │ Docker Image Version:  23.06.1                                       │
2023-06-24T06:39:13.906042125Z     │ Docker Image Platform: linux/amd64                                   │
2023-06-24T06:39:13.906595731Z     │                                                                      │
2023-06-24T06:39:13.907265048Z     ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
2023-06-24T06:39:13.907867408Z [cont-init   ] 89-info.sh: terminated successfully.
2023-06-24T06:39:13.908151877Z [cont-init   ] all container initialization scripts executed.
2023-06-24T06:39:13.909473321Z [init        ] giving control to process supervisor.
2023-06-24T06:39:13.932871614Z [supervisor  ] loading services...
2023-06-24T06:39:13.933029112Z [supervisor  ] loading service 'default'...
2023-06-24T06:39:13.933080526Z [supervisor  ] loading service 'app'...
2023-06-24T06:39:13.938882833Z [supervisor  ] loading service 'gui'...
2023-06-24T06:39:13.938987295Z [supervisor  ] loading service 'certsmonitor'...
2023-06-24T06:39:13.940623722Z [supervisor  ] service 'certsmonitor' is disabled.
2023-06-24T06:39:13.940675410Z [supervisor  ] loading service 'nginx'...
2023-06-24T06:39:13.940807423Z [supervisor  ] loading service 'xvnc'...
2023-06-24T06:39:13.955393739Z [supervisor  ] loading service 'openbox'...
2023-06-24T06:39:13.955547773Z [supervisor  ] loading service 'logmonitor'...
2023-06-24T06:39:13.956731094Z [supervisor  ] service 'logmonitor' is disabled.
2023-06-24T06:39:13.956796872Z [supervisor  ] loading service 'logrotate'...
2023-06-24T06:39:13.959449597Z [supervisor  ] all services loaded.
2023-06-24T06:39:13.959524707Z [supervisor  ] starting services...
2023-06-24T06:39:13.959555713Z [supervisor  ] starting service 'xvnc'...
2023-06-24T06:39:14.047973859Z [xvnc        ] Xvnc TigerVNC 1.13.1 - built May 16 2023 17:43:49
2023-06-24T06:39:14.048121991Z [xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
2023-06-24T06:39:14.048162941Z [xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
2023-06-24T06:39:14.048195249Z [xvnc        ] Underlying X server release 12014000
2023-06-24T06:39:14.062891529Z [xvnc        ] Sat Jun 24 08:39:14 2023
2023-06-24T06:39:14.063336654Z [xvnc        ]  vncext:      VNC extension running!
2023-06-24T06:39:14.063374498Z [xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
2023-06-24T06:39:14.063412089Z [xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
2023-06-24T06:39:14.063449682Z [xvnc        ]  vncext:      created VNC server for screen 0
2023-06-24T06:39:14.494147186Z [supervisor  ] starting service 'nginx'...
2023-06-24T06:39:14.496221969Z [nginx       ] Listening for HTTP connections on port 5800.
2023-06-24T06:39:14.997808821Z [supervisor  ] starting service 'openbox'...
2023-06-24T06:39:15.499834151Z [supervisor  ] starting service 'app'...
2023-06-24T06:39:16.500821056Z [supervisor  ] all services started.
2023-06-24T06:39:21.920003662Z [xvnc        ] Sat Jun 24 08:39:21 2023
2023-06-24T06:39:21.920576302Z [xvnc        ]  Connections: accepted: /tmp/vnc.sock
2023-06-24T06:39:21.960460448Z [xvnc        ]  SConnection: Client needs protocol version 3.8
2023-06-24T06:39:21.985729741Z [xvnc        ]  SConnection: Client requests security type None(1)
2023-06-24T06:39:21.990641554Z [xvnc        ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
2023-06-24T06:39:22.010242782Z [xvnc        ] Sat Jun 24 08:39:22 2023
2023-06-24T06:39:22.010613689Z [xvnc        ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888

Container inspect

[
    {
        "Id": "ded35724e20ae54e0f56aae423688af46a533a587c7f4377005be012e42448a9",
        "Created": "2023-06-24T06:39:11.166058905Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 28313,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-06-24T06:39:13.216477894Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "StartedTs": 1687588753,
            "FinishedTs": -62135596800
        },
        "Image": "sha256:f1b3bf3b57dbbee30e3cee81973c818d3bda5606c69086dff0fbc879d16b8bad",
        "ResolvConfPath": "/volume1/@docker/containers/ded35724e20ae54e0f56aae423688af46a533a587c7f4377005be012e42448a9/resolv.conf",
        "HostnamePath": "/volume1/@docker/containers/ded35724e20ae54e0f56aae423688af46a533a587c7f4377005be012e42448a9/hostname",
        "HostsPath": "/volume1/@docker/containers/ded35724e20ae54e0f56aae423688af46a533a587c7f4377005be012e42448a9/hosts",
        "LogPath": "/volume1/@docker/containers/ded35724e20ae54e0f56aae423688af46a533a587c7f4377005be012e42448a9/log.db",
        "Name": "/jdownloader-2",
        "RestartCount": 0,
        "Driver": "btrfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": [
            "b895fe5ba1160d46f7fdc8566915ee694db66bc6e0dd023af6aacf1d018be3de"
        ],
        "HostConfig": {
            "Binds": [
                "/volume1/docker/jdownloader-2:/config:rw",
                "/volume1/torrent/torrent/temp/jdownloader:/output:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "db",
                "Config": {}
            },
            "NetworkMode": "bridge_stack_boardlord_bridge",
            "PortBindings": {
                "5800/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "5800"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": [
                "NET_ADMIN"
            ],
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Env": [
                "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=100",
                "GROUP_ID=1036",
                "SUP_GROUP_IDS=",
                "UMASK=0022",
                "LANG=en_US.UTF-8",
                "TZ=Europe/Budapest",
                "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"
            ],
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "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/torrent/torrent/temp/jdownloader",
                "Destination": "/output",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/volume1/docker/jdownloader-2",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "ded35724e20a",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3129/tcp": {},
                "5800/tcp": {},
                "5900/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "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=100",
                "GROUP_ID=1036",
                "SUP_GROUP_IDS=",
                "UMASK=0022",
                "LANG=en_US.UTF-8",
                "TZ=Europe/Budapest",
                "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": {
                "com.docker.compose.config-hash": "83b66633267925c5190ea0c9562dfb7a6c377d85062a951849b2215384fe4584",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:f1b3bf3b57dbbee30e3cee81973c818d3bda5606c69086dff0fbc879d16b8bad",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "bridge_stack",
                "com.docker.compose.project.config_files": "/data/compose/12/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/data/compose/12",
                "com.docker.compose.service": "jdownloader-2",
                "com.docker.compose.version": "2.17.2",
                "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.06.1"
            },
            "DDSM": false
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "781f47223192b5752923073306f0940b0a163b0e72852f94fe8e9d052d563a5f",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3129/tcp": null,
                "5800/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "5800"
                    }
                ],
                "5900/tcp": null
            },
            "SandboxKey": "/var/run/docker/netns/781f47223192",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "bridge_stack_boardlord_bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "jdownloader-2",
                        "jdownloader-2",
                        "ded35724e20a"
                    ],
                    "NetworkID": "044e5dbb168c73e8647c0df066e0defcd24207c76174f9e0745d4ad7bfcdf57e",
                    "EndpointID": "c886a869432fddc2b3ffa87ab87dc6b09f06cd93ee7e8e615be578b07f7876d6",
                    "Gateway": "172.23.0.1",
                    "IPAddress": "172.23.0.3",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:17:00:03",
                    "DriverOpts": null
                }
            }
        }
    }
]

Anything else?

No response

jlesage commented 1 year ago

The gg directory is not showing because the container doesn't have the permission the read it: as indicated by your compose file, the container is configured for user 100 and group 1036. However, the gg directory has user 1026 and group 100, as shown by your screenshot.

boardlord1 commented 1 year ago

Doh! I'm so blind... Sorted out the permissions, thanks! :)

BartOon commented 1 year ago

this fix can be apply to this https://github.com/jlesage/docker-jdownloader-2/issues/81 ?