jaymoulin / docker-jdownloader

JDownloader 2 Docker Image (Multiarch) - 50M+ Downloads
https://brands.jaymoulin.me/me/docker-jdownloader
MIT License
180 stars 36 forks source link

Extensions cannot be installed because of permissions #116

Closed d3f113 closed 2 years ago

d3f113 commented 2 years ago

If you go to myJDownloader and try to install an extension like the eventscripter, it just shows some kind of progress, but nothing happens. Refreshing the site shows that. This can be changed, if you change the owner of the extensions folder, like with the following command. chown 1026:users /opt/JDownloader/extensions

I don’t know, where this user comes from, but it has now the same permissions like the Downloads and cfg folder. Perhaps something like that could be added to one of the scripts, so you don’t have to do that manually in the docker container

b2un0 commented 2 years ago

just mount also the folder to keep them

as example

version: "3.9"

services:
  jdownloader:
    image: jaymoulin/jdownloader:latest
    container_name: jdownloader
    network_mode: bridge
    restart: unless-stopped
    user: 1000:1000
    deploy:
      resources:
        limits:
          memory: "512MB"
          cpus: "1.0"
    ports:
      - "3129:3129/tcp"
      - "9666:9666/tcp"
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /mnt/user/apps/jdownloader/config:/opt/JDownloader/app/cfg
      - /mnt/user/apps/jdownloader/logs:/opt/JDownloader/app/logs
      - /mnt/user/apps/jdownloader/extensions:/opt/JDownloader/app/extensions
      - /mnt/user/downloads/ddl:/opt/JDownloader/Downloads
jaymoulin commented 2 years ago

Thank you @d3f113 for your contribution, I'll have a look at this.