qBit Jail Directory Mapping Questions

Other platforms, generic questions.
Post Reply
eewiz

qBit Jail Directory Mapping Questions

Post by eewiz »

Truenas 12.0-U6
I created a dataset named bt.
I SMB shared it.
I copied a text file named test.txt to this share from a windows box. That worked.
After I got qBit installed in it's jail I went to mapping.
In the following screen shot you can see the mapping of the dataset and qBit's working directory from jail.
Mapping
Mapping
p4.jpg (17.86 KiB) Viewed 844 times
I was surprised to find that qBit changed the user and group on the ACL for the bt dataset from root/wheel to 921/921.
The ACL dialog was complaining that user and group 921 did not exist.
So I felt like I had no choice but to create user and group 921.
I downloaded a torrent and it did not appear in the bt share looking from the windows box.
A console in the jail showed:
root@btj:/mnt/BT # ls -l
total 29
drwxrwx---+ 2 qbittorrent 1004 3 Nov 4 17:46 ALG.S06E05.WEB.x264
-rwxrwx---+ 1 1000 1004 6 Nov 4 19:16 Test.txt
1000 is my user ID number and 1004 is the group 921 ID number.
I refreshed the windows box and it showed only test.txt:
Windows
Windows
p3.jpg (10.2 KiB) Viewed 844 times
Notice that the torrent directory's owner is the user qbittorrent.
The server doesn't have a user qbittorrent.
I figure the installation of qBit created the user qbittorrent in the jail.
I added a user named qbittorrent to the server. So now I have two users (921 and qbittorrent) and one group (921).
I checked the windows box and saw no change, just test.txt.
I restarted the jail. No change.
At this point I wondered if the jail mapping was working so I went to the jail console and created a file named FNtest.txt
root@btj:/mnt/BT # ls -l
total 30
drwxrwx---+ 2 qbittorrent 1004 3 Nov 4 17:46 ALG.S06E05.WEB.x264 (created by qBit)
-rwxrwx---+ 1 root 1004 17 Nov 4 20:09 FNtest.txt (created by me in the jail)
-rwxrwx---+ 1 1000 1004 6 Nov 4 19:16 Test.txt (created by me from windows)
root@btj:/mnt/BT #
So, I realized from the above that I can see a windows created file in the jail.
I went to the windows box and refreshed and now it's all there.
Windows
Windows
p5.jpg (12.89 KiB) Viewed 844 times
So, I figured that something I just did fixed it, and all is well.
Not so fast.
I went to another windows box and opened the bt share from there to find only heartbreak.
It shows only the test.txt file that I created from the other windows box.
The jail created file and the torrent directory do not show up.
I created another file on the bt share from another windows box and it showed up on this box.
I created another file in the jail and still no jail created files show up.
Anything created inside the jail does not show on this one windows box.
All my other windows boxes show all of it.

What is up with the users qbittorrent and 921 and group 921?
All of my other jails work with the default root and wheel.
Why would windows fail to show files created in the jail yet show files added to the jail through mapping?
Do I have to go as far as adding a qbittorrent or 921 named user in windows?
Are any of these previous steps what made the jail stuff show up on the first windows box?
Maybe it was just a cosmic ray.
Without knowing why any of this failed in the first place, it's hard to know if I have fixed anything or not.
As it turns out, the one windows box that won't see the jail-created-files is the very one that I want to use with qBit.
Any help would be appreciated.

Thank You
Post Reply