jlesage / docker-jdownloader-2

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

[Bug] Curl command in reconnect script doesn't work #193

Closed koninginsamira closed 7 months ago

koninginsamira commented 8 months ago

Current Behavior

I've been trying to get JDownloader to reset my VPN connection when it has to reconnect, but it doesn't seem to work. Maybe I'm just misunderstanding something, but I feel like it should work like this.

Through the interface I've added the following batch script to the general reconnect options: curl -X PUT -H "Content-Type: application/json" -d '{"status":"stopped"}' "http://localhost:8001/v1/openvpn/status" I've added the necessary packages through the environment variables, and the script does work when I run it inside the container, but it doesn't seem to do anything when I let JDownloader test it. There is also no extra information when I enable the container debugging variable.

I'm running the container using Docker Desktop 24.0.7 on Ubuntu 23.04 (x86-64)

Expected Behavior

I expect the curl request to be executed and my VPN to be reset. I know the command is correct, but I'm not sure if it's actually being run.

Steps To Reproduce

  1. Create container
  2. Run container
  3. Navigate to JDownloader interface and find General Reconnect Options
  4. Select "External Batch Reconnect" as method
  5. Add following command: curl -X PUT -H "Content-Type: application/json" -d '{"status":"stopped"}' "http://localhost:8001/v1/openvpn/status"
  6. Click to test
  7. Reconnection fails

Environment

Container creation

version: "3.2"
services:
  gluetun:
      container_name: gluetun
      image: qmcgaw/gluetun
      restart: unless-stopped
      cap_add:
        - NET_ADMIN
      ports:
        - 8001:8001
        - 5800:5800
      environment:
        - PUID=0
        - PGID=0
        - HTTP_CONTROL_SERVER_ADDRESS=:8001
        - VPN_SERVICE_PROVIDER=protonvpn
        - OPENVPN_USER=<user>
        - OPENVPN_PASSWORD=<password>
        - TZ=Europe/Amsterdam
      volumes:
        - /etc/localtime:/etc/localtime:ro
  jdownloader:
      container_name: jdownloader
      image: jlesage/jdownloader-2
      restart: unless-stopped
      network_mode: service:gluetun
      environment:
        - USER_ID=0
        - GROUP_ID=0
        - DARK_MODE=1
        - INSTALL_PACKAGES=curl
        - PACKAGES_MIRROR=https://alpine.mirror.wearetriple.com/
        - TZ=Europe/Amsterdam
      volumes:
        - /etc/localtime:/etc/localtime:ro
        - ./config/jdownloader:/config
        - ./data/jdownloader:/output

Container log

2024-01-29 19:13:24 [cont-init   ] 89-info.sh: executing...
2024-01-29 19:13:24     ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
2024-01-29 19:13:24     │                                                                      │
2024-01-29 19:13:24     │ Application:           JDownloader 2                                 │
2024-01-29 19:13:24     │ Application Version:   n/a                                           │
2024-01-29 19:13:24     │ Docker Image Version:  24.01.1                                       │
2024-01-29 19:13:24     │ Docker Image Platform: linux/amd64                                   │
2024-01-29 19:13:24     │                                                                      │
2024-01-29 19:13:24     ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
2024-01-29 19:13:24 [cont-init   ] 89-info.sh: terminated successfully.
2024-01-29 19:13:24 [cont-init   ] all container initialization scripts executed.
2024-01-29 19:13:24 [init        ] giving control to process supervisor.
2024-01-29 19:13:24 [supervisor  ] loading services...
2024-01-29 19:13:24 [supervisor  ] loading service 'default'...
2024-01-29 19:13:24 [supervisor  ] loading service 'logmonitor'...
2024-01-29 19:13:24 [supervisor  ] service 'logmonitor' is disabled.
2024-01-29 19:13:24 [supervisor  ] loading service 'logrotate'...
2024-01-29 19:13:24 [supervisor  ] loading service 'app'...
2024-01-29 19:13:24 [supervisor  ] loading service 'gui'...
2024-01-29 19:13:24 [supervisor  ] loading service 'nginx'...
2024-01-29 19:13:24 [supervisor  ] loading service 'certsmonitor'...
2024-01-29 19:13:24 [supervisor  ] service 'certsmonitor' is disabled.
2024-01-29 19:13:24 [supervisor  ] loading service 'xvnc'...
2024-01-29 19:13:24 [supervisor  ] loading service 'openbox'...
2024-01-29 19:13:24 [supervisor  ] all services loaded.
2024-01-29 19:13:24 [supervisor  ] starting services...
2024-01-29 19:13:24 [supervisor  ] starting service 'logrotate'...
2024-01-29 19:13:24 [supervisor  ] started service 'logrotate'.
2024-01-29 19:13:24 [supervisor  ] starting service 'xvnc'...
2024-01-29 19:13:24 [supervisor  ] started service 'xvnc'.
2024-01-29 19:13:24 [logrotate   ] reading config file /opt/base/etc/logrotate.conf
2024-01-29 19:13:24 [logrotate   ] including /etc/cont-logrotate.d
2024-01-29 19:13:24 [logrotate   ] reading config file nginx
2024-01-29 19:13:24 [logrotate   ] acquired lock on state file /config/xdg/state/logrotate/logrotate.status
2024-01-29 19:13:24 [logrotate   ] Reading state from file: /config/xdg/state/logrotate/logrotate.status
2024-01-29 19:13:24 [logrotate   ] Allocating hash table for state file, size 64 entries
2024-01-29 19:13:24 [logrotate   ] Creating new state
2024-01-29 19:13:24 [logrotate   ] Creating new state
2024-01-29 19:13:24 [logrotate   ] Handling 1 logs
2024-01-29 19:13:24 [logrotate   ] rotating pattern: /config/log/nginx/access.log /config/log/nginx/error.log  monthly (6 rotations)
2024-01-29 19:13:24 [logrotate   ] empty log files are not rotated, old logs are removed
2024-01-29 19:13:24 [logrotate   ] considering log /config/log/nginx/access.log
2024-01-29 19:13:24 [logrotate   ]   Now: 2024-01-29 19:13
2024-01-29 19:13:24 [logrotate   ]   Last rotated at 2024-01-29 00:00
2024-01-29 19:13:24 [logrotate   ]   log does not need rotating (log has been rotated at 2024-01-29 00:00, which is less than a month ago)
2024-01-29 19:13:24 [logrotate   ] considering log /config/log/nginx/error.log
2024-01-29 19:13:24 [logrotate   ]   Now: 2024-01-29 19:13
2024-01-29 19:13:24 [logrotate   ]   Last rotated at 2024-01-29 00:00
2024-01-29 19:13:24 [logrotate   ]   log does not need rotating (log has been rotated at 2024-01-29 00:00, which is less than a month ago)
2024-01-29 19:13:24 [logrotate   ] not running postrotate script, since no logs were rotated
2024-01-29 19:13:24 [xvnc        ] Mon Jan 29 19:13:24 2024
2024-01-29 19:13:24 [xvnc        ]  Config:      set rfbport(Int) to 5900
2024-01-29 19:13:24 [xvnc        ]  Config:      set UseIPv6(Bool) to no(0)
2024-01-29 19:13:24 [xvnc        ]  Config:      set rfbunixpath(String) to /tmp/vnc.sock
2024-01-29 19:13:24 [xvnc        ]  Config:      set rfbunixmode(Int) to 0660
2024-01-29 19:13:24 [xvnc        ]  Config:      set SecurityTypes(String) to None
2024-01-29 19:13:24 [xvnc        ]  Config:      set desktop(String) to JDownloader 2
2024-01-29 19:13:24 [xvnc        ] Xvnc TigerVNC 1.13.1 - built Dec 21 2023 00:55:16
2024-01-29 19:13:24 [xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
2024-01-29 19:13:24 [xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
2024-01-29 19:13:24 [xvnc        ] Underlying X server release 12014000
2024-01-29 19:13:24 [xvnc        ]  vncext:      VNC extension running!
2024-01-29 19:13:24 [xvnc        ]  Config:      set immutable AllowOverride
2024-01-29 19:13:24 [xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
2024-01-29 19:13:24 [xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
2024-01-29 19:13:24 [xvnc        ]  VNCServerST: creating single-threaded server JDownloader 2
2024-01-29 19:13:24 [xvnc        ]  vncext:      created VNC server for screen 0
2024-01-29 19:13:24 [supervisor  ] waiting for service 'xvnc' to be ready...
2024-01-29 19:13:24 [supervisor  ] starting service 'nginx'...
2024-01-29 19:13:24 [supervisor  ] started service 'nginx'.
2024-01-29 19:13:24 [nginx       ] Listening for HTTP connections on port 5800.
2024-01-29 19:13:25 [supervisor  ] waiting for service 'nginx' to be ready...
2024-01-29 19:13:25 [supervisor  ] starting service 'openbox'...
2024-01-29 19:13:25 [supervisor  ] started service 'openbox'.
2024-01-29 19:13:25 [xvnc        ] Mon Jan 29 19:13:25 2024
2024-01-29 19:13:25 [xvnc        ]  Selection:   Selection owner change for WM_S0
2024-01-29 19:13:25 [supervisor  ] waiting for service 'openbox' to be ready...
2024-01-29 19:13:25 [supervisor  ] starting service 'app'...
2024-01-29 19:13:25 [supervisor  ] started service 'app'.
2024-01-29 19:13:25 [app         ] starting JDownloader2...
2024-01-29 19:13:26 [supervisor  ] all services started.
2024-01-29 19:13:26 [supervisor  ] service 'logrotate' exited (with status 0).
2024-01-29 19:13:26 [supervisor  ] waiting termination of logger thread of service 'logrotate'...
2024-01-29 19:13:26 [supervisor  ] logger thread of service 'logrotate' successfully terminated.
2024-01-29 19:14:33 [xvnc        ] Mon Jan 29 19:14:33 2024
2024-01-29 19:14:33 [xvnc        ]  XserverDesktop: new client, sock 10
2024-01-29 19:14:33 [xvnc        ]  Connections: accepted: /tmp/vnc.sock
2024-01-29 19:14:33 [xvnc        ]  SConnection: reading protocol version
2024-01-29 19:14:33 [xvnc        ]  SConnection: Client needs protocol version 3.8
2024-01-29 19:14:33 [xvnc        ]  SConnection: processing security type message
2024-01-29 19:14:33 [xvnc        ]  SConnection: processing security type message
2024-01-29 19:14:33 [xvnc        ]  SConnection: Client requests security type None(1)
2024-01-29 19:14:33 [xvnc        ]  SConnection: processing security message
2024-01-29 19:14:33 [xvnc        ]  VNCServerST: starting desktop
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
2024-01-29 19:14:33 [xvnc        ]  SConnection: reading client initialisation
2024-01-29 19:14:33 [xvnc        ]  SConnection: reading client initialisation
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
2024-01-29 19:14:33 [xvnc        ]  SMsgHandler: Got client clipboard capabilities:
2024-01-29 19:14:33 [xvnc        ]  SMsgHandler:     Plain text (only notify)
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:  Got request for framebuffer resize to 1867x704
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:  1 screen(s)
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:               0 (0x00000000): 1867x704+0+0 (flags 0x00000000)
2024-01-29 19:14:33 [xvnc        ]  VNCSConnST:  
2024-01-29 19:14:33 [xvnc        ]  RandR:       Resizing screen framebuffer to 1867x704
2024-01-29 19:14:33 [xvnc        ]  RandR:       Temporarily disabling output 'VNC-0'
2024-01-29 19:14:33 [xvnc        ]  ComparingUpdateTracker: 0 pixels in / 0 pixels out
2024-01-29 19:14:33 [xvnc        ]  ComparingUpdateTracker: (1:-nan ratio)
2024-01-29 19:14:33 [xvnc        ]  RandR:       Reconfiguring new output 'VNC-0' to 1867x704+0+0
2024-01-29 19:14:38 [xvnc        ] Mon Jan 29 19:14:38 2024
2024-01-29 19:14:38 [xvnc        ]  Selection:   Selection owner change for PRIMARY
2024-01-29 19:14:38 [xvnc        ]  Selection:   Got clipboard notification, probing for formats
2024-01-29 19:14:38 [xvnc        ]  Selection:   Created selection window
2024-01-29 19:14:38 [xvnc        ]  Selection:   Requesting TARGETS for PRIMARY selection
2024-01-29 19:14:38 [xvnc        ]  Selection:   Selection notification for PRIMARY (target TARGETS, property
2024-01-29 19:14:38 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:38 [xvnc        ]  Selection:   Compatible format found, notifying clients
2024-01-29 19:14:38 [xvnc        ]  Selection:   Got request for local clipboard, re-probing formats
2024-01-29 19:14:38 [xvnc        ]  Selection:   Requesting TARGETS for PRIMARY selection
2024-01-29 19:14:38 [xvnc        ]  Selection:   Selection notification for PRIMARY (target TARGETS, property
2024-01-29 19:14:38 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:38 [xvnc        ]  Selection:   Requesting UTF8_STRING for PRIMARY selection
2024-01-29 19:14:38 [xvnc        ]  Selection:   Selection notification for PRIMARY (target UTF8_STRING, property
2024-01-29 19:14:38 [xvnc        ]               UTF8_STRING, type UTF8_STRING)
2024-01-29 19:14:38 [xvnc        ]  Selection:   Sending clipboard to clients (1 bytes)
2024-01-29 19:14:49 [xvnc        ] Mon Jan 29 19:14:49 2024
2024-01-29 19:14:49 [xvnc        ]  VNCSConnST:  Key pressed: 0xffe3 / 0x1d
2024-01-29 19:14:49 [xvnc        ]  Input:       keycode 37 down
2024-01-29 19:14:50 [xvnc        ] Mon Jan 29 19:14:50 2024
2024-01-29 19:14:50 [xvnc        ]  VNCSConnST:  Key pressed: 0x61 / 0x1e
2024-01-29 19:14:50 [xvnc        ]  Input:       keycode 38 down
2024-01-29 19:14:50 [xvnc        ]  Selection:   Local clipboard lost, notifying clients
2024-01-29 19:14:50 [xvnc        ]  Selection:   Selection owner change for PRIMARY
2024-01-29 19:14:50 [xvnc        ]  Selection:   Got clipboard notification, probing for formats
2024-01-29 19:14:50 [xvnc        ]  Selection:   Requesting TARGETS for PRIMARY selection
2024-01-29 19:14:50 [xvnc        ]  Selection:   Selection notification for PRIMARY (target TARGETS, property
2024-01-29 19:14:50 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:50 [xvnc        ]  Selection:   Compatible format found, notifying clients
2024-01-29 19:14:50 [xvnc        ]  Selection:   Got request for local clipboard, re-probing formats
2024-01-29 19:14:50 [xvnc        ]  Selection:   Requesting TARGETS for PRIMARY selection
2024-01-29 19:14:50 [xvnc        ]  Selection:   Selection notification for PRIMARY (target TARGETS, property
2024-01-29 19:14:50 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:50 [xvnc        ]  Selection:   Requesting UTF8_STRING for PRIMARY selection
2024-01-29 19:14:50 [xvnc        ]  Selection:   Selection notification for PRIMARY (target UTF8_STRING, property
2024-01-29 19:14:50 [xvnc        ]               UTF8_STRING, type UTF8_STRING)
2024-01-29 19:14:50 [xvnc        ]  Selection:   Sending clipboard to clients (115 bytes)
2024-01-29 19:14:50 [xvnc        ]  VNCSConnST:  Key released: 0x61 / 0x1e
2024-01-29 19:14:50 [xvnc        ]  Input:       keycode 38 up
2024-01-29 19:14:51 [xvnc        ] Mon Jan 29 19:14:51 2024
2024-01-29 19:14:51 [xvnc        ]  VNCSConnST:  Key pressed: 0x78 / 0x2d
2024-01-29 19:14:51 [xvnc        ]  Input:       keycode 53 down
2024-01-29 19:14:51 [xvnc        ]  Selection:   Selection owner change for CLIPBOARD
2024-01-29 19:14:51 [xvnc        ]  Selection:   Got clipboard notification, probing for formats
2024-01-29 19:14:51 [xvnc        ]  Selection:   Requesting TARGETS for CLIPBOARD selection
2024-01-29 19:14:51 [xvnc        ]  Selection:   Selection notification for CLIPBOARD (target TARGETS, property
2024-01-29 19:14:51 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:51 [xvnc        ]  Selection:   Compatible format found, notifying clients
2024-01-29 19:14:51 [xvnc        ]  Selection:   Got request for local clipboard, re-probing formats
2024-01-29 19:14:51 [xvnc        ]  Selection:   Requesting TARGETS for CLIPBOARD selection
2024-01-29 19:14:51 [xvnc        ]  Selection:   Selection notification for CLIPBOARD (target TARGETS, property
2024-01-29 19:14:51 [xvnc        ]               TARGETS, type ATOM)
2024-01-29 19:14:51 [xvnc        ]  Selection:   Requesting UTF8_STRING for CLIPBOARD selection
2024-01-29 19:14:51 [xvnc        ]  Selection:   Selection notification for CLIPBOARD (target UTF8_STRING,
2024-01-29 19:14:51 [xvnc        ]               property UTF8_STRING, type UTF8_STRING)
2024-01-29 19:14:51 [xvnc        ]  Selection:   Sending clipboard to clients (115 bytes)
2024-01-29 19:14:51 [xvnc        ]  VNCSConnST:  Key released: 0x78 / 0x2d
2024-01-29 19:14:51 [xvnc        ]  Input:       keycode 53 up
2024-01-29 19:14:51 [xvnc        ]  VNCSConnST:  Key released: 0xffe3 / 0x1d
2024-01-29 19:14:51 [xvnc        ]  Input:       keycode 37 up
2024-01-29 19:14:54 [xvnc        ] Mon Jan 29 19:14:54 2024
2024-01-29 19:14:54 [xvnc        ]  VNCSConnST:  Key pressed: 0xffe3 / 0x1d
2024-01-29 19:14:54 [xvnc        ]  Input:       keycode 37 down
2024-01-29 19:14:55 [xvnc        ] Mon Jan 29 19:14:55 2024
2024-01-29 19:14:55 [xvnc        ]  VNCSConnST:  Key pressed: 0x76 / 0x2f
2024-01-29 19:14:55 [xvnc        ]  Input:       keycode 55 down
2024-01-29 19:14:55 [xvnc        ]  VNCSConnST:  Key released: 0x76 / 0x2f
2024-01-29 19:14:55 [xvnc        ]  Input:       keycode 55 up
2024-01-29 19:14:55 [xvnc        ]  VNCSConnST:  Key released: 0xffe3 / 0x1d
2024-01-29 19:14:55 [xvnc        ]  Input:       keycode 37 up

Container inspect

[
    {
        "Id": "067b62e55c7326b3fcbbb4e770deccaf87df1ebbef04512d3e41ef2cf4ed11ff",
        "Created": "2024-01-29T17:38:22.092910701Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 72977,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-01-29T18:13:23.777798365Z",
            "FinishedAt": "2024-01-29T18:13:21.843306277Z"
        },
        "Image": "sha256:f7c3ba8c263bee09b433a3a00d171c5891d0c2bd9d1fe1950dcf507322bbda28",
        "ResolvConfPath": "/var/lib/docker/containers/fe89cdb5fcbfdbc92b565520948c0e40ebffa6c9d1f10061ea679f366364938a/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/fe89cdb5fcbfdbc92b565520948c0e40ebffa6c9d1f10061ea679f366364938a/hostname",
        "HostsPath": "/var/lib/docker/containers/fe89cdb5fcbfdbc92b565520948c0e40ebffa6c9d1f10061ea679f366364938a/hosts",
        "LogPath": "/var/lib/docker/containers/067b62e55c7326b3fcbbb4e770deccaf87df1ebbef04512d3e41ef2cf4ed11ff/067b62e55c7326b3fcbbb4e770deccaf87df1ebbef04512d3e41ef2cf4ed11ff-json.log",
        "Name": "/jdownloader",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/etc/localtime:/etc/localtime:ro",
                "/host_mnt/mnt/Omnislok/config/jdownloader:/config:rw",
                "/host_mnt/mnt/Omnislok/data/jdownloader:/output:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "container:fe89cdb5fcbfdbc92b565520948c0e40ebffa6c9d1f10061ea679f366364938a",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "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",
            "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,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "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",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/ed416caaee03e04414540b823bec488cd63abcd90f1246ea0d66d5281072bc7e-init/diff:/var/lib/docker/overlay2/63d5af97182da4f69d3b5c9664add407947d1252b0078b07014015ddbbbaef8b/diff:/var/lib/docker/overlay2/a7b56ce1838f077c18651b59122132a2f6616f50c03f486ba9e672f515310d3d/diff:/var/lib/docker/overlay2/8f76ad2b66693c7d7b5af62cc54a8fca3b84542e75cfacd8ecbf2cc90c5765ad/diff:/var/lib/docker/overlay2/4645f4878339e865ad1bf2fecc2bbaca34f77d20ac5f1075acbaabc246c87490/diff:/var/lib/docker/overlay2/a845a8be6d7e4ac0dfdf73d3807b480d75e55b5866e48b4a394e0f29cebad553/diff:/var/lib/docker/overlay2/5f9534ca4bed67b6ea871cdc2c428cd483bc0b6e2ec822fd7e587d3fc18ed719/diff:/var/lib/docker/overlay2/2a92e8a8c1951baf62b79e2fceabe570bce272174088e0a6ce31442677639a97/diff:/var/lib/docker/overlay2/a55b5903ac976aaac1b40021e8b3e3fefcbba208a5e2548e80e4bd68083791cf/diff:/var/lib/docker/overlay2/e68ad04bb7303f8d7ab7bbc825789a44e4ce885412ad4ebd3c72a08784940b90/diff:/var/lib/docker/overlay2/bca79c288830bdd15d8be88c6a2fb98d925a67446a972bfbcb7bab4e9be3fc7e/diff:/var/lib/docker/overlay2/01cfc5d1f6236f0ba8e293434fad2429e35102dd33aeed7e6c050a2825e2d00c/diff:/var/lib/docker/overlay2/26bd2c4371b91735fa6486548ac5fb11c861505c802415616fc9caf9c00dc4c2/diff:/var/lib/docker/overlay2/3ab42801484ed328a2aaf8ccf2d178f55002d3de8b7cf7b854b6c6ba9931eaa7/diff:/var/lib/docker/overlay2/4660155b5a453fa725c415a18c11ca74504bbf9cd9f5a2147a60b598600fcaf5/diff:/var/lib/docker/overlay2/0bb9391d8f5100f66a7f321d735c0ae3d12a76c56e97f07fb3af17b5143d8777/diff:/var/lib/docker/overlay2/f3cf1b0f2eda062a338ab601b7e62fb0c6da7451044752fee6dbd17528aceaba/diff:/var/lib/docker/overlay2/ba8b47ec6341a5a069aa69fcce182947f704cfd7716e361fc1fe0fe278a74e31/diff:/var/lib/docker/overlay2/12d32fa4a89e87d98c7a57236065b5a94528633f0e6583b1137aac9ee4d13812/diff:/var/lib/docker/overlay2/9d5602a4e86b454bda559f0b6462c8422bebf09c7c600e37e51fc16b8c605632/diff:/var/lib/docker/overlay2/9ba108dff43c2669849e9f183d471f22bb730f9c95c18358ce542aee6f659111/diff:/var/lib/docker/overlay2/fce1ad633c3243390ea805182befbcc31827a44ce85ebd1c7821f409eb3c0955/diff:/var/lib/docker/overlay2/bcb6e11d30d21a2b403190d0a577f7b615272362fd99a923369b2562b4e93317/diff:/var/lib/docker/overlay2/77e681ce79cb7676e1d98509f8f0759ed85f1e9ee3effcad37bd30afb2aad0f7/diff:/var/lib/docker/overlay2/77b664a91fcedf68caf2e9ec384c15e6fccd881ed107fe5a744ab486994964e5/diff:/var/lib/docker/overlay2/ca294b650e56711e31b3910f9b9d5f31cc5dfa8503b5da9fef812ac7e5c843c2/diff:/var/lib/docker/overlay2/365d227cd56a5aa5301876254a5cd6b48af429db3f5196901a01509d9eeebc87/diff:/var/lib/docker/overlay2/b0035f0ead5d7236f851319f4c206383d0cc756046cf6e0a6a3d32c1a9daa984/diff:/var/lib/docker/overlay2/fb69e0a109d1e37edf4361bc3654009e2700290c9c565b960dcb1a47ffadeb29/diff:/var/lib/docker/overlay2/41aae69e9f280f58c2571f502fe544084a17e6fbd07b85963e97a888b33b3730/diff:/var/lib/docker/overlay2/b620ef7ddac0cfac73a84710b5926530f6f67166766b7248dcc5ffae64c8f2fe/diff:/var/lib/docker/overlay2/ad8ada870696618bfb61f6af1d52b8108bb000c86583a025f4ca96f9d080c16d/diff:/var/lib/docker/overlay2/63304827ec5f2abbcd70723233a3ac27f0c4a2942715c5252c6a92a9c1eb20dc/diff:/var/lib/docker/overlay2/325d4c68e45cac53280db2559ffe46502cf83d87ab201331c609359da46bbbab/diff:/var/lib/docker/overlay2/2ccb73c0a7dba4d25aee7e237d3a37de5a8a90f44d2b4b8965d11c0b254bc10a/diff:/var/lib/docker/overlay2/5c6364ac4030bdd0c5a1ab114f83515d2436816079046a69da93feb63f8b79d2/diff",
                "MergedDir": "/var/lib/docker/overlay2/ed416caaee03e04414540b823bec488cd63abcd90f1246ea0d66d5281072bc7e/merged",
                "UpperDir": "/var/lib/docker/overlay2/ed416caaee03e04414540b823bec488cd63abcd90f1246ea0d66d5281072bc7e/diff",
                "WorkDir": "/var/lib/docker/overlay2/ed416caaee03e04414540b823bec488cd63abcd90f1246ea0d66d5281072bc7e/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/etc/localtime",
                "Destination": "/etc/localtime",
                "Mode": "ro",
                "RW": false,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/host_mnt/mnt/Omnislok/config/jdownloader",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/host_mnt/mnt/Omnislok/data/jdownloader",
                "Destination": "/output",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "fe89cdb5fcbf",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "3129/tcp": {},
                "5800/tcp": {},
                "5900/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PACKAGES_MIRROR=https://alpine.mirror.wearetriple.com/",
                "CONTAINER_DEBUG=1",
                "TZ=Europe/Amsterdam",
                "USER_ID=0",
                "GROUP_ID=0",
                "DARK_MODE=1",
                "INSTALL_PACKAGES=curl",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/base/sbin:/opt/base/bin",
                "ENV=/root/.docker_rc",
                "SUP_GROUP_IDS=",
                "UMASK=0022",
                "LANG=en_US.UTF-8",
                "KEEP_APP_RUNNING=0",
                "APP_NICENESS=0",
                "DISPLAY_WIDTH=1920",
                "DISPLAY_HEIGHT=1080",
                "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",
                "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": {
                "com.docker.compose.config-hash": "30c3f91f4ba30ca39f999e9aad017069f3a2d9d966d7c2e2d38f92f460ff77a0",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "gluetun_volatile:service_started:true",
                "com.docker.compose.image": "sha256:f7c3ba8c263bee09b433a3a00d171c5891d0c2bd9d1fe1950dcf507322bbda28",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "media",
                "com.docker.compose.project.config_files": "/mnt/Omnislok/vpn.yaml,/mnt/Omnislok/proxy.yaml,/mnt/Omnislok/request.yaml,/mnt/Omnislok/find.yaml,/mnt/Omnislok/download.yaml,/mnt/Omnislok/watch.yaml",
                "com.docker.compose.project.working_dir": "/mnt/Omnislok",
                "com.docker.compose.replace": "3895387cedf04edfa1c036d2c29c4fbe50f469980ceea152f92948437785469e",
                "com.docker.compose.service": "jdownloader",
                "com.docker.compose.version": "2.23.3",
                "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.01.1"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {}
        }
    }
]

Anything else?

No response

SylvainDx commented 7 months ago

Hi, I'm facing the same issue.

I manage to make it working, by creating a reco.sh file with

curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"stopped"}' curl -X PUT --fail --silent --show-error http://localhost:8000/v1/openvpn/status -H "Content-Type: application/json" -d '{"status":"running"}'

do a chmod 755 thru docker exec

and inside JDownloader use external script with /bin/sh interpreter

jlesage commented 7 months ago

Yeah, that seems to be the way to go. See https://github.com/jlesage/docker-jdownloader-2/issues/177#issuecomment-1811082726

koninginsamira commented 7 months ago

Thank you so much! It works like a charm now :)