"Folder not found" on Ubuntu 12.04, Subsonic 4.7

Need help? Post your questions here.

Moderator: moderators

"Folder not found" on Ubuntu 12.04, Subsonic 4.7

Postby sterlingphoenix » Tue Jan 08, 2013 4:23 am

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?
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am

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

Postby hakko » Tue Jan 08, 2013 6:15 am

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
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby sterlingphoenix » Tue Jan 08, 2013 7:24 am

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.
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am

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

Postby hakko » Tue Jan 08, 2013 11:53 am

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".
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby Aethies » Tue Jan 08, 2013 4:24 pm

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?
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

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

Postby sterlingphoenix » Tue Jan 08, 2013 5:25 pm

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).
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am

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

Postby JMilesT » Wed Jan 09, 2013 6:54 am

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.
JMilesT
 
Posts: 23
Joined: Mon Jun 14, 2010 4:54 am

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

Postby Aethies » Wed Jan 09, 2013 3:18 pm

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.
Aethies

Ubuntu Server 12.04
===================
3,281 artists
9,432 albums
113,608 songs
2636.09 GB (10,769 hours)
===================
User avatar
Aethies
 
Posts: 197
Joined: Fri Oct 24, 2008 4:33 pm

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

Postby sterlingphoenix » Thu Jan 10, 2013 12:16 am

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?...
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am

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

Postby GJ51 » Thu Jan 10, 2013 12:54 am

Use Windows.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

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

Postby sterlingphoenix » Thu Jan 10, 2013 3:08 am

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.
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am

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

Postby BKKKPewsey » Thu Jan 10, 2013 4:13 pm

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
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

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

Postby sterlingphoenix » Thu Jan 10, 2013 8:24 pm

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!
sterlingphoenix
 
Posts: 7
Joined: Sun May 06, 2012 7:07 am


Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests