Page 1 of 1

"Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 4:23 am
by sterlingphoenix
Hi there,

I see this question on the forums but I never see it resolved...

Just installed Subsonic 4.7 on an Ubuntu 12.04 machine. This is my in-house media server.

When I add media folders, it always, ALWAYS says "Folder not found" no matter what folder I give it. The folders do exist, and the subsonic process should have access to them since I'm now running it as root to make sure it's not a permissions problem.

I even tried setting the media folder to / and it says that folder is not found.

There is absolutely nothing in the logs to indicate a problem.

Anyone have any ideas?

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 6:15 am
by hakko
Sorry to hi-jack this thread, but:

I don't have a solution for this and I don't know what you're using Subsonic for (audio, video). If you mainly use it for audio, I'd be personally interested if this problem also exists with my modified Subsonic server which uses a different way of scanning your library / storing metadata.

So, if anyone runs into this and feel like trying (and be aware that there are pros and cons of using my server, it won't fit everyone), please give it a try and post back whether it was successful or not.

viewtopic.php?f=11&t=10587

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 7:24 am
by sterlingphoenix
hakko wrote:Sorry to hi-jack this thread, but:


And I wish you hadn't since it diminishes the chance of me getting a reply (:

I normally use Subsonic to stream audio to my cellphone, but in THIS one specific instance I'm trying to use it for video, I'm afraid. However, I tried using it for audio, too, but it didn't find those folders, either.

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 11:53 am
by hakko
Sorry about that. I've seen the same question asked a couple of times and no one has given substantial input (from what I remember). So I decided the thread was a dupe anyway and that my answer would be better than nothing.

I'm not using Subsonic 4.7 but I'm curious if it can be answered by "this is an unsolved bug in Subsonic 4.7 and hasn't been addressed by the developer, but it doesn't exist in the MusicCabinet mod". That would be more of an answer than "no one knows why this is happening and no one is working on it".

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 4:24 pm
by Aethies
So since no one has replied in the past, let me see if I can help.

On the folders not found, you are setting them in the media folders. Question I have, do you have these locations mounted on the server? Or how is your server set up?

For example, when I ran two servers, one ran subsonic, the second was basically just a fileserver, I had to ensure the media drives were mounted BEFORE subsonic starts up or I would get folder not found.

Now that I have a new server, everything is local, and the media is mounted locally upon bootup. So it is mounted like so:

/subsonic
and under the top level mount, I have TV and music...
like this:
/subsonic/tv
/subsonic/music

and so my media folders are like that. Now, I have one drive on the network that is shared as Older TV, and so it is mounted under /media as oldtv.
so my folders reflect that via /media/oldtv

So how is your server configured?

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Tue Jan 08, 2013 5:25 pm
by sterlingphoenix
Aethies wrote:So since no one has replied in the past, let me see if I can help.
On the folders not found, you are setting them in the media folders. Question I have, do you have these locations mounted on the server? Or how is your server set up?


These are local folders which are mounted at boot. Definitely mounted before subsonic starts. I can easily access them through a shell - they are world-readable and accessible to all users, and certainly for root.

I tried pointing to /usr/local/media, /usr/local/media/music (which is how my other, functioning subsonic server is set up), /usr/local/media/music/artist_name, and (as I said) even just /. No go.

Also, I tied downgrading to Subsonic 4.6, same issue (except the message is not displayed at the same place).

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Wed Jan 09, 2013 6:54 am
by JMilesT
First, I'd check for the obvious: Spelling, and case in the path setup of your subsonic configuration. As you may (not) know, in Linux, capital letters are totally different characters than lower-case letters.

Then, check your folder permissions.

-I configured the subsonic service running as a user called "subsonic_service"
-I added this user to a group called "media"
-I changed my the 'group owner' of my music folder to "media" so any user that's part of the "media" group can read the music folder.

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Wed Jan 09, 2013 3:18 pm
by Aethies
Good call on the uppercase and lowercase.. The fact that you have another running subsonic is what is making me feel that it is either a typo (less likely) or subsonic is not allowed to access said folders. I have changed all ownership of my media folders to subsonic since having them world accessible is 1) not a good idea and 2) sometimes even tho the permissions were set for 777, subsonic still couldn't access certain folders for some reason.

I am not sure what else to propose to you as Linux is pretty cut and dry.

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Thu Jan 10, 2013 12:16 am
by sterlingphoenix
JMilesT wrote:First, I'd check for the obvious: Spelling, and case in the path setup of your subsonic configuration. As you may (not) know, in Linux, capital letters are totally different characters than lower-case letters.


Ok, I guess I can expect the "are you a total newbie" response (: I am not. I've been using UNIX systems since long before Linux existed.

The paths are absolutely correct. To the point of me logging onto the server, cding to the directory, going 'pwd' and pasting that into Subsonic.

Also, if you read my original post, I tried using /. /!!! If it can't find / there's something wrong.

The media directory is shared from this server to, well, any other machine in the house, so they HAVE to be world-accessible. Also when all else failed I tried running Subsonic as root. There is absolutely no reason for it not to be able to access any directory or file on the machine.

Basically, there's nothing obvious. The directories are correct, they're accessible, they're local on this server. Nothing in the subsonic logs.

Any other suggestions?...

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Thu Jan 10, 2013 12:54 am
by GJ51
Use Windows.

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Thu Jan 10, 2013 3:08 am
by sterlingphoenix
GJ51 wrote:Use Windows.


Not an option. This is a pre-existing media server. It has a software RAID on it that'd be incredibly hard to translate to NTFS, not to mention Windows' implementation of NFS is horrible. Also I don't really think running Squid on Windows is a good idea.

The annoying thing here is Subsonic works just fine on a DIFFERENT Ubuntu 12.04 machine, but that one's on a different subnet so I can't just use it for this stuff.

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Thu Jan 10, 2013 4:13 pm
by BKKKPewsey
As 4.7 SS seems to have more issues in the "no media folders found" dept I would suggest doing a clean install of 4.6 and getting that working first. I know you have tried downgrading to 4.6 but was that a clean install?
Make sure you delete the subsonic db folder first (preferably remove all old SS traces).

As for experience that can sometimes work against you as you can read what should be there rather what is actually there.
I spent hours troubleshooting an install, for a program, that was failing at which point my son (grown-up) looked over my shoulder to see what all the cursing was about and pointed out "Shouldn't their be a colon after the drive letter" :oops:
Yep C:\path worked so much better :D

Re: "Folder not found" on Ubuntu 12.04, Subsonic 4.7

PostPosted: Thu Jan 10, 2013 8:24 pm
by sterlingphoenix
BKKKPewsey wrote: I know you have tried downgrading to 4.6 but was that a clean install?


I did a dpkg purge subsonic, and then rm -rf'd /var/subsonic, made sure /etc/default/subsonic was gone, etc. Then installed 4.6, so yeah, as clean an install as I could make it. Oh and I did stop the process first.

I double-verified the path by actually going to the directory, getting it to print out the path and pasting that into Subsonic... so that's not it.

I'm really, really stumped here. I wish there was a debug option for subsonic somewhere... which for all I know there is, but I don't know where it might be!