Page 1 of 1

Subsonic Cacheing Error

PostPosted: Tue Oct 18, 2011 7:37 pm
by Pablington
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

Re: Subsonic Cacheing Error

PostPosted: Tue Oct 18, 2011 10:41 pm
by BKKKPewsey
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:

Re: Subsonic Cacheing Error

PostPosted: Wed Oct 19, 2011 6:42 am
by Pablington
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...

Re: Subsonic Cacheing Error

PostPosted: Wed Oct 19, 2011 10:08 am
by BKKKPewsey
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:

Re: Subsonic Cacheing Error

PostPosted: Wed Feb 15, 2012 6:16 am
by fileoffset
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?