Jump to content

[Support] manuel-rw Docker Support thread


manrw

Recommended Posts

  • 2 weeks later...
On 12/11/2023 at 2:13 PM, VelcroBP said:

I'm not finding any info in either documentation regarding an existing configuration option for permissions or how to add them to the template. I'm probably overlooking it. 

 

Did you have any luck getting permissions working?

 

I tried adding --user 99:100 as a post argument, and it's still not working.

 

I have to reset permissions on my downloads folder before other containers can interract with the files.

 

It makes sharing/contributing next to impossible, as well.

Edited by nmkaufman
Link to comment
59 minutes ago, nmkaufman said:

 

Did you have any luck getting permissions working?

 

I tried adding --user 99:100 as a post argument, and it's still not working.

 

I have to reset permissions on my downloads folder before other containers can interract with the files.

 

It makes sharing/contributing next to impossible, as well.


Hi,
I'd like to emphasize that I'm not the image author but only created the template.
This means I generally can't help with any modifications that do not exist in my default template that I provide.

That being said, I think you have multiple options to fix the container permissions:

  • Ensure that the directories are owned by the docker user. This is usually "nobody". You can also add this user to a group on your host machine and permit write & read to this user. The application shouldn't need execute.
  • It seems that the container runs on root via default: https://github.com/slskd/slskd/blob/master/docs/docker.md . You could ensure that root can write & read on these directories.
  • In the worst case, you could permit all users to write & read. This is considered bad practice and is not recommended. However, it might not be too bad if no parts of your server are exposed.

If you still have trouble, I would suggest reaching out to the author of slskd. Keep in mind that they usually don't know "Unraid" or other distributions and they expect you to provide the docker run command (you can obtain this from Unraid). I hope this helps.

  • Like 1
Link to comment
18 hours ago, manrw said:


Hi,
I'd like to emphasize that I'm not the image author but only created the template.
This means I generally can't help with any modifications that do not exist in my default template that I provide.

That being said, I think you have multiple options to fix the container permissions:

  • Ensure that the directories are owned by the docker user. This is usually "nobody". You can also add this user to a group on your host machine and permit write & read to this user. The application shouldn't need execute.
  • It seems that the container runs on root via default: https://github.com/slskd/slskd/blob/master/docs/docker.md . You could ensure that root can write & read on these directories.
  • In the worst case, you could permit all users to write & read. This is considered bad practice and is not recommended. However, it might not be too bad if no parts of your server are exposed.

If you still have trouble, I would suggest reaching out to the author of slskd. Keep in mind that they usually don't know "Unraid" or other distributions and they expect you to provide the docker run command (you can obtain this from Unraid). I hope this helps.

 

I will play around with it, this weekend.

 

I believe the problem is that it's creating files, owned by ROOT, while other containers use NOBODY, by default.

 

It's not setting permissions that allow other users to access the files.

 

The easiest solution would be to set the UMASK, but I tried passing a UMASK environmental variable to the container, and it didn't seem to work. I did see a reddit thread where someone claimed this worked, though, so I'm going to further experiment.

Edited by nmkaufman
Link to comment
17 minutes ago, nmkaufman said:

 

I will play around with it, this weekend.

 

I believe the problem is that it's creating files, owned by ROOT, while other containers use NOBODY, by default.

 

It's not setting permissions that allow other users to access the files.

 

The easiest solution would be to set the UMASK, but I tried passing a UMASK environmental variable to the container, and it didn't seem to work. I did see a reddit thread where someone claimed this worked, though, so I'm going to further experiment.

Sounds good 👍.

If you still have any trouble after that I would suggest that you open an slskd issue.

  • Like 1
Link to comment
  • 2 weeks later...
On 3/17/2024 at 6:21 AM, Maitresinh said:
 shares:
  - directories: "/musique"

is working fine. Thanks

 

That's all you put in your config.yml and it works???  I've been messing with this for days and still get the error:

 

Failed to scan share /Media/Music: Could not find a part of the path '/Media/Music'

 

I've tried it all the way from /mnt/user/Media/Music and still get the same error no matter what configuration I use.  Your full path is /musique and that's all???  You didnt' add some PATH to the original docker container or anything like that?  Just edited the YML?

Edited by CoZ
Link to comment
On 3/2/2024 at 5:06 PM, manrw said:

Please note that you must mount your directories to inside the container using a path mode (prefer read-only if possible). Then reference this path using the config.

 

This might be my issue.  Why does the docker container template not have those PATHs "built into" the template?  Should the template not have a blank entry for Downloads and Incomplete and Music folder that the user than fills in like other docker templates???

Link to comment
  • 4 weeks later...

Dashdot should not need any persistence on the file system. The default set-up should work. Can you explain why you want to mount?

If you want to mount the container, you can do this by editing the container.

Link to comment
Posted (edited)
On 5/4/2024 at 5:51 PM, manrw said:

Dashdot should not need any persistence on the file system. The default set-up should work. Can you explain why you want to mount?

If you want to mount the container, you can do this by editing the container.

 on first run, it show no mount found but other can have drive stats. i try find any source how to mount a drive and there no documentation to add the stogare, and yesterday found other had same issue with me https://github.com/MauriceNino/dashdot/issues/1046

Edited by Ellissss
Link to comment
  • 3 weeks later...
On 3/27/2024 at 10:10 AM, nmkaufman said:

 

I will play around with it, this weekend.

 

I believe the problem is that it's creating files, owned by ROOT, while other containers use NOBODY, by default.

 

It's not setting permissions that allow other users to access the files.

 

The easiest solution would be to set the UMASK, but I tried passing a UMASK environmental variable to the container, and it didn't seem to work. I did see a reddit thread where someone claimed this worked, though, so I'm going to further experiment.

Did you ever figured this out?  Having the same issue when it comes to Lidarr.

Link to comment
6 hours ago, EC28 said:

Looks like he's getting ready to solve the issue further.  Once we can set the files to 777 we should be good, right?

 

https://github.com/slskd/slskd/compare/79cd6c0033631b33e9508b7c10e48b9edfafe21d...4f50d184c8923d975e5930a66a6385683823ef77


Hi, you can add the user flag in the "Extra argugments" when editing the docker container.
You may need to activate the advanced mode if you do not see this field.
Please do not ask the image authors for Unraid specific questions, because they usually will not know how Unraid works.

Setting 777 will work but is strongly not recommended, because it will enable anyone on the machine to write, read, delete and execute these specific files. This is considered to be dangerous because this could be used in a malicious way and is therefore considered bad practice.

  • Thanks 1
Link to comment
1 minute ago, EC28 said:

How would I format the user flag in the field?  Currently I have the routing through the bittorrent container for VPN use.


Just ensure to put a space between options like you do on Linux commands:

 

--optionA valueA --optionB valueB

In your case, that would probably be something along the lines of --network mycontainer --user ???:???

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...