{"action":"created","issue":{"url":"https://api.github.com/repos/airsonic/airsonic/issues/685","repository_url":"https://api.github.com/repos/airsonic/airsonic","labels_url":"https://api.github.com/repos/airsonic/airsonic/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/airsonic/airsonic/issues/685/comments","events_url":"https://api.github.com/repos/airsonic/airsonic/issues/685/events","html_url":"https://github.com/airsonic/airsonic/issues/685","id":291798812,"number":685,"title":"Playback occasionally stops with \"upstream prematurely closed connection...\" errors on server","user":{"login":"gryphonmyers","id":5785304,"avatar_url":"https://avatars1.githubusercontent.com/u/5785304?v=4","gravatar_id":"","url":"https://api.github.com/users/gryphonmyers","html_url":"https://github.com/gryphonmyers","followers_url":"https://api.github.com/users/gryphonmyers/followers","following_url":"https://api.github.com/users/gryphonmyers/following{/other_user}","gists_url":"https://api.github.com/users/gryphonmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/gryphonmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gryphonmyers/subscriptions","organizations_url":"https://api.github.com/users/gryphonmyers/orgs","repos_url":"https://api.github.com/users/gryphonmyers/repos","events_url":"https://api.github.com/users/gryphonmyers/events{/privacy}","received_events_url":"https://api.github.com/users/gryphonmyers/received_events","type":"User","site_admin":false},"labels":[{"id":640054837,"url":"https://api.github.com/repos/airsonic/airsonic/labels/issue","name":"issue","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-26T04:43:32Z","updated_at":"2018-02-15T16:31:30Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThanks for reporting a problem with Airsonic! Please complete all of the\r\nfollowing sections to make it easier to assist you.\r\n-->\r\n\r\n## Problem description\r\nPeriodically when streaming music,  the player will cease playback (usually toward the end of a song, before starting the next one). I then see an \"ERR_CONTENT_LENGTH_MISMATCH\" in the browser console. Looking at server logs, I see many repeated instances of the same sort of error, which I assume are related:\r\n\r\n```\r\n2018/01/25 17:11:11 [error] 15161#0: *46668 upstream prematurely closed connection while reading upstream, client: REDACTED, server: REDACTED, request: \"GET /airsonic/rest/stream.view?REDACTED\", upstream: \"http://127.0.0.1:8080/airsonic/rest/stream.view?REDACTED\", host: \"REDACTED\"\r\n```\r\nI added\r\n``` \r\nJAVA_ARGS=--server.connection-timeout=-1\r\n```\r\nto my sysconfig, but that doesn't seem to have had any effect.\r\n\r\n## System information\r\n\r\n * **Airsonic version**: 10.1.1-RELEASE – December 16, 2017\r\n * **Operating system**: Centos 7\r\n * **Proxy server**: Nginx 1.12.2\r\n * **Client**: Chrome, DSub\r\n\r\n## Additional notes\r\nAirsonic is reading from a network drive, so I assume it is sometimes hitting a timeout threshold while waiting for the file read. I'm not finding a read timeout option in the embedded server config options though, and I'm very new to Tomcat / Java so don't know what else to try.\r\n\r\nThanks!!\r\n\r\nEDIT:\r\n\r\nMore info. I am starting to suspect this has something to do with transcoding. It seems there are particular files (tending to be FLACs, is the current theory) that it struggles with. When it hits a file it doesn't like, it will continue to spam errors (the aforementioned ones, in browser console and nginx error log). It will also spam the following lines in the airsonic log:\r\n\r\n```\r\n2018-01-27 10:54:02.920  INFO --- o.a.p.io.PlayQueueInputStream            : gryphon listening to \"Animal Crossing - Your Favourite Songs (Original Soundtrack)/03 Daytime In City Square.flac\"\r\n2018-01-27 10:54:02.922  INFO --- o.a.p.io.TranscodeInputStream            : Starting transcoder: [/var/airsonic/transcode/ffmpeg] [-i] [/var/airsonic/music/Kazumi Totaka _ Manaka Tominaga _ Shiho Fujii/Animal Crossing - Your Favourite Songs (Original Soundtrack)/03 Daytime In City Square.flac] [-map] [0:0] [-b:a] [192k] [-v] [0] [-f] [mp3] [-]\r\n2018-01-27 10:54:08.750  INFO --- o.a.p.c.StreamController                 : Got HTTP range: 2756762-\r\n2018-01-27 10:54:08.750  INFO --- o.a.p.io.PlayQueueInputStream            : gryphon listening to \"Animal Crossing - Your Favourite Songs (Original Soundtrack)/03 Daytime In City Square.flac\"\r\n2018-01-27 10:54:08.752  INFO --- o.a.p.io.TranscodeInputStream            : Starting transcoder: [/var/airsonic/transcode/ffmpeg] [-i] [/var/airsonic/music/Kazumi Totaka _ Manaka Tominaga _ Shiho Fujii/Animal Crossing - Your Favourite Songs (Original Soundtrack)/03 Daytime In City Square.flac] [-map] [0:0] [-b:a] [192k] [-v] [0] [-f] [mp3] [-]\r\n2018-01-27 10:54:14.523  INFO --- o.a.p.c.StreamController                 : Got HTTP range: 2756762-\r\n```\r\n(Some unrelated AudioScrobbler lines omitted)\r\n\r\nIt will continue spamming this same message every few seconds until I stop it from continuing to attempt playback.\r\n\r\nEDIT2:\r\n\r\nI have ruled out it being a network drive / timeout issue by copying an album containing offending files onto a local drive, adding that folder as a new Media source, and playing the duplicate version of the album. It fails on the exact same tracks, in the exact same way. I tracked down what looks like a very similar Madsonic issue here, which mentions problems with the audio scanner: http://forum.madsonic.org/viewtopic.php?t=2230 \r\n\r\nThe Madsonic author's suggested fixes seem irrelevant though as those options aren't available in Airsonic. \r\n\r\nEDIT3: \r\n\r\nI attempted rescanning my library with fast access mode enabled. No change."},"comment":{"url":"https://api.github.com/repos/airsonic/airsonic/issues/comments/365982866","html_url":"https://github.com/airsonic/airsonic/issues/685#issuecomment-365982866","issue_url":"https://api.github.com/repos/airsonic/airsonic/issues/685","id":365982866,"user":{"login":"gerroon","id":8519469,"avatar_url":"https://avatars1.githubusercontent.com/u/8519469?v=4","gravatar_id":"","url":"https://api.github.com/users/gerroon","html_url":"https://github.com/gerroon","followers_url":"https://api.github.com/users/gerroon/followers","following_url":"https://api.github.com/users/gerroon/following{/other_user}","gists_url":"https://api.github.com/users/gerroon/gists{/gist_id}","starred_url":"https://api.github.com/users/gerroon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerroon/subscriptions","organizations_url":"https://api.github.com/users/gerroon/orgs","repos_url":"https://api.github.com/users/gerroon/repos","events_url":"https://api.github.com/users/gerroon/events{/privacy}","received_events_url":"https://api.github.com/users/gerroon/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T16:31:30Z","updated_at":"2018-02-15T16:31:30Z","author_association":"NONE","body":"I have this issue when casting to upnp player via an app like Dsub. Most of the time it has issues with high quality songs that are longer than say 5 mins. I seem to get this with flacs and mp3s that have 320 bitrates."}}
{"actor":{"display_login":"gerroon"}}