jlesage / docker-jdownloader-2

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

myjdownloader doesn't communicate with jdownloader container #198

Closed truthsword closed 5 months ago

truthsword commented 6 months ago

Current Behavior

I run jdownloader container via the gluetun docker container, to keep my exit with a VPN IP. Recently I've added the mydownloader extension to Firefox. Within the gluetun docker compose file I have these ports prescribed for jdownloader.

 ports:
      - 5800:5800 # jdownloader2
      - 3129:3129 # myjdownloader
      - 9666:9666 # jdownloader2 clickNload

Within the jdownloader container docker compose I assign the network network_mode: "container:gluetun"

Both the extension and container show connected to my myjdownloader account. When the extension opens the myjdownloader webpage, I see the download history from my jdownloader container.

I've also added the Custom Device IPs and Direct Connection Mode settings.

When I copy a link, the extension window opens. I select to download, and a large checkmark appears, confirming the link is sent. Yet in the jdownloader2 UI, there is no new activity.

I installed ClickNLoad thinking it might play a role, but nothing seems to add download links to the main jdownloader container.

What have I overlooked? Thank you.

Expected Behavior

Link passes to jdownloader container

Steps To Reproduce

Highlight link Right-click, send to jdownloader extension Confirm download on extension popup

Environment

Container creation

version: "3"
services:
  jdownloader-2:
    image: jlesage/jdownloader-2
    container_name: jdownloader2
    environment:
      - USER_ID=1000
      - GROUP_ID=1000
      - DISPLAY_WIDTH=1280
      - DISPLAY_HEIGHT=768
    volumes:
      - /home/docker/jdownloader/config:/config
      - /mnt/downloads:/output
    network_mode: "container:gluetun"
    restart: unless-stopped

Container log

