Page 1 of 1
subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 8:22 am
by themikest3r
Hello,
I have recently setup subsonic on a simple netbook running ubuntu 12.04LTS with my 3TB drive attached acting as a NAS. With music I have noticed, if I begin playing a song It will stop a few (or several) seconds into it and subsonic becomes unresponsive (clicking anywhere will yield parts of the page as unreachable error). my entire computer running it becomes unreachable via ssh and on my router no longer lists it as an attached device. This lasts for about 10minutes before the song randomly resuming for a few more seconds and then repeating the same unresponsive behavior. I have LAME and mpeg libraries installed as well as java prerequisites. Anyone have any idea what the problem is? Thank you
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 12:14 pm
by BKKKPewsey
Anything in the log to indicate a problem?
I would also check your memory allocation for SS as subsonic will get very unresponsive if it is running out of memory.

Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 2:16 pm
by GJ51
Most likely a lag between the server and the NAS. This is a known issue. If the data transfer from the NAS to the server isn't set up properly the server won't get the data from the NAS fast enough to keep the output data stream filled. Make a small folder on the server and put a music folder with a file you now is buffering from the NAS. Change to the local folder and test to see if you have the same behavior. If the problem disappears, you know that you have to investigate what is causing the delay in getting the data from the NAS.
We see this most often when the native file systems on the server and the NAS are not the same. If the file systems are different then there has to be a translation step for the server to read the data. This is usually where the problem is. I've seen it solved on different setup here and there but each combination of server/NAS is probably unique here in the forum, so it's hard to tellyou where to look for an answer.
Post as much detail as you can regarding the server and the NAS and hopefully someone with a similar configuration might be able to point you in the right direction. There are also several posts here in the forums that are related, so a few judicious searches might be worthwhile.
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 3:58 pm
by themikest3r
Thanks for the help guys! Memory-wise this netbook has 2GB in it (I know its not a lot, but this should still be Ok right?)
I took your suggestion of copying some music locally and it made it through 2 and a half songs no problem! Then it froze up and im locked out of the system entirely again =(. I'm definitely thinking you're onto something about the lag, this external drive is a seagate 3TB external and it behaves so weird when writing (its too quiet and data light blinks ittermittantly) While at the same time this drive is healthy and hasnt failed me yet.
I should also mention this external drive is encrypted with truecrypt and is ext2. Ill copy some log files up here for you all to look at. Thanks again!
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 5:22 pm
by GJ51
NP. I'm not a big fan of external drives for a number of reasons; among them are heat related issues. The enclosure usuallly aren't well ventilated and they tend to run hot and generally have higher failure rates than drives mounted in well ventilated cases. They do tend to exhibit strange behaviors whenthey start degrading that aren't always easily identified as a disk problem until they get severe. It's a more progressive thing than you would first suspect. My old HP Media Smart Server used to chew up drives and I'd scratch my head for days trying to solve problems until I realized that a drive was dying. That may or may not be a factor here. Also, my netbook only has 10/100 ethernet which could be a bit of a bottleneck, but should be OK under normal useage.
If you see the same behavior from locally stored media then you may need to be looking at the netbook, the OS, and the SS install as the culprit.
I'm a big fan of an occasional clean reinstall of Java and SS if I'm having problems. Sometimes it's just easier than spending all day trying to find a problem. I usually uninstall Java and SS completely, then install the latest versions of Java and SS. It only takes a few mins. and then you know your on solid ground. If you still have issues with local media after that, then you probably have OS or underlying hardware problems.
Re: Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 5:28 pm
by paulodell
themikest3r wrote:Thanks for the help guys! Memory-wise this netbook has 2GB in it (I know its not a lot, but this should still be Ok right?)
I took your suggestion of copying some music locally and it made it through 2 and a half songs no problem! Then it froze up and im locked out of the system entirely again =(. I'm definitely thinking you're onto something about the lag, this external drive is a seagate 3TB external and it behaves so weird when writing (its too quiet and data light blinks ittermittantly) While at the same time this drive is healthy and hasnt failed me yet.
I should also mention this external drive is encrypted with truecrypt and is ext2. Ill copy some log files up here for you all to look at. Thanks again!
You may have 2gb but you will need to allocate subsonic more than its default 100mb to see any benefits.
Paul
Sent from my HTC Sensation XE with Beats Audio Z715e using Tapatalk 2
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 6:07 pm
by GJ51
Agreed. On the 4.6 or earlier I usually go with 256 and don't have any problems. 4.7 b1 uses 150 for the default and I haven't had to up it as the new database structure uses memory more efficiently.
I'm comfortble recommending 4.7 b1 for any new install as I find it to be the best SS so far even though it's still in beta. One caveat is to be aware of the possible need to do a clean reinstall is needed for subsequent versions.
4.7 b1 is smokin fast and has been very reliable for me so far. All my transcodings are working properly too.
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 6:40 pm
by themikest3r
Yes I was iffy about purchasing this drive because of those exact reasons, but the space and price was too good to pass up! I've got a better enclosure I would like to put the drive into, but I need to find out if seagate will still honor the warranty on the internal drive if it goes to shit down the road (its a new drive, maybe 3 weeks old now).
I upped the memory alloted for subsonic to 1GB and it froze up before I could even select a song. Perhaps this indicates java is screwing up?
Also I've noticed the last few times it knocks it off the network for much longer than 10minutes, now its between 30min to an hour
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 6:56 pm
by GJ51
1GB is probably way too much. Try 256.
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 9:32 pm
by themikest3r
Brought the memory down a bit and still no dice, locked up.
I did some reading and saw all the good comments about 4.7 beta1 so i upgraded it to that one and I have had 0 problems yet! Been running it a solid half hour with multiple accounts streaming audio so so far so good! I'll keep you guys updated if it flops again, thank you again for all the help!
Re: subsonic makes server unreachable for 10min

Posted:
Mon May 28, 2012 10:39 pm
by GJ51
Outstanding. It doesn't take much to trip up an install, your previous version probably just didn't go quite right the first time.
Congrats.