Nas4free ''folder not found'' problem with Jail

Need help? Post your questions here.

Moderator: moderators

Nas4free ''folder not found'' problem with Jail

Postby imperatorzorg » Mon Oct 20, 2014 6:34 pm

Hi all, i've installed subsonic on nas4free, it's working but not like it should. I know my problem but i don't know how to resolve it. Here is screenshot of Settings/Media folders . Folders lower than Jail dir can't be seen by subsonic. Any sugestions? Thank's for help.

Image
imperatorzorg
 
Posts: 1
Joined: Mon Oct 20, 2014 6:22 pm

Re: Nas4free ''folder not found'' problem with Jail

Postby markofealing » Sat Nov 01, 2014 7:51 am

Hi imperatorzorg,

You could not have asked this question at a better time as I'm just writing a Blog Post http://mylinuxramblings.wordpress.com/ on installing subsonic 5.0 in NAS4Free which I will publish in the next few days. In the meantime this is the information you need to get Subsonic (within a NAS4Free Jail) to see your NS4Free media folder.

Jails separate your installed applications like Subsonic from your NAS4Free server. The downside is that they are detached from your storage and in the case of Subsonic, your music.

To get subsonic to see your music you need to setup your Jails fstab so it mounts your music directory on your NAS4Free server locally within the Jail. To do this go to your Jail's settings (Extensions > TheBrigg) and then select the settigs for your Subsonic Jail. You will need to create an Fstab entry to mount your NAS4Free directory to a mount point within your jail.

If you wish to find more about Fstab see https://www.freebsd.org/cgi/man.cgi?que ... 9&sektion=

Below is the configuration for my Subsonic Jail

/mnt/data1/Music /mnt/data1/jail/Subsonic/mnt/music nullfs rw 0 0

The above fstab entry can be broken down as follows:

/mnt/data1/Music - This is the directory where my music is located on my NAS4Free server

/mnt/data1/jail/Subsonic/mnt/music - This is mount point WITHIN my subsonic Jail.

nullfs rw 0 0 - The important bit is rw which stands for Read/ Write, which you need in order to upload music to your NAS4Free music directory via Subsonic. The alternative option is ro which is Read Only which does what it says!

To setup this up do the following:

Identify the path to your music on your NAS4Free server e.g. /mnt/data1/Music

Create a directory (e.g. music) in your Susonic Jail's mnt directory where you wish to mount your NAS4Free Music directory /mnt/data1/jail/Subsonic/mnt/music. To create a directory called music within the mnt directry use the Unix command mkdir music.

Now put the above together along with nullfs rw 0 0 and place your Fstab entry into your NAS4Free Subsonic Jail Fstab.

Save and apply the changes and reboot your NAS4Free server.

Once the NAS4Free server has restarted, test that the mount has worked. SSH back on to your Subsonic jail, navigate to your mount point directory e.g. mnt/music by entering cd /mnt/music and then enter ls to list the contents.if the mount has worked you should see the contents of your NAS4Free Music directory within the jail.

Login to Subsonic and go to Settings and point this to the mount point you created in step 2 above

Click on Scan Media folders, this should show in the top right hand corner that it is scanning folders. If nothing is found check the log files for errors under the About menu option, it may give you a clue as to what may be going wrong. A common problem is that there may be a problem with the database (as happened to me) and nothing appears. To resolve (source viewtopic.php?f=2&t=10835):

Uncheck the check boxes for ALL Enabled folders

Click Save

Click on Clean-up database

Click on Scan Media Folders Now

Re-enable your media folders

Click Save

Rescan your media folders by clicking on Scan Media Folders Now


Hopefully, the above will help you access your music :D
markofealing
 
Posts: 3
Joined: Sat Nov 01, 2014 7:22 am

Re: Nas4free ''folder not found'' problem with Jail

Postby markofealing » Sun Nov 02, 2014 11:29 am

I have now posted the full blog post which includes useful screen-shots. It can be found athttp://mylinuxramblings.wordpress.com/2014/11/02/part-2-installing-subsonic-5-0/
markofealing
 
Posts: 3
Joined: Sat Nov 01, 2014 7:22 am


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests