Trouble pinning certain flac file to android device

Need help? Post your questions here.

Moderator: moderators

Trouble pinning certain flac file to android device

Postby Rumbles » Thu Jun 30, 2016 8:15 am

I've been trying to download an album to my phone, but one track on the album seems to cause some issue for Subsonic, I'm using the official subsonic Android app. Currently it is stuck trying to transcode it from flac to mp3, which has caused the load average on my dual core machine to hit 22...

First question, is there any way to clear a song or the whole queue on an Android device? It seems that while it's stuck trying to transcode, the battery on my phone gets used up very quickly and the issue with server cpu spin is seen. I hit this problem yesterday and I uninstalled the app from my phone, which stopped the issue, but also deleted everything I had pinned already, which I wish to avoid doing again if possible. For now I have told th ephone to work offline from the server, which I think has stopped it from eating battery, although I'm not sure.

Second question, what's wrong with this file that causes it to not transcode/get stuck?

Loads of child processes spawned:

Code: Select all
$ ps -ef | grep subsonic
subsonic  7110     1  3 Jun28 ?        01:15:21 java -Xmx300m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4443 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/subsonic -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
subsonic 26077  7110  8 08:20 ?        00:00:11 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26085  7110  8 08:20 ?        00:00:11 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26093  7110  8 08:20 ?        00:00:10 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26102  7110  8 08:20 ?        00:00:10 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26112  7110  8 08:20 ?        00:00:09 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26125  7110  8 08:21 ?        00:00:08 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26134  7110  8 08:21 ?        00:00:07 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26142  7110  8 08:21 ?        00:00:07 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26155  7110  8 08:21 ?        00:00:06 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26170  7110  8 08:21 ?        00:00:06 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26178  7110  8 08:21 ?        00:00:05 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26187  7110  8 08:21 ?        00:00:05 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26195  7110  8 08:21 ?        00:00:04 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26203  7110  8 08:21 ?        00:00:04 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26220  7110  8 08:22 ?        00:00:03 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26236  7110  8 08:22 ?        00:00:02 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26244  7110  8 08:22 ?        00:00:02 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26253  7110  8 08:22 ?        00:00:01 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26272  7110  7 08:22 ?        00:00:01 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
subsonic 26290  7110  7 08:22 ?        00:00:00 /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
root     26309 22594  0 08:22 pts/0    00:00:00 grep subsonic


ffmpeg info:

Code: Select all
$ ffmpeg -i "/media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an En[1/10870]
lization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac"               
ffmpeg version N-79154-ga55c953 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
  configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --pkg-con
fig-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-lib
vpx --enable-libx264 --enable-libx265
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 32.100 / 57. 32.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from '/media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and S
till Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac':
  Metadata:
    GENRE           : Folk
    TITLE           : The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for t
he Inconvenience but You're Going to Have to Leave Now, or, "I Have Fought the Big Knives and Will Continue to Fight Th
    RELEASECOUNTRY  : NL
    TOTALDISCS      : 1
    LABEL           : Rough Trade
    TOTALTRACKS     : 22
    MUSICBRAINZ_ALBUMARTISTID: 01d3c51b-9b98-418a-8d8e-37f6fab59d8c
    DATE            : 2005-07-05
    disc            : 1
    TRACKTOTAL      : 22
    ASIN            : B0009J8FG8
    ALBUMARTISTSORT : Stevens, Sufjan
    ORIGINALDATE    : 2005-07-04
    SCRIPT          : Latn
    MUSICBRAINZ_ALBUMID: 066ea5e6-957e-3153-8c61-527bd475888d
    RELEASESTATUS   : official
    album_artist    : Sufjan Stevens
    CATALOGNUMBER   : CYCLE027
    ALBUM           : Illinois
    MUSICBRAINZ_ARTISTID: 01d3c51b-9b98-418a-8d8e-37f6fab59d8c
    MEDIA           : CD
    RELEASETYPE     : album
    PERFORMER       : James McAlister (drums);Craig Montoro (trumpet);Sufjan Stevens (accordion, acoustic guitar, alto saxophone, banjo, bells, drumset, elect
ric bass guitar, electric guitar, electric piano, flute, glockenspiel, keyboard, oboe, organ, piano, shakers, sopranino
    ARTIST          : Sufjan Stevens
    MUSICBRAINZ_RELEASEGROUPID: 1fb75447-c513-38c4-ad8f-1bfc441aa74c
    DISCTOTAL       : 1
    BARCODE         : 5425001461196
    MUSICBRAINZ_TRACKID: f4f6f1b0-41f3-45f6-9ee3-df039844727e
    ARTISTSORT      : Stevens, Sufjan
    track           : 2
  Duration: 00:02:14.79, start: 0.000000, bitrate: 917 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16


Some system info:

Code: Select all
$ uname -a
Linux stockbox 2.6.32-642.1.1.el6.x86_64 #1 SMP Tue May 31 21:57:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -qa |grep subsonic
subsonic-6.0-a7857c.i386
$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)


I'm using Java 8 as another service I run on the server relies on it (serviio)

From the logs:

Code: Select all
[2016-06-30 08:04:53,281] INFO TranscodeInputStream - Starting transcoder: /var/subsonic/transcode/ffmpeg -i /media/storage/share/Media/LosslessMusic/Sufjan Stevens/Illinois/02 The Black Hawk War, or, How to Demolish an Entire Civilization and Still Feel Good About Yourself in the Morning, or, We Apologize for the Inconvenience but You're Going to Have to Leave Now.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
[2016-06-30 08:05:31,258] WARN RESTFilter - Error in REST API: EofException
org.mortbay.jetty.EofException
  at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
  at org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:546)
  at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:567)
  at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:907)
  at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:628)
  at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:575)
  at net.sourceforge.subsonic.controller.StreamController.handleRequest(StreamController.java:256)
  at net.sourceforge.subsonic.controller.RESTController.stream(RESTController.java:1544)
  at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  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)
  at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
  at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:148)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at net.sourceforge.subsonic.security.RESTRequestParameterProcessingFilter.doFilter(RESTRequestParameterProcessingFilter.java:113)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
  at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:60)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.io.IOException: Broken pipe
  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
  at sun.nio.ch.IOUtil.write(IOUtil.java:51)
  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
  at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
  at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:208)
  at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
  ... 70 more

[2016-06-30 08:05:31,259] ERROR JAXBWriter - Failed to marshal JAXB
java.lang.IllegalStateException: STREAM
  at org.mortbay.jetty.Response.getWriter(Response.java:583)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeResponse(JAXBWriter.java:140)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeErrorResponse(JAXBWriter.java:154)
  at net.sourceforge.subsonic.filter.RESTFilter.handleException(RESTFilter.java:76)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:62)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

[2016-06-30 08:05:31,260] ERROR RESTFilter - Failed to write error response.
java.lang.IllegalStateException: STREAM
  at org.mortbay.jetty.Response.getWriter(Response.java:583)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeResponse(JAXBWriter.java:140)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeErrorResponse(JAXBWriter.java:154)
  at net.sourceforge.subsonic.filter.RESTFilter.handleException(RESTFilter.java:76)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:62)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:62)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

[2016-06-30 08:05:32,599] WARN RESTFilter - Error in REST API: EofException
org.mortbay.jetty.EofException
  at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
  at org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:546)
  at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:567)
  at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:907)
  at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:628)
  at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:575)
  at net.sourceforge.subsonic.controller.StreamController.handleRequest(StreamController.java:256)
  at net.sourceforge.subsonic.controller.RESTController.stream(RESTController.java:1544)
  at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  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)
  at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
  at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:148)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
  at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at net.sourceforge.subsonic.security.RESTRequestParameterProcessingFilter.doFilter(RESTRequestParameterProcessingFilter.java:113)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
  at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
  at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
  at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:60)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.io.IOException: Broken pipe
  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
  at sun.nio.ch.IOUtil.write(IOUtil.java:51)
  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
  at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
  at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:208)
  at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
  at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:208)
  at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
  ... 70 more

[2016-06-30 08:05:32,601] ERROR JAXBWriter - Failed to marshal JAXB
java.lang.IllegalStateException: STREAM
  at org.mortbay.jetty.Response.getWriter(Response.java:583)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeResponse(JAXBWriter.java:140)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeErrorResponse(JAXBWriter.java:154)
  at net.sourceforge.subsonic.filter.RESTFilter.handleException(RESTFilter.java:76)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:62)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

[2016-06-30 08:05:32,602] ERROR RESTFilter - Failed to write error response.
java.lang.IllegalStateException: STREAM
  at org.mortbay.jetty.Response.getWriter(Response.java:583)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeResponse(JAXBWriter.java:140)
  at net.sourceforge.subsonic.controller.JAXBWriter.writeErrorResponse(JAXBWriter.java:154)
  at net.sourceforge.subsonic.filter.RESTFilter.handleException(RESTFilter.java:76)
  at net.sourceforge.subsonic.filter.RESTFilter.doFilter(RESTFilter.java:62)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:59)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Rumbles
 
Posts: 4
Joined: Tue Oct 21, 2014 7:36 pm

Re: Trouble pinning certain flac file to android device

Postby Rumbles » Thu Jun 30, 2016 11:27 am

I moved the folder with the offending file out of the media folder, cleaned the database then rebooted my server, after that my device is able to stream media again, I then tried to pin and that seems to be working again. Bit of a pain, but at least it's working again. The only issue now is why the file won't pin in the first place (and the way the failure is handled)....

I tried with the same file a few days ago and that failed, which is why I uninstalled the app (deleting my phone music collection). I've never had a similar issue with another file, but the same issue twice with one file. Any suggestions? The file seems to work fine if I scp it to my laptop and play it locally.
Rumbles
 
Posts: 4
Joined: Tue Oct 21, 2014 7:36 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 32 guests