Jump to content

Emby Server crashes (randomly?) in Ubuntu


Hopsakee

Recommended Posts

Hopsakee

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

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

Guest plexman

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

Hopsakee

@@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

joshroblee

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

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

Hopsakee

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

Hopsakee

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 by Hopsakee
Link to comment
Share on other sites

pr3dict

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 by pr3dict
Link to comment
Share on other sites

Unfortunately Emby crashed again today.

See attachments.

attachicon.gifserver-63606124800.txt

attachicon.gifunhandled_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

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

pr3dict

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

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

Jdiesel

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

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

Jdiesel

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

Jdiesel

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...