Hopsakee 7 Posted July 30, 2016 Share Posted July 30, 2016 Emby server 3.0.6020.0 Ubuntu 16.04 My Emby servers stops (crashes). Until now only when I don't play anything. I have to restart it using sudo service emby-server start See attached log files from Emby server. status report from systemctl gives: Loaded: loaded (/lib/systemd/system/emby-server.service; disabled; vendor preset: enabled) Actice: failed (Result: exit-code) since za 2016-07-30 12:54:24 CEST; 1h 9min ago Process: 10635 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCES) Process: 3695 ExecStart=/usr/bin/emby-server start (code=exited, status=87) Main PID: 3695 (code=exited, status 87) jul 30 10:10:36 Deanston systemd[1]: Started Emby Media Server. jul 30 10:10:36 Deanston su[3695]: Succesful sy for emby by root jul 30 10:10:36 Deanston su[3695]: + ??? root:emby jul 30 10:10:36 Deanston su[3695]: pam_unix(su:session): session opened for user emby by (uid=0) jul 30 12:54:24 Deanston systemd[1]: emby-server.service: Main process exited, code=exited, status=87/n/a jul 30 12:54:24 Deanston systemd[1]: emby-server.service: Unit entered failed state. jul 30 12:54:24 Deanston systemd[1]: emby-server.service: Failed with result 'exit-code'. I found two other posts with 'random crashes'. But after reading them, I think my issue is somewhat different. That's why I made a new topic. Feel free to ad my post to the other topic if someone thinks it is the same issue. The other topics are: http://emby.media/community/index.php?/topic/37212-random-crashes-on-ubuntu-1604/ http://emby.media/community/index.php?/topic/36302-emby-server-crashes-randomly-during-periods-of-inactivity/ http://emby.media/community/index.php?/topic/37293-debian-8-emby-server-3060000-randomly-crashing/?hl=crash&do=findComment&comment=349674 I think my issue is different, because - I think (don't know for sure) my crashes only started from version 3.0.6. - my systemctl error has got a different number (I think). server-63605470237.txt unhandled_1d2ee75f-dcb9-401e-88e9-8b2a440dce21.txt Link to comment Share on other sites More sharing options...
Guest plexman Posted July 30, 2016 Share Posted July 30, 2016 Exactly the same, here are the logs and a screenshot of systemctl status. (I can't upload from the mobile version of the forum so here is the link) https://cloud.sarasate.eu/index.php/s/I8X1n6FfRPhKF8G Link to comment Share on other sites More sharing options...
joshroblee 4 Posted July 30, 2016 Share Posted July 30, 2016 Hi, I have the same problem and same exit code. I have attached a log that went up to the fail with quite a few error leading up to the end. server-63605433600.txt Link to comment Share on other sites More sharing options...
Luke 36886 Posted July 30, 2016 Share Posted July 30, 2016 I would suggest moving up to mono 4.2.3.4 or 4.4.1. 1 Link to comment Share on other sites More sharing options...
Hopsakee 7 Posted August 1, 2016 Author Share Posted August 1, 2016 I would love to. But how do I move up my mono version? I tried http://www.mono-project.com/docs/getting-started/install/linux/ And I believe I than can install different mono packages. But which package do I need? mono-complete? Sent from my FP2 using Tapatalk Link to comment Share on other sites More sharing options...
Hopsakee 7 Posted August 1, 2016 Author Share Posted August 1, 2016 I managed to get mono 4.4.1 on my Ubuntu 16.04 system by following http://www.mono-project.com/docs/getting-started/install/linux/ and then installing mono-complete. Unfortunately, that didn't help. See my new log files attached. server-63605647603.txt unhandled_aa1d3d57-4d10-41f9-a2cc-3ca613c008e2.txt Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 1, 2016 Share Posted August 1, 2016 Ok, sorry to hear about this. As a test, can you remove your plugins and see if the issue occurs with just the core server? Thanks. Link to comment Share on other sites More sharing options...
Guest plexman Posted August 1, 2016 Share Posted August 1, 2016 For all of you who have the same problem of the server crashing randomly, I saw a little bash script which checks the pid of mono-sgen process and if is not present it restarts the emby-server. I saw the script in stackoverflow, here is the link http://stackoverflow.com/questions/20162678/linux-script-to-check-if-process-is-running-act-on-the-result #! /bin/bash case "$(pidof mono-sgen | wc -w)" in 0) echo "Restarting Emby server:" service emby-server restart ;; 1) echo "Emby server already running" ;; esac I run it with cron every minute like this, "crontab -e": * * * * * /path/to/script Hope it helps keeping your server up until a solution is available. The script is attached, just change the file extension to .sh give x permissions and run it. You can test it by intentionally stopping your server and running the script and seeing if it restarts the server. embychecker.txt Link to comment Share on other sites More sharing options...
Hopsakee 7 Posted August 2, 2016 Author Share Posted August 2, 2016 @@Luke Maybe it did work after all. My server has been running flawlessly since yesterday morning. I'll keep you posted. If the server will crash again, I will disable the addons. Sent from my FP2 using Tapatalk Link to comment Share on other sites More sharing options...
joshroblee 4 Posted August 2, 2016 Share Posted August 2, 2016 Mine has been running since I updated to 4.4.1, this seems to have fixed it. Thanks Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 2, 2016 Share Posted August 2, 2016 Thanks for the report. Link to comment Share on other sites More sharing options...
joshroblee 4 Posted August 3, 2016 Share Posted August 3, 2016 hi, it crashed again last night / this morning. The service was still running and had to be stopped and started. This is some of the last of the log as the whole log is 30Mb. 2016-08-03 06:34:40.3279 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) <0x4129f6d0 + 0x00207> in <filename unknown>:0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () <0x413383a0 + 0x00047> in <filename unknown>:0 Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 3, 2016 Share Posted August 3, 2016 hi, it crashed again last night / this morning. The service was still running and had to be stopped and started. This is some of the last of the log as the whole log is 30Mb. 2016-08-03 06:34:40.3279 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 2016-08-03 06:34:40.3289 Error SsdpHandler: Error creating socket *** Error Report *** Version: 3.0.6020.0 Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh Operating system: Unix 4.4.0.31 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /var/lib/emby-server Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe Too many open files System.Net.Sockets.SocketException at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) in :0 at MediaBrowser.Dlna.Ssdp.Datagram.CreateSocket () in :0 Yes there are still some issues with mono 4.4.1. 4.2.3.4 is still the best option right now. Link to comment Share on other sites More sharing options...
Hopsakee 7 Posted August 4, 2016 Author Share Posted August 4, 2016 Same here. Emby hasn't crashed since 3 days. Thanks for helping me solve this. Sent from my FP2 using Tapatalk Link to comment Share on other sites More sharing options...
Hopsakee 7 Posted August 7, 2016 Author Share Posted August 7, 2016 (edited) Unfortunately Emby crashed again today. See attachments. server-63606124800.txt unhandled_fa80feec-5d06-4218-92df-46702902051e.txt I would really love to install mono 4.2.3.4. But I really can't find out how. Can someone please explain how to do that on Ubuntu 16.04? Or point me to a site where this is explained? I can find websites that explain how to install the latest (version 4.4) and websites that explain how I can install the Ubuntu version (an older version, I don't know which one). I also came up with another theory. Could it be that emby crashes because I have my library on an external HDD that goes to sleep after 3 hours. Maybe the startup time of my external HDD is to large and emby crashes because it can't find the correct file in time? Edited August 7, 2016 by Hopsakee Link to comment Share on other sites More sharing options...
pr3dict 33 Posted August 7, 2016 Share Posted August 7, 2016 (edited) Im having the same issue with Debian btw... I don't understand the whole mono thinig either lol. Also, I cannot even get the server to start now... Stopping the server and starting it does not work Restarting does not work Restarted the whole machine and when it came back up I tried to start service and still does not work When I say It doesnt work I mean, there is no process as emby-server listed in top, and when I go to :8096 it shows connection refused, and that only happens when the server is offline. Any ideas? Edited August 7, 2016 by pr3dict Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 7, 2016 Share Posted August 7, 2016 Unfortunately Emby crashed again today. See attachments. server-63606124800.txt unhandled_fa80feec-5d06-4218-92df-46702902051e.txt I would really love to install mono 4.2.3.4. But I really can't find out how. Can someone please explain how to do that on Ubuntu 16.04? Or point me to a site where this is explained? I can find websites that explain how to install the latest (version 4.4) and websites that explain how I can install the Ubuntu version (an older version, I don't know which one). I also came up with another theory. Could it be that emby crashes because I have my library on an external HDD that goes to sleep after 3 hours. Maybe the startup time of my external HDD is to large and emby crashes because it can't find the correct file in time? I would update to the latest version of Emby Server. Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 7, 2016 Share Posted August 7, 2016 Im having the same issue with Debian btw... I don't understand the whole mono thinig either lol. Also, I cannot even get the server to start now... Stopping the server and starting it does not work Restarting does not work Restarted the whole machine and when it came back up I tried to start service and still does not work When I say It doesnt work I mean, there is no process as emby-server listed in top, and when I go to :8096 it shows connection refused, and that only happens when the server is offline. Any ideas? Check the website download page for instructions on how to start the server. Link to comment Share on other sites More sharing options...
pr3dict 33 Posted August 7, 2016 Share Posted August 7, 2016 Check the website download page for instructions on how to start the server.Luke I don't want to sound rude but I obviously know how to start and stop the server/ a service in Linux. What I'm trying to get at is; it's not working. Sent from my VS987 using Tapatalk Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 7, 2016 Share Posted August 7, 2016 Luke I don't want to sound rude but I obviously know how to start and stop the server/ a service in Linux. What I'm trying to get at is; it's not working. Sent from my VS987 using Tapatalk Ok, then please make sure to provide the info requested in how to report a problem. thanks! Link to comment Share on other sites More sharing options...
Jdiesel 1112 Posted August 9, 2016 Share Posted August 9, 2016 I seem to be experiencing the same issue. On Mono 4.2.3 right now. Seems to be going down every few hours but I can't seem to link the crash to a specific task running. Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 9, 2016 Share Posted August 9, 2016 I seem to be experiencing the same issue. On Mono 4.2.3 right now. Seems to be going down every few hours but I can't seem to link the crash to a specific task running. Remove plugins and turn off the realtime monitor under library-> advanced, then see if the issue persists with just the core server. Link to comment Share on other sites More sharing options...
Jdiesel 1112 Posted August 9, 2016 Share Posted August 9, 2016 Remove plugins and turn off the realtime monitor under library-> advanced, then see if the issue persists with just the core server. Done, I will report back in a few hours. Link to comment Share on other sites More sharing options...
Jdiesel 1112 Posted August 10, 2016 Share Posted August 10, 2016 No issues in the last 20 hours. I will start enabling plugins one at a time now until I experience an issues again. Link to comment Share on other sites More sharing options...
Luke 36886 Posted August 10, 2016 Share Posted August 10, 2016 Thanks for reporting. 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