jdownloader2  | [init        ] container is starting...
jdownloader2  | [cont-env    ] loading container environment variables...
jdownloader2  | [cont-env    ] APP_NAME: loading...
jdownloader2  | [cont-env    ] DISPLAY: executing...
jdownloader2  | [cont-env    ] DISPLAY: terminated successfully.
jdownloader2  | [cont-env    ] DISPLAY: loading...
jdownloader2  | [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
jdownloader2  | [cont-env    ] DOCKER_IMAGE_VERSION: loading...
jdownloader2  | [cont-env    ] GTK2_RC_FILES: executing...
jdownloader2  | [cont-env    ] GTK2_RC_FILES: terminated successfully.
jdownloader2  | [cont-env    ] GTK2_RC_FILES: loading...
jdownloader2  | [cont-env    ] GTK_THEME: executing...
jdownloader2  | [cont-env    ] GTK_THEME: terminated successfully.
jdownloader2  | [cont-env    ] GTK_THEME: loading...
jdownloader2  | [cont-env    ] HOME: loading...
jdownloader2  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: executing...
jdownloader2  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: terminated successfully.
jdownloader2  | [cont-env    ] INSTALL_PACKAGES_INTERNAL: loading...
jdownloader2  | [cont-env    ] QT_STYLE_OVERRIDE: executing...
jdownloader2  | [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
jdownloader2  | [cont-env    ] QT_STYLE_OVERRIDE: loading...
jdownloader2  | [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
jdownloader2  | [cont-env    ] XDG_CACHE_HOME: loading...
jdownloader2  | [cont-env    ] XDG_CONFIG_HOME: loading...
jdownloader2  | [cont-env    ] XDG_DATA_HOME: loading...
jdownloader2  | [cont-env    ] XDG_RUNTIME_DIR: loading...
jdownloader2  | [cont-env    ] XDG_STATE_HOME: loading...
jdownloader2  | [cont-env    ] container environment variables initialized.
jdownloader2  | [cont-secrets] loading container secrets...
jdownloader2  | [cont-secrets] container secrets loaded.
jdownloader2  | [cont-init   ] executing container initialization scripts...
jdownloader2  | [cont-init   ] 10-certs.sh: executing...
jdownloader2  | [cont-init   ] 10-certs.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-check-app-niceness.sh: executing...
jdownloader2  | [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-clean-logmonitor-states.sh: executing...
jdownloader2  | [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-clean-tmp-dir.sh: executing...
jdownloader2  | [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
jdownloader2  | [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-init-users.sh: executing...
jdownloader2  | [cont-init   ] 10-init-users.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-nginx.sh: executing...
jdownloader2  | [cont-init   ] 10-nginx.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-openbox.sh: executing...
jdownloader2  | [cont-init   ] 10-openbox.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-pkgs-mirror.sh: executing...
jdownloader2  | [cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
jdownloader2  | [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-vnc-password.sh: executing...
jdownloader2  | [cont-init   ] 10-vnc-password.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-web-data.sh: executing...
jdownloader2  | [cont-init   ] 10-web-data.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-x11-unix.sh: executing...
jdownloader2  | [cont-init   ] 10-x11-unix.sh: terminated successfully.
jdownloader2  | [cont-init   ] 10-xdg-runtime-dir.sh: executing...
jdownloader2  | [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
jdownloader2  | [cont-init   ] 15-cjk-font.sh: executing...
jdownloader2  | [cont-init   ] 15-cjk-font.sh: terminated successfully.
jdownloader2  | [cont-init   ] 15-install-pkgs.sh: executing...
jdownloader2  | [cont-init   ] 15-install-pkgs.sh: terminated successfully.
jdownloader2  | [cont-init   ] 55-jdownloader2.sh: executing...
jdownloader2  | [cont-init   ] 55-jdownloader2.sh: terminated successfully.
jdownloader2  | [cont-init   ] 85-take-config-ownership.sh: executing...
jdownloader2  | [cont-init   ] 85-take-config-ownership.sh: terminated successfully.
jdownloader2  | [cont-init   ] 89-info.sh: executing...
jdownloader2  |     ╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
jdownloader2  |     │                                                                      │
jdownloader2  |     │ Application:           JDownloader 2                                 │
jdownloader2  |     │ Application Version:   n/a                                           │
jdownloader2  |     │ Docker Image Version:  24.01.1                                       │
jdownloader2  |     │ Docker Image Platform: linux/amd64                                   │
jdownloader2  |     │                                                                      │
jdownloader2  |     ╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
jdownloader2  | [cont-init   ] 89-info.sh: terminated successfully.
jdownloader2  | [cont-init   ] all container initialization scripts executed.
jdownloader2  | [init        ] giving control to process supervisor.
jdownloader2  | [supervisor  ] loading services...
jdownloader2  | [supervisor  ] loading service 'default'...
jdownloader2  | [supervisor  ] loading service 'logmonitor'...
jdownloader2  | [supervisor  ] service 'logmonitor' is disabled.
jdownloader2  | [supervisor  ] loading service 'app'...
jdownloader2  | [supervisor  ] loading service 'gui'...
jdownloader2  | [supervisor  ] loading service 'openbox'...
jdownloader2  | [supervisor  ] loading service 'xvnc'...
jdownloader2  | [supervisor  ] loading service 'nginx'...
jdownloader2  | [supervisor  ] loading service 'certsmonitor'...
jdownloader2  | [supervisor  ] service 'certsmonitor' is disabled.
jdownloader2  | [supervisor  ] loading service 'logrotate'...
jdownloader2  | [supervisor  ] all services loaded.
jdownloader2  | [supervisor  ] starting services...
jdownloader2  | [supervisor  ] starting service 'xvnc'...
jdownloader2  | [xvnc        ] Xvnc TigerVNC 1.13.1 - built Dec 21 2023 00:55:16
jdownloader2  | [xvnc        ] Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
jdownloader2  | [xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
jdownloader2  | [xvnc        ] Underlying X server release 12014000
jdownloader2  | [xvnc        ] Fri Mar  1 18:02:26 2024
jdownloader2  | [xvnc        ]  vncext:      VNC extension running!
jdownloader2  | [xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
jdownloader2  | [xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
jdownloader2  | [xvnc        ]  vncext:      created VNC server for screen 0
jdownloader2  | [supervisor  ] starting service 'openbox'...
jdownloader2  | [supervisor  ] starting service 'nginx'...
jdownloader2  | [nginx       ] Listening for HTTP connections on port 5800.
jdownloader2  | [supervisor  ] starting service 'app'...
jdownloader2  | [supervisor  ] all services started.
jdownloader2  | [xvnc        ] Fri Mar  1 18:02:52 2024
jdownloader2  | [xvnc        ]  Connections: accepted: /tmp/vnc.sock
jdownloader2  | [xvnc        ]  SConnection: Client needs protocol version 3.8
jdownloader2  | [xvnc        ]  SConnection: Client requests security type None(1)
jdownloader2  | [xvnc        ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
jdownloader2  | [xvnc        ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888

Container inspect

No response

Anything else?

No response

jlesage commented 6 months ago

Quick questions:

truthsword commented 6 months ago

Problem exists without direct connection. I spun up a new container...


version: "3"
services:
  jdownloader-2:
    image: jlesage/jdownloader-2
    container_name: jd2
    environment:
      - USER_ID=1000
      - GROUP_ID=1000
      - DISPLAY_WIDTH=1280
      - DISPLAY_HEIGHT=768
    ports:
      - 5801:5800
      - 3130:3129/tcp # MyJDownloader
      - 5901:5900/tcp # VNC client access
    volumes:
      - /home/docker/jdtest/config:/config
      - /mnt/syno/downloads:/output
    restart: unless-stopped
---
On YouTube I clicked a share link and the COPY button. The browser extension opened.

![](https://imgur.com/dQxtbo9.png)

I selected the download button, JDownloader@Docker. and got a green checkmark from the extension. But nothing was passed to the Jdownloader screen. 

When I use the extension to launch to the myjdownloader web page, it shows the containers downloaded files:

![](https://imgur.com/B2hRowf.png)

So it seems that everything is "connected", but the download link isn't be passed to the container.
jlesage commented 5 months ago

I just tried on my side and it seems to work for me. From YouTube, I right click on the page and select Download with JDownloader. Same as you, the extension opened, clicked the download button and got the green checkmark. From the container, I see the download has been added under LinkGrabber tab.

truthsword commented 5 months ago

Thanks for checking. I need to check whether another extension interfering here (I run the browser through a proxy). If no success, I'll leave it be, as it's not a “must have” feature for me, but a “convenience”. Accordingly, I will close this issue.

2t9z16yo commented 1 month ago

@truthsword did you find a solution for this issue or did you close it because you dont care about the myjdownloader feature? i'm running into the same issue!

"When I copy a link, the extension window opens. I select to download, and a large checkmark appears, confirming the link is sent. Yet in the jdownloader2 UI, there is no new activity."

so far i've tried completely reinstalling, tried it with and without direct connection. my jdownloader instance is showing up on the my.jownloader site and in the jdownloader settings, i see the myjd connection successful. but no links show up in the link grabber

truthsword commented 1 month ago

I gave up. I continue to manually paste links through the clipboard.

2t9z16yo commented 1 month ago

thanks will open up a new issue then. this is definitely an issue!