Lost trying to sort permissions for SickChill / qBittorrent on TrueNAS

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
I am lost. I am trying to get my SickChill and qBittorrent to play nice, but I keep getting "File is locked for reading/writing" errors. I know it's a permissions issue, and I have tried to dig into old posts and fix it, but it seems things have changed slightly and I can't figure this out. I am a bit of a Linux noob so I struggle sometimes when people use shorthand.

I have tried to set up users, and groups, and chown folders and groups, but clearly something still isn't set correctly. I have deleted them and reinstalled the jails with their default settings.

Is there a current up to date guide somewhere, or can someone help me? I had this working before on FreeNAS until something broke and I decided to do a complete clean install and updated to TrueNAS.

I added user "sickchill" 1001 and group Sickchill 1001, secondary group media, builtin, and qbittorrent. I added the "media" folder in the Directories and Permissions, and gave full R/W/E.
Hw7wh4d.png

I added user "qbittorrent" 850 and group qBittorrent 850, secondary group media, builtin, and sickchill. Also added media folder with R/W/E.
zNqZ9Pq.png

I added user "share" with the ID 1000 and added it to group "wheel, Sickchill, and qBittorrent" for use on PC to manage files. added same folder and permissions.
Z1jjvfP.png


7ogve7N.png



I added mounting points in the same place for both jails.
xAXDoas.png

KhaH4Jc.png




I am at a loss.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
users in a jail must have matching usernames AND IDs to play nice with the host and other jails. if the usernames match but the ID's don't, it will barf.
based on this configuration, you would need to have sickchill user in the sickchill jail with the userID 1001, and the qbittorrent user in the qbit jail with the userID 850
if that doesn't help, or is already done, I don't see enough info here for me to have any other ideas.
you also don't have your hardware listed that I can see, which is a general requirement of the Forum Rules. not putting that often reduces the amount of people willing to reply dramatically.
 

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
Oops, I forgot to add my HW to my Sig. It's done now, thanks.

As for the names, I believe I did them right based on the /etc/passwd file?
1611562172407.png

1611562208980.png


This is where I start to get confused and start messing with things I shouldn't be because I don't know what I am doing.

As for not enough info, is there anything else I should be posting?
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
your permissions look right. you say you know this is a permissions issue, but are you sure? how do you know?
afaik usually file locked is because something is accessing the file and locked it.


or. wait. hang on. why have you set these directories as the users home directories? that's part of what's missing, what are the permissions on the actual media/qbit media/sickchill folders/datasets?
these screenshots only indicate what group the users are part of, nothing about what permissions are on the folders themselves. the home directories generally should remain as /nonexistant (or whatever the default is)
 

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
Oh, so the Directories and Permissions when I create the user should just stay as default?
1611583996448.png


Like this? Should I remove the users and remake them with the default settings?
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
well, it depends on your exact goal, but from what I can tell, yes. it looks like you just want to have these users able to write to datasets under media, so since you have the users aligned on the host and jails, it should just be a matter of going to the datasets under storage, and giving the users the desired permissions.
the easiest would just be to give all these users/groups full access to media and everything under it, at least long enough to get everything working, and then restrict access, if you so wish, down to the media/bittorrent etc level.
the OS generally expects only that user will ever use the home director, setting these locations as user home directories could very well cause unexpected behavior, particularly with jails involved.
 

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
I am unable to find "datasets" under storage.
1611679918730.png


Is it in pools? If so, I can't see my media folder from there, only the iocage folder. I have seen several other suggestions say the same thing, but I am unable to find where to do this at.
 

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
I just figured out how to make a new dataset, so doing that and moving files and seeing if it works.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
in my signature are links with tons of core info for freenas. you might wanna spend some time reading them. zfs is massively useful, but has no training wheels. it can be really easy to configure something that looks fine while actually being precarious or silently causing problems - freenas tries to reduce these or make them hard to do accidentally, but they still exist.
 

Eckx

Cadet
Joined
Jan 6, 2021
Messages
6
Thank you for pointing me to the datasets! It's working now. I was just missing 1 step of creating the dataset I needed to change permissions on, which really was probably more me overthinking than anything else.

Yeah, I have dug into a lot of info, but the problem I have is if I get too much input at once, I jumble it all and fuck things up. Like when I accidentally Chowned something instead of chmod and I had to reinstall the entire OS because it wouldn't boot anymore. "

Thank you so much for your help!
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
Top