jlesage / docker-jdownloader-2

Docker container for JDownloader 2
MIT License
730 stars 69 forks source link

[Bug] Captchas are not shown #210

Open Bluejanis opened 3 days ago

Bluejanis commented 3 days ago

Current Behavior

When starting a download, it shows:

Wait for captcha slot: 9s. Once it is down to 0s, it just restarts the counter.

Neither rapidgator, ddownload nor turbobit are working anymore. Probably since a month or two, when it stopped working. I had hoped the new release would fix it, but the issue still persists.

Expected Behavior

A captcha is shown, so I can solve it and the download can start.

Steps To Reproduce

Add links to jdownloader from i.e. ddownload and start the download.

Environment

Container creation

docker run -d --name=jdownloader-2 -p 5800:5800 -p 3129:3129 -v "C:\Users\Bluejanis\Documents\Eigene Dokumente\Docker\jdownloader-2\:/config:rw" -v "F:\JDownloads\:/output:rw" -e DARK_MODE=1 -e SECURE_CONNECTION=1 ` jlesage/jdownloader-2

Container log

╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
    │                                                                      │
    │ Application:           JDownloader 2                                 │
    │ Application Version:   n/a                                           │
    │ Docker Image Version:  24.07.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  ] loading service 'logmonitor'...
[supervisor  ] service 'logmonitor' is disabled.
[supervisor  ] loading service 'logrotate'...
[supervisor  ] loading service 'app'...
[supervisor  ] loading service 'gui'...
[supervisor  ] loading service 'openbox'...
[supervisor  ] loading service 'xvnc'...
[supervisor  ] loading service 'pulseaudio'...
[supervisor  ] service 'pulseaudio' is disabled.
[supervisor  ] loading service 'xcompmgr'...
[supervisor  ] loading service 'certsmonitor'...
[supervisor  ] loading service 'nginx'...
[supervisor  ] loading service 'webauth'...
[supervisor  ] service 'webauth' is disabled.
[supervisor  ] loading service 'audiorecorder'...
[supervisor  ] service 'audiorecorder' is disabled.
[supervisor  ] all services loaded.
[supervisor  ] starting services...
[supervisor  ] starting service 'xvnc'...
[xvnc        ] Xvnc TigerVNC 1.13.1 - built Jun 29 2024 04:32:51
[xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
[xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
[xvnc        ] Underlying X server release 12014000
[xvnc        ] Thu Jul  4 10:54:00 2024
[xvnc        ]  vncext:      VNC extension running!
[xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
[xvnc        ]  vncext:      created VNC server for screen 0
[supervisor  ] starting service 'openbox'...
[supervisor  ] starting service 'xcompmgr'...
[supervisor  ] starting service 'nginx'...
[nginx       ] Listening for HTTPs connections on port 5800.
[supervisor  ] starting service 'app'...
[supervisor  ] all services started.
[xvnc        ] Thu Jul  4 10:54:35 2024
[xvnc        ]  Connections: accepted: /tmp/vnc.sock
[xvnc        ]  SConnection: Client needs protocol version 3.8
[xvnc        ]  SConnection: Client requests security type None(1)
[xvnc        ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
[xvnc        ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
[xvnc        ]  ComparingUpdateTracker: 0 pixels in / 0 pixels out
[xvnc        ]  ComparingUpdateTracker: (1:-nan ratio)

Container inspect

[
    {
        "Id": "432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8",
        "Created": "2024-07-04T09:39:46.346284396Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 397,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-07-04T10:53:55.769085761Z",
            "FinishedAt": "2024-07-04T10:51:24.337808318Z"
        },
        "Image": "sha256:316600b1b5ed4c17f5892c2935c58736867701edb7926fd85a5bb853a696bc52",
        "ResolvConfPath": "/var/lib/docker/containers/432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8/hostname",
        "HostsPath": "/var/lib/docker/containers/432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8/hosts",
        "LogPath": "/var/lib/docker/containers/432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8/432a96aa9d5e5fde7c746abbaaa249ed77f7ec77a7c79f9633e87a40470ac0b8-json.log",
        "Name": "/jdownloader-2",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "C:\\Users\\Bluej\\Documents\\Eigene Dokumente\\Docker\\jdownloader-2\\:/config:rw",
                "F:\\JDownloads\\:/output:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "bridge",
            "PortBindings": {
                "3129/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3129"
                    }
                ],
                "5800/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "5800"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                31,
                89
            ],
            "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",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": [],
            "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",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/ea292857a03472b288fa92dd189b50ef39364a15cd3f59e91da90d6b986c861a-init/diff:/var/lib/docker/overlay2/5d5c6a83c7443e13b1779bd7fd4300c29ba95a3cf511d6ac204e6e3a73264f19/diff:/var/lib/docker/overlay2/b07822a4f9b80c4bb4a8b08994a6be6a1f17a73e63d848ca3a17bb9ae1c4bade/diff:/var/lib/docker/overlay2/963c09f6a08a15a52d0ab9be621d3efd7607273b3181ffed82390370ea1b8c1c/diff:/var/lib/docker/overlay2/3a0bd666e362a4bea790bc87321e92a5bd843dfa64f90e6b92bd7ae9404e6824/diff:/var/lib/docker/overlay2/903f854de8fd4a99a23db8ca76f1a3f7a413c525f2be180d82d9c11c99ac8709/diff:/var/lib/docker/overlay2/fce459f159d9465cf700fc44f815c8ab16b6d47cb2c7391a6edbba3599ebd3f2/diff:/var/lib/docker/overlay2/8764d8ada3d15c9336beaebf9a9aa2a0bf1c807adb7d8bfdd7f7a088a7f74fa7/diff:/var/lib/docker/overlay2/ed88728c39e46cff7c956119077f55111f5bad0bdf60099d3df3dffcf1b481e3/diff:/var/lib/docker/overlay2/3d816e0414a175140fe5b6401e4845d4cba64185889224d910ae0de8f8503334/diff:/var/lib/docker/overlay2/9161b06f44e8b27c86aa516face58cb01b0130c3102dfc956b19bdafe35c3d69/diff:/var/lib/docker/overlay2/dd8d3a930fe87fcf18fb6e25b989db764f92e07c1615337e791a695ce8f9b99e/diff:/var/lib/docker/overlay2/c6ae0584e9dfff22816be0e5f76522fd60880c2846ddde5fb45ecc8645243572/diff:/var/lib/docker/overlay2/c55c42cbf9fa26cd0327cdb2bfb2888a25dd695d3e6d667ec0b641e0e0af20ed/diff:/var/lib/docker/overlay2/bb56dbb1db3f55a03325ec80a742da42d728f1ba8dad551e4af64192ca324803/diff:/var/lib/docker/overlay2/5cce420ffc0486f8a406b7c617fb5beb163736e7033d5114fa2af799da8659c4/diff:/var/lib/docker/overlay2/04dabf9e467edb62486ea3a8cdfb769f27236b0a4c42cc7badd86b8e5779367e/diff:/var/lib/docker/overlay2/250cabcb61bd8a8c1d99c36318eaae0381d3c9bfc8f76a26900b750095c35fe8/diff:/var/lib/docker/overlay2/2a21e7ba2e63e043c380b792de12509f28cc96ab6a4db4f0197df7190a6ea4dd/diff:/var/lib/docker/overlay2/e07bbc451bdb58671f9778e2e017190e32a3140d2f7c2b1b90e8c22c216f93c5/diff:/var/lib/docker/overlay2/c93086a8293e1fd93bcf3ab602371ab7c9ca1c1d468f31a85be5b5ac22aec332/diff:/var/lib/docker/overlay2/a1de35d65e62954fa7c0a899b70cf5c18533f9a29edbcc77116d2acbfcf978fc/diff:/var/lib/docker/overlay2/9aa8b35a50fc6c4c65f908da69258cf47667f009dddf5c1d1c88ef0327dd0958/diff:/var/lib/docker/overlay2/4c05fef9230867fa6615538715f7ed051c2570dd7276b8b24212cec2ef7c173a/diff:/var/lib/docker/overlay2/671262e724de70ec8b4d8549cb1f036cfb984cb7c8348f888c115692369918a5/diff:/var/lib/docker/overlay2/a3068a0594eeba8b21d93f09d19a457507be4128c1b8e4e965d150f1762e036a/diff:/var/lib/docker/overlay2/d239ecdcadb1ce7040506aafdb5c9998b257f0bffcaad38ee05e8e8312790633/diff:/var/lib/docker/overlay2/8c57283cc2a19f41db0c11e6ea1be01f8e3d03539869321f241297391ea8151d/diff:/var/lib/docker/overlay2/199ac161ff5c1b23dca454be1264340223bfbfe0f3a3ae5371e57c83076a2490/diff:/var/lib/docker/overlay2/97c4bf050ad7af0a851b3d39835201256a37738b4d4628c74ec5aa8fad79ce01/diff:/var/lib/docker/overlay2/55dadca580e84738db52c6975e5cb57f25bff138eaa71de3e5803eb36c3111cb/diff:/var/lib/docker/overlay2/01d3b226f525ef5a72642862614849cf7926eed5f596b800810d080bb8c4ee2d/diff:/var/lib/docker/overlay2/934c6affdd69ad9eb3386b428e69b5afa0faa9d46c98d567fb5f2457d82251df/diff:/var/lib/docker/overlay2/e65af12fb1e0da61aa5f1a1b37b87cd306e544c6666715c041903b9716ff08f4/diff:/var/lib/docker/overlay2/56f8b893d03e063a88000d8d6dcc52b1e109f5d27a7f86a223a2491ef77835f6/diff:/var/lib/docker/overlay2/8230e5b4b69b9ad274b2d0443d1f6f802cc16ce2a1fd90e4ef368889c58eafb7/diff:/var/lib/docker/overlay2/278e4a34261a39bbf7d7103da40ec23d7cf1058c7f90acf4cad0d76785bef074/diff:/var/lib/docker/overlay2/f857621cfcc4cae1dbb682380e3742fa6b443364c3676a9f40223c8489b66625/diff:/var/lib/docker/overlay2/8b05023317bb5e08a448a87fc778d467a05048a44df734819a46b91397627a1c/diff:/var/lib/docker/overlay2/270d0b7edf763709a1e0d36c3ec8444343b68f4b522609cd170d839a8bbe22aa/diff:/var/lib/docker/overlay2/0e28f864bedacddbabf54a746b54b8e96453f7ed4ac68ff22835a95c68c55ab1/diff:/var/lib/docker/overlay2/7fdbe81334f71779932adb195eeef9070c24a18dff1b3f8d7a9b42d751fe8fdf/diff",
                "MergedDir": "/var/lib/docker/overlay2/ea292857a03472b288fa92dd189b50ef39364a15cd3f59e91da90d6b986c861a/merged",
                "UpperDir": "/var/lib/docker/overlay2/ea292857a03472b288fa92dd189b50ef39364a15cd3f59e91da90d6b986c861a/diff",
                "WorkDir": "/var/lib/docker/overlay2/ea292857a03472b288fa92dd189b50ef39364a15cd3f59e91da90d6b986c861a/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "F:\\JDownloads\\",
                "Destination": "/output",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "C:\\Users\\Bluej\\Documents\\Eigene Dokumente\\Docker\\jdownloader-2\\",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "432a96aa9d5e",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3129/tcp": {},
                "5800/tcp": {},
                "5900/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "DARK_MODE=1",
                "SECURE_CONNECTION=1",
                "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",
                "TZ=Etc/UTC",
                "KEEP_APP_RUNNING=0",
                "APP_NICENESS=0",
                "INSTALL_PACKAGES=",
                "PACKAGES_MIRROR=",
                "CONTAINER_DEBUG=0",
                "DISPLAY_WIDTH=1920",
                "DISPLAY_HEIGHT=1080",
                "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",
                "WEB_AUDIO=0",
                "WEB_AUTHENTICATION=0",
                "WEB_AUTHENTICATION_DEFAULT_USERNAME=",
                "WEB_AUTHENTICATION_DEFAULT_PASSWORD=",
                "MYJDOWNLOADER_EMAIL=",
                "MYJDOWNLOADER_PASSWORD=",
                "MYJDOWNLOADER_DEVICE_NAME=",
                "JDOWNLOADER_HEADLESS=0",
                "JDOWNLOADER_MAX_MEM="
            ],
            "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": "24.07.1"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "d5aa976e3624b30d5bf42abf0f01e2b1e9191dcf7ae2f04b0c8706e5ec9d60e6",
            "SandboxKey": "/var/run/docker/netns/d5aa976e3624",
            "Ports": {
                "3129/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3129"
                    }
                ],
                "5800/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "5800"
                    }
                ],
                "5900/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "ce180a7f59edbe520091c64a6ce4a2243fee16ed7140d2f93e9253a019c5f2b5",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "02:42:ac:11:00:02",
                    "NetworkID": "813cea0d068316ab49b2d1d4bddacf40f767809102b380ba930353ed9137f7b5",
                    "EndpointID": "ce180a7f59edbe520091c64a6ce4a2243fee16ed7140d2f93e9253a019c5f2b5",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": null
                }
            }
        }
    }
]

Anything else?

No response

jlesage commented 3 days ago

Are you using MyJDownloader ? Since there is no browser inside the container, this is the way people use to resolve captchas.

Bluejanis commented 3 days ago

Before the issue, it would show a captcha window within the jdownloader view on port 5800. I would type the required letters and the download started. This stopped working 1-2 month ago.

I had also tried MyJdownloader. It did not show any captchas there either.

I am also going to try this again with the new docker-jdownloader-2 version, just in case.

jlesage commented 3 days ago

It's possible that the download services you are using changed the way they use captchas.

Also, JDownloader has a self-update mechanism. Make sure it is up-to-date (Help -> Check Updates).

Bluejanis commented 3 days ago

It is possible, that they changed their captchas and use recaptcha now as well.

JDownlader is up-to-date.

I tried My.JDownloader just now. Now it gets stuck at the captcha recognition status. In My.JDownloader in the bottom, the icon says 2 captchas are waiting, but they do not show up in any way. Clicking on it does nothing either.

Which settings should be used in jdownloader for the captchas? Right now, I only left My.Jdownloader enabled.

Bluejanis commented 3 days ago

I got it working with my.jdownloader now. Apparently, MyJdownloader is not enough. It also requires the browser add-on to work with captchas.

It would be nice to get some info when a captcha does not work within docker-jdownloader. I also do not understand why it can't load the recaptchas, when other captchas worked before. It is running in the browser, so there should be a way? Alternative an info message, what we have to configure for these captchas, would have been nice.

jlesage commented 3 days ago

I also do not understand why it can't load the recaptchas, when other captchas worked before.

Something changed either with JDownloader itself, or with the download services. You might want to ask on the JDownloader forum to get more details about the possible causes.

It is running in the browser, so there should be a way?

Don't forget that JDownloader is a Linux application that normally runs on a desktop environment, where an external browser is available. In this scenario, JDownloader would open the browser where you have to resolve the captchas. This container allow you access the JDownloader application through a web browser, but the application itself is not running in a browser. It's like doing a remote desktop.