#1
|
|||
|
|||
Ubuntu Snap - Unable to write on path but permissions look good
Hello JDownloader support, I’ve been checking similar issues on the forum for a couple of days but I’m not solving my issue.
I’ve installed JDownloader2 on my Ubuntu server: Code:
Operating SystemLinux (LINUX 64Bit) (amd64 64Bit) Java11.0.8+10-post-Ubuntu-0ubuntu118.04.1 (64Bit) (headless) UbuntuOpenJDK 64-Bit Server VM Code:
[Unit] Description=JDownloader2 Headless After=network.target [Service] Type=simple ExecStart=/snap/bin/jdownloader2.jdownloader PIDFile=/home/jd/JDownloader.pid RemainAfterExit=yes User=jd Group=jd [Install] WantedBy=multi-user.target Code:
# groups jd jd : jd downloaders But when I try to download something I get an “Invalid download directory” message. I know it has something to do with permissions, but if I log in with that “jd” user I can create files/directories on that path. I’ve checked the permissions for the complete path, and it should work. :outch: If I change the default download path to "/home/jd/“ it works. Can that be something related to the “snap” version of “JDownloader”? Any idea on how to fix the permissions? Is there any command I can run to help you find the issue? This is my log id: jdlog://6740525302851 Thanks for the support and the excellent product. best, Cptnniv |
#2
|
||||
|
||||
I haven't any experience with snap port but typically JDownloader has all its own files in its own install path and not separated into system paths. but i guess thats just another start script located in that path?
shouldn't your config be more like Code:
... User=jd Group="jd downloaders"
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
|||
|
|||
Quote:
I tested it launching the service with the root user and got the same issue, but the worst is that I created again a "jd" user with homedir "/mnt/2TB/jd" and I couldn't even launch the setup, as the snap hadn't permissions for creating the "/mnt/2TB/jd/snap" directory. Sounds like the JDownloader snap doesnt work on non root mounted drives, so I had finally to uninstall that ubuntu snap and install JDownloader2 on Ubuntu 20.04 using the .sh installer from the web. Thanks for the support. |
#4
|
||||
|
||||
sorry I assumed it was a single group, just with a space in its name hence the quotation marks.
most welcome. at least your under way!
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#5
|
||||
|
||||
The snap package restricts access to certain directories only. Access to any other location will result in errors.
If you want access to other locations, you have to modify/update the snap configuration manually. This is out of reach of JDownloader. check out snapcraft.io/docs/personal-files-interface The snap package is 3rd party package and thus we can't help with that.
__________________
JD-Dev & Server-Admin |
#6
|
||||
|
||||
You can also just install manually without snap, see
https://support.jdownloader.org/Know...bedded-devices
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Quote:
Code:
sudo snap connect jdownloader2:removable-media :removable-media |
#8
|
||||
|
||||
@sluk: So with this command line it's possible to change snap package configuration to access all locations or jut removable-media (usb)?
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|