-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid download directory #27
Comments
Could you check the folder attributes on you NAS ( |
Hi, Thanks for your answer. Below the result of both commands:
Kind regards |
The attributes are from within the container, right? Please print them from your host volume. In any case, there is obviously a problem with the attributes. It should be |
when I chown the directory to 1000, downloader is working as expected - but the permission is changed on the host system, not solely within the container. This does not feel like a final solution^^ |
Had the same problem, setting uid and gid to 0 was the solution. It looks like the mounted volumes have root/root permissions but by default jd2 is run as jdownloader user so it has no access to cfg and downloads folders. |
It's not a solution. The problem is when you download with the root user (uid/gid 0), your files will be written as root and you can't edit the files or move, because your "normal" user is not a "root" user. For me in OMV 4 it works with the default UID 1000 / GID 100 because my default user has that UID/GID. Check your UID/GID with "id username" and chmod the mounted cfg folder. |
hi I got the same problem oot@plusminus-jdownloader2-headless1:/# ls -la |
Is this an issue that is still being worked on? In the current state the container is broken and not usable. |
It has no issue reaching the config dir as it lives in /opt/JDownloader/ which has the proper owner/permissions for the "jdownloader" user.
The problem lies in the fact that the "Downloads" directory lives at /root/Downloads/ which in itself has the proper permissions on it. By default no user should have access to root's files so /root/ has pretty restrictive permissions. Specifically that is has a mode of "700" to only allow the user with uid "0" to read, write or execute under that dir.
If the image build is changed to create the Downloads directory as /opt/JDownloader/Downloads, there should be no issue. That should only require adding a line to the RUN command in the Dockerfile.
Then just change the "org.jdownloader.settings.GeneralSettings.json" file to point to the new directory. Either by editing it manually/GUI or doing a search and replace in the Dockerfile or entrypoint.sh, etc/
Could also put it in a script to run at start since the "jdownloader" user has sufficient permissions to both create the directory as well as edit the config file. Of course, if you want to just be down and dirty cause you need some instant gratification, you can always modify the permissions at start. If you run a simple
Hopefully this is helpful and sorry for being so long winded. In hindsight, I probably could've cloned, modfied and done a PR in less lines...LoLz -Ronan |
Thank you for your input. As I'm currently moving, my server is offline atm. I'll have a look into it. |
DL folder is now changed per default, but the instructions in readme still say to mount /downloads. |
Is this not fixed? Still getting the invalid directory message. Container is created with a PUID (1034), that has read/write permissions for the download directory. But Jdownloader is running with a PUID=1000. |
What’s your default Download path and how did you start the container? I still haven’t gotten to making it foolproof again. |
My bad. I created the container with „PUID“ instead of „UID“. I an an idiot 😬 |
@MoshiMoshi0 youre right. Thank you very much |
Hi,
Since a few releases (:latest) an error is returned for each download: "Invalid download directory".
I use Docker on Synology DS916+.
Thanks in advance and kind regards.
The text was updated successfully, but these errors were encountered: