Subsonic Cacheing Error

Need help? Post your questions here.

Moderator: moderators

Subsonic Cacheing Error

Postby Pablington » Tue Oct 18, 2011 7:37 pm

Hi,

I upload lots of music through the upload function of SubSonic, and it goes into the Incoming folder. People play this music under the Incoming folder and this means it gets added to the playlist.

Of course I then move it to the main Music folder to categorize it, but if people have the songs in their playlist when they open the system next time the browser reports a rather random error. The error log reports that it "cannot list the children of xxx". Until the cache is cleared, or the playlist that lists the songs is cleared, the error gets shown to every user on opening.

Is there something we can do to combat this? Cache clearing button? Better error handling of the FileUtil for listing folders under the incoming folder?

Be good to know your thoughts, and if anyone else is finding these issues.

thanks

P

Mod: Moved post from Tutorials
Pablington
 
Posts: 2
Joined: Tue Oct 18, 2011 7:26 pm

Re: Subsonic Cacheing Error

Postby BKKKPewsey » Tue Oct 18, 2011 10:41 pm

Hmm! What browser is giving those errors?
I have just created a playlist and then moved the files and in FF, IE9 and Chrome I did not get any errors?
I didn't get any sound either :) but I would have been more surprised if I had.
:mrgreen:
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: Subsonic Cacheing Error

Postby Pablington » Wed Oct 19, 2011 6:42 am

Firefox and chrome both give errors - and when I say error, specifically it's a Javascript alert that gives no message.

what's annoying is that all users get the error, no matter who made the playlist that references songs that no longer exist...
Pablington
 
Posts: 2
Joined: Tue Oct 18, 2011 7:26 pm

Re: Subsonic Cacheing Error

Postby BKKKPewsey » Wed Oct 19, 2011 10:08 am

Ah!! that message.
I do not know what generates that but I don't think its caused by the problem above.
(I have, on occasion, seen it and I don't move my files around)
When it does make an appearance the only way I know of getting rid of it quickly is to delete the jetty cache.
:mrgreen:
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: Subsonic Cacheing Error

Postby fileoffset » Wed Feb 15, 2012 6:16 am

I get the same error, as I am moving files about all the time.

It drives me insane! I have to reboot subsonic all the time.

The problem could possibly be fixed like so:

When you add a file to the playlist/cache, it records a hash of the file and it's filename.
If the file is no longer there, subsonic should check the rest of it's library names against the missing filename, if any are found it should check the hash. If it matches it should automatically update the cache/playlist reference to the new file location.

That would fix the problem.

Also, what use is an alert that just says 'Error' surely some better error information could be shown here.

P.S what is the cleanest/nicest way to reboot subsonic that is run from standalone/subsonic.sh on linux?
fileoffset
 
Posts: 16
Joined: Thu Jun 17, 2010 5:33 am


Return to Help

Who is online

Users browsing this forum: No registered users and 43 guests