Tree Command in TrueNAS (FreeBSD)

mjayjock

Dabbler
Joined
Jun 22, 2023
Messages
15
I am very new and spending a lot of time on TrueNAS Core trying to get Plex (with Sonarr, Radarr and Sabnzbd) running. I think I got everything running except Sonarr which sees the files in my media pool but advises that it cannot connect. I looked for fixes and have found one that applies some commands. When I tried to apply the fixes I am obviously not typing the correct file structure into the commands that I have found. I think it would really help if I could see the various directory structures in TrueNAS inside and outside of jails. Looks like the tree command is just what I need but when I try pkg install tree in the TrueNAS shell it cannot be found. Any advice would be most appreciated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
mc is already on there and gives you something similar.
 

mjayjock

Dabbler
Joined
Jun 22, 2023
Messages
15
Thank you! mc is pretty cool and it looked like it was going to give me what I need which was the subdirectories below /mnt/PlexPrograms/iocage ; however, it froze after iocage. Any idea why it did? BTW: PlexPrograms is the name of my pool for jails associated with Plex.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

mjayjock

Dabbler
Joined
Jun 22, 2023
Messages
15
I appreciate your help on this. In general, I find TrueNAS Core to be pretty touchy but so cool.
I ran ms on the root which showed mnt then it showed me the structure under mnt and then under /mnt/PlexProgram. That is, when I clicked on PlexPrograms it showed me the directories under it including iocage. When I hit enter on iocage the program became unresponsive and I could not look further. Also, it would not let me back up into previous directories. It considered it "frozen".
Regarding your other comment, I provided the name of my pool because it is longer than 8 characters and has some capitals, I did not know if those aspects were relevant. From your question, I guess they are not.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, so pool name is fine, not the specific issue.

I was able to browse within the iocage datasets of my servers, so without more information about your setup, I don't see what would be preventing that.

I would suggest running it in an SSH session, not via the shell option in the GUI. Perhaps that's part of the issue.


Many windows users choose to use Putty as their client, but windows also has ssh built-in with powershell these days, so you could just use that (mac and linux typically already have ssh available in a command window).
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
you'll probably have similar issues with tree in the GUI shell, but if you really want that, you can install it in a jail and then run it from the host by using the path to the binary in the jail (like /mnt/pool/iocage/jails/tree/root/usr/local/bin/tree)

took me 1 minute to set up and test, works fine.
 
Top