kuri 0 Posted May 27, 2016 Share Posted May 27, 2016 Since im updated from 3.0.5818-1 to 3.0.5971-1, emby has become completely unstable. It oftens restarts by itself while using web gui, or just stops responding, throwing 500 errors when querying /, requiring a manual restart. Playing video also fails. pacman logs : [2016-05-26 09:38] [ALPM] upgraded emby-server (3.0.5818-1 -> 3.0.5971-1) [2016-05-27 18:22] [ALPM] upgraded emby-server (3.0.5971-1 -> 3.0.5972-1) Since these two updates, emby is unusable. GUI will often send me thoses : Failed to load resource: the server responded with a status of 500 (Internal Server Error) apiclient.js?v=3.0.5972.0:560 web socket connection opened router.js?v=3.0.5972.0:284 embyRouter - processing path request /web/dashboard.html router.js?v=3.0.5972.0:294 embyRouter - user is authenticated mediacontroller.js?v=3.0.5972.0:16 keyCode 91 mediacontroller.js?v=3.0.5972.0:16 keyCode 123 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items/dbaf152a836bb2eb0283e3bfe12c77d5 No logs will be added to system logs, except if the app completely crashes, leading to systemd restarting it automatically. Playing videos will start but crash after just a few secs, getting this kind of logs in browser's console : apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items/325f38b888644902593467aed39a9326 apiclient.js?v=3.0.5972.0:217 Fetch complete: GET "http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items/325f38b888644902593467aed39a9326".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.getJSON @ apiclient.js?v=3.0.5972.0:303self.getItem @ apiclient.js?v=3.0.5972.0:688(anonymous function) @ mediaplayer.js?v=3.0.5972.0:48self.getItemsForPlayback @ mediaplayer.js?v=3.0.5972.0:48(anonymous function) @ mediaplayer.js?v=3.0.5972.0:26 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Shows/2ade0a7c6cd042a317c69f37bc658815/Ep…lse&UserId=9dbd6413f99942d6b1017c3a2f04e04f&Fields=MediaSources%2CChapters apiclient.js?v=3.0.5972.0:217 Fetch complete: GET "http://video.friloux.me:8096/emby/Shows/2ade0a7c6cd042a317c69f37bc658815/Ep…lse&UserId=9dbd6413f99942d6b1017c3a2f04e04f&Fields=MediaSources%2CChapters".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.getJSON @ apiclient.js?v=3.0.5972.0:303self.getEpisodes @ apiclient.js?v=3.0.5972.0:1239(anonymous function) @ mediaplayer.js?v=3.0.5972.0:22 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items/325f38b888644902593467aed39a9326/Intros apiclient.js?v=3.0.5972.0:217 Fetch complete: GET "http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items/325f38b888644902593467aed39a9326/Intros".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.getJSON @ apiclient.js?v=3.0.5972.0:303self.playWithIntros @ mediaplayer.js?v=3.0.5972.0:28(anonymous function) @ mediaplayer.js?v=3.0.5972.0:26 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Playback/BitrateTest?Size=1000000 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Playback/BitrateTest?Size=2400000 mediaplayer.js?v=3.0.5972.0:41 Max bitrate auto detected to 135929203 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Items/957c0b5f03229740f876941a2768057d/PlaybackInfo?UserId=9dbd6413f99942d6b1017c3a2f04e04f&StartTimeTicks=0 apiclient.js?v=3.0.5972.0:217 Fetch complete: POST "http://video.friloux.me:8096/emby/Items/957c0b5f03229740f876941a2768057d/PlaybackInfo?UserId=9dbd6413f99942d6b1017c3a2f04e04f&StartTimeTicks=0".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.ajax @ apiclient.js?v=3.0.5972.0:181self.getPlaybackInfoInternal @ mediacontroller.js?v=3.0.5972.0:59getPlaybackInfoWithoutLocalMediaSource @ mediacontroller.js?v=3.0.5972.0:54(anonymous function) @ mediacontroller.js?v=3.0.5972.0:52 jquery.slim.min.js?v=3.0.5972.0:3 /deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details. htmlmediarenderer.js?v=3.0.5972.0:73 Setting new text track index to: -1 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Sessions/Playing nowplayingbar.js?v=3.0.5972.0:50 nowplaying event: playbackstart htmlmediarenderer.js?v=3.0.5972.0:73 Setting new text track index to: -1 apiclient.js?v=3.0.5972.0:217 Fetch complete: POST "http://video.friloux.me:8096/emby/Sessions/Playing".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.ajax @ apiclient.js?v=3.0.5972.0:181self.reportPlaybackStart @ apiclient.js?v=3.0.5972.0:3202(anonymous function) @ mediacontroller.js?v=3.0.5972.0:3(anonymous function) @ events.js?v=3.0.5972.0:57trigger @ events.js?v=3.0.5972.0:56self.onPlaybackStart @ mediaplayer.js?v=3.0.5972.0:76onOnePlaying @ mediaplayer-video.js?v=3.0.5972.0:77(anonymous function) @ events.js?v=3.0.5972.0:57trigger @ events.js?v=3.0.5972.0:56onPlaying @ htmlmediarenderer.js?v=3.0.5972.0:6 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Sessions/Playing/Progress apiclient.js?v=3.0.5972.0:217 Fetch complete: POST "http://video.friloux.me:8096/emby/Sessions/Playing/Progress".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.ajax @ apiclient.js?v=3.0.5972.0:181self.reportPlaybackProgress @ apiclient.js?v=3.0.5972.0:3233sendProgressUpdate @ mediaplayer.js?v=3.0.5972.0:79(anonymous function) @ mediaplayer.js?v=3.0.5972.0:4 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Sessions/Playing/Progress apiclient.js?v=3.0.5972.0:217 Fetch complete: POST "http://video.friloux.me:8096/emby/Sessions/Playing/Progress".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.ajax @ apiclient.js?v=3.0.5972.0:181self.reportPlaybackProgress @ apiclient.js?v=3.0.5972.0:3233sendProgressUpdate @ mediaplayer.js?v=3.0.5972.0:79(anonymous function) @ mediaplayer.js?v=3.0.5972.0:4 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Sessions/Playing/Progress apiclient.js?v=3.0.5972.0:217 Fetch complete: POST "http://video.friloux.me:8096/emby/Sessions/Playing/Progress".getFetchPromise @ apiclient.js?v=3.0.5972.0:217self.fetch @ apiclient.js?v=3.0.5972.0:276self.ajax @ apiclient.js?v=3.0.5972.0:181self.reportPlaybackProgress @ apiclient.js?v=3.0.5972.0:3233sendProgressUpdate @ mediaplayer.js?v=3.0.5972.0:79(anonymous function) @ mediaplayer.js?v=3.0.5972.0:4 :8096/emby/videos/957c0b5f03229740f876941a2768057d/stream.mkv?DeviceId=02c6…262e1d33bc44e19fb5fbc1737c3771&CopyTimestamps=true&ForceLiveStream=false:1 GET http://video.friloux.me:8096/emby/videos/957c0b5f03229740f876941a2768057d/s…ba262e1d33bc44e19fb5fbc1737c3771&CopyTimestamps=true&ForceLiveStream=false net::ERR_INVALID_CHUNKED_ENCODING htmlmediarenderer.js?v=3.0.5972.0:11 Media element error code: 2 mediaplayer.js?v=3.0.5972.0:76 playback stopped apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Sessions/Playing/Stopped nowplayingbar.js?v=3.0.5972.0:53 nowplaying event: playbackstop mediaplayer.js?v=3.0.5972.0:54 playing next track apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Videos/ActiveEncodings?deviceId=02c63b11de82fc17871bbf672bf1ca99 apiclient.js?v=3.0.5972.0:274 Requesting url without automatic networking: http://video.friloux.me:8096/emby/Items/051d9e99730bd852568c711198548d8d/PlaybackInfo?UserId=9dbd6413f99942d6b1017c3a2f04e04f&StartTimeTicks=0 Most of the time, a failure at playing video will lead emby to also thow 500 errors afterwards, when querying home.html. Latest logs from emby : [root@friloux logs]# ls -altrh | tail -n3 drwxr-xr-x 2 emby emby 64K 27 mai 19:02 . -rw-r--r-- 1 emby emby 4,3K 27 mai 19:02 directstream-825442e4-ee15-4aa3-b811-882cef440520.txt -rw-r--r-- 1 emby emby 2,9M 27 mai 19:07 server-63599972526.txt A copy of those logs are here : https://www.friloux.me/tmp/emby/directstream-825442e4-ee15-4aa3-b811-882cef440520.txt https://www.friloux.me/tmp/emby/server-63599972526.txt Logs indicate a too many open files error. Seems an automatic scan is started when emby is starting, and i believe it is it that leads the server to hell. I also lost a damn lot of movie covers when upgrading, leading me to spend a few hours setting them manually between crashes. I am on my way to increase the max open files limit on my system, but everyone should agree that something is not going well. Output from lsof : https://www.friloux.me/tmp/emby/lsof.txt Am i guessing right if those pipes are pipes openned to read/write to ffmpeg/ffprobe process ? Seems like a change since 3.0.5818-1 leaves pipes opened (or the problem had always been there but hided by the fact that automatic scans did not update everything ?). Looking for more ideas from you guys. Link to comment Share on other sites More sharing options...
Luke 37112 Posted May 27, 2016 Share Posted May 27, 2016 Hi, can you please attach the log files? those links create this. Thanks. Link to comment Share on other sites More sharing options...
kuri 0 Posted May 27, 2016 Author Share Posted May 27, 2016 Ah, also forgot a thing : Starting emby thows lots of errors : http://0bin.net/paste/sFdl+X25UAC6LaOK#2J0cAFF0giObzMC-n4EEl43o0IrTPav95l+RwFEAN/y Link to comment Share on other sites More sharing options...
kuri 0 Posted May 27, 2016 Author Share Posted May 27, 2016 Hi, can you please attach the log files? those links create this. Thanks. This is because the cert is signed by CA-Cert and that your browser doesnt trust them. directstream-825442e4-ee15-4aa3-b811-882cef440520.txt lsof.txt server-63599972526.txt Link to comment Share on other sites More sharing options...
kuri 0 Posted May 27, 2016 Author Share Posted May 27, 2016 [root@friloux Films]# cd /var/cache/pacman/pkg/ [root@friloux pkg]# ls -l *mono* -rw-r--r-- 1 root root 30744412 29 nov. 18:34 mono-4.2.1.102-1-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 30753772 31 janv. 13:23 mono-4.2.2.30-2-x86_64.pkg.tar.xz -rw-r--r-- 1 root root 38090772 28 mars 14:40 mono-4.4.0.40-2-x86_64.pkg.tar.xz [root@friloux pkg]# pacman -U mono-4.2.2.30-2-x86_64.pkg.tar.xz chargement des paquets... avertissement : retourne à la version antérieure du paquet mono (4.4.0.40-2 => 4.2.2.30-2) résolution des dépendances... recherche des conflits entre paquets... Paquets (1) mono-4.2.2.30-2 Taille totale installée : 122,62 MiB Taille de mise à jour nette : -33,64 MiB :: Procéder à l’installation ? [O/n] (1/1) vérification des clés dans le trousseau [####################################################################] 100% (1/1) vérification de l’intégrité des paquets [####################################################################] 100% (1/1) chargement des fichiers des paquets [####################################################################] 100% (1/1) analyse des conflits entre fichiers [####################################################################] 100% (1/1) vérification de l’espace disque disponible [####################################################################] 100% :: Traitement des changements du paquet... (1/1) réinstallation d’une ancienne version mono [####################################################################] 100% Will tell you if problems still happens. Link to comment Share on other sites More sharing options...
Luke 37112 Posted May 27, 2016 Share Posted May 27, 2016 Try the latest stable version of mono - 4.2.3.4. You are running 4.4 which is still pre-release, and we've seen a number of issues with it. Link to comment Share on other sites More sharing options...
Luke 37112 Posted May 27, 2016 Share Posted May 27, 2016 Edit: Ok, saw above, thanks. Link to comment Share on other sites More sharing options...
kuri 0 Posted May 27, 2016 Author Share Posted May 27, 2016 It seems you guessed right! No crash since i downgraded mono. I did let a playlist to run while having diner, it was still working when back. On the dashboard i can see : Convert media 55.0%Scan media library 45.4% And no crash, it used to crash at ~10% everytime since yesterday. So a great thx for fast replies and perfect troubleshooting! Link to comment Share on other sites More sharing options...
Luke 37112 Posted May 27, 2016 Share Posted May 27, 2016 Well done, thanks for reporting back. Link to comment Share on other sites More sharing options...
kuri 0 Posted May 27, 2016 Author Share Posted May 27, 2016 Just so you know, i started a thread on the archlinux BBS ( https://bbs.archlinux.org/viewtopic.php?pid=1630299#p1630299 ) so you're not alone having feedbacks about this breakage. Link to comment Share on other sites More sharing options...
Luke 37112 Posted May 27, 2016 Share Posted May 27, 2016 Thanks, yea. i don't know why they decided to mark 4.4 as stable. It's been that way for over a month even back when it was in early alpha stages. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now