Ubuntu Server freezes up and needs to be restarted

Need help? Post your questions here.

Moderator: moderators

Ubuntu Server freezes up and needs to be restarted

Postby steez » Mon May 09, 2011 2:56 pm

<-------------------------Subsonic Help Request---------------------->
Problem Description: About once a day, the server becomes in accessible.

Troubleshooting Steps: currently a
Code: Select all
sudo service subsonic restart
will remedy the problem

Playback Application and version: when frozen I cannot access via Adroid app or web browser

Subsonic Version: 4.4 (build 2169) – February 6, 2011

Server Version: jetty-6.1.x, java 1.6.0_20, Linux (73.0 MB / 81.8 MB)

Hardware Platform: Linux Ubuntu Server 10.10

When I restart, the log file gets erased. Next time this happens I will try to grab the log file before I restart.

Here are some lines of interest from current log file though.

Code: Select all
[2011-05-09 06:47:41,948] WARN JaudiotaggerParser - Failed to find cover art tag in /media/Music/Compilations/Ninja Tune XX - Traxx Remixxes 1/01 Fools Rhythm.mp3
java.lang.OutOfMemoryError: Java heap space
   at org.jaudiotagger.tag.datatype.ByteArraySizeTerminated.readByteArray(ByteArraySizeTerminated.java:94)
   at org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody.read(AbstractID3v2FrameBody.java:181)
   at org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody.<init>(AbstractID3v2FrameBody.java:81)
   at org.jaudiotagger.tag.id3.framebody.FrameBodyAPIC.<init>(FrameBodyAPIC.java:149)
   at sun.reflect.GeneratedConstructorAccessor37.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.jaudiotagger.tag.id3.AbstractID3v2Frame.readBody(AbstractID3v2Frame.java:214)
   at org.jaudiotagger.tag.id3.ID3v23Frame.read(ID3v23Frame.java:422)
   at org.jaudiotagger.tag.id3.ID3v23Frame.<init>(ID3v23Frame.java:250)
   at org.jaudiotagger.tag.id3.ID3v23Tag.readFrames(ID3v23Tag.java:589)
   at org.jaudiotagger.tag.id3.ID3v23Tag.read(ID3v23Tag.java:556)
   at org.jaudiotagger.tag.id3.ID3v23Tag.<init>(ID3v23Tag.java:303)
   at org.jaudiotagger.audio.mp3.MP3File.readV2Tag(MP3File.java:219)
   at org.jaudiotagger.audio.mp3.MP3File.<init>(MP3File.java:391)
   at org.jaudiotagger.audio.mp3.MP3FileReader.read(MP3FileReader.java:39)
   at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:285)
   at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:148)
   at net.sourceforge.subsonic.service.metadata.JaudiotaggerParser.getArtwork(JaudiotaggerParser.java:274)
   at net.sourceforge.subsonic.service.metadata.JaudiotaggerParser.isImageAvailable(JaudiotaggerParser.java:251)
   at net.sourceforge.subsonic.service.MusicFileService.getBestCoverArt(MusicFileService.java:211)
   at net.sourceforge.subsonic.service.MusicFileService.listCoverArtRecursively(MusicFileService.java:191)
   at net.sourceforge.subsonic.service.MusicFileService.getCoverArt(MusicFileService.java:120)
   at net.sourceforge.subsonic.service.MusicFileService.getCoverArt(MusicFileService.java:92)
   at net.sourceforge.subsonic.controller.RESTController.getRandomSongs(RESTController.java:562)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410)
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

[2011-05-09 06:47:42,812] WARN JaudiotaggerParser - Error when parsing tags in /media/Music/Compilations/Ninja Tune XX - Traxx Remixxes 1/15 LA Nocturne.mp3
java.lang.OutOfMemoryError: Java heap space
   at org.jaudiotagger.tag.datatype.ByteArraySizeTerminated.readByteArray(ByteArraySizeTerminated.java:94)
   at org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody.read(AbstractID3v2FrameBody.java:181)
   at org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody.<init>(AbstractID3v2FrameBody.java:81)
   at org.jaudiotagger.tag.id3.framebody.FrameBodyAPIC.<init>(FrameBodyAPIC.java:149)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at org.jaudiotagger.tag.id3.AbstractID3v2Frame.readBody(AbstractID3v2Frame.java:214)
   at org.jaudiotagger.tag.id3.ID3v23Frame.read(ID3v23Frame.java:422)
   at org.jaudiotagger.tag.id3.ID3v23Frame.<init>(ID3v23Frame.java:250)
   at org.jaudiotagger.tag.id3.ID3v23Tag.readFrames(ID3v23Tag.java:589)
   at org.jaudiotagger.tag.id3.ID3v23Tag.read(ID3v23Tag.java:556)
   at org.jaudiotagger.tag.id3.ID3v23Tag.<init>(ID3v23Tag.java:303)
   at org.jaudiotagger.audio.mp3.MP3File.readV2Tag(MP3File.java:219)
   at org.jaudiotagger.audio.mp3.MP3File.<init>(MP3File.java:391)
   at org.jaudiotagger.audio.mp3.MP3FileReader.read(MP3FileReader.java:39)
   at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:285)
   at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:148)
   at net.sourceforge.subsonic.service.metadata.JaudiotaggerParser.getRawMetaData(JaudiotaggerParser.java:71)
   at net.sourceforge.subsonic.service.metadata.MetaDataParser.getMetaData(MetaDataParser.java:43)
   at net.sourceforge.subsonic.domain.MusicFile.getMetaData(MusicFile.java:242)
   at net.sourceforge.subsonic.domain.MusicFile.getTitle(MusicFile.java:255)
   at net.sourceforge.subsonic.controller.RESTController.createAttributesForMusicFile(RESTController.java:622)
   at net.sourceforge.subsonic.controller.RESTController.getRandomSongs(RESTController.java:563)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:473)
   at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:410)
   at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)


[2011-05-09 06:48:45,389] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) fatal error: can't update LAME-tag frame!
steez
 
Posts: 24
Joined: Tue Jan 25, 2011 5:44 pm

Ubuntu Freeze

Postby Aethies » Mon May 09, 2011 3:52 pm

java.lang.OutOfMemoryError: Java heap space


You might try increasing the memory allocated for java. I am not sure what version of subsonic (war, standalone) you are using, but if you increase the default value of 100 to something higher, you might get this resolved fairly quickly.

[/quote]
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

Postby steez » Mon May 09, 2011 5:11 pm

I think i am using a standalone.

Installed from command line in ubuntu. How do I increase the java memory?
Is it in a config file? or just a command I can run?
steez
 
Posts: 24
Joined: Tue Jan 25, 2011 5:44 pm

Postby Aethies » Mon May 09, 2011 5:36 pm

steez wrote:I think i am using a standalone.

Installed from command line in ubuntu. How do I increase the java memory?
Is it in a config file? or just a command I can run?


if you are using standalone, there should be a /var/subsonic/subsonic.sh file that you can edit. Just check the values at the top of that config file. They are pretty self-explanatory.

Let us know if that helps. Oh, and make sure to restart the subsonic server after editing this file.
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

Postby steez » Mon May 09, 2011 6:06 pm

Thanks for your help

I do not have a /var/subsonic/subsonic.sh file

I have
Code: Select all
/var/subsonic/subsonic.log
/var/subsonic/subsonic.properties
/var/subsonic/subsonic.sh.log
/var/subsonic/subsonic13.index


Since there is subsonic.sh.log in there, I have subsonic.sh somewhere right?
Where else would it be located?
steez
 
Posts: 24
Joined: Tue Jan 25, 2011 5:44 pm

Postby achoo5000 » Mon May 09, 2011 7:02 pm

for debian (ubuntu), subsonic.sh is located at:

Code: Select all
/usr/share/subsonic/subsonic.sh


But I think you edit the command arguments for the init service (including max memory) in this file:

Code: Select all
/etc/default/subsonic


EDIT: I guess the difference is that editing subsonic.sh will change the default options whenever the subsonic command is executed from anywhere, while /etc/default/subsonic will change the command line arguments only for the service which is run on startup (or by the service starter).
achoo5000
 
Posts: 29
Joined: Wed Mar 30, 2011 10:47 pm
Location: USA

Postby steez » Mon May 09, 2011 7:45 pm

Thank you, I edited both.
I will report back if this does help solve my problem.
steez
 
Posts: 24
Joined: Tue Jan 25, 2011 5:44 pm

Postby Aethies » Tue May 10, 2011 2:01 pm

steez wrote:Thanks for your help

I do not have a /var/subsonic/subsonic.sh file

I have
Code: Select all
/var/subsonic/subsonic.log
/var/subsonic/subsonic.properties
/var/subsonic/subsonic.sh.log
/var/subsonic/subsonic13.index


Since there is subsonic.sh.log in there, I have subsonic.sh somewhere right?
Where else would it be located?


I apologize, I was almost there. I have my subsonic.sh in /var/subsonic/standalone/

That is the only one I have.
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


Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests