Jump to content

emby-server not listening to http/https requests at random


maxxoverclocker

Recommended Posts

maxxoverclocker

Hi,

 

I've been having issues since upgrading (fresh install and restore using backup plugin) to 3.4.1.0. Basically what happens is emby-server will be running for hours without issue (sometimes only minutes), and then it just stops. Usually while in the middle of playback. The service doesn't stop, it just stops responding to https or http requests. I've verified this by running a curl command to look at the headers returned when this is happening.

curl --silent --insecure --connect-timeout 5 --max-time 8 --head http://emby.local:8096 | grep "HTTP/1.[01] 302 Found"
curl --silent --insecure --connect-timeout 5 --max-time 8 --head https://emby.local:8920 | grep "HTTP/1.[01] 302 Found" 

My setup is the following:

  • Hypervisor: ESXi 6.5.0 Update 1 (Build 7967591)
  • CPU: AMD Ryzen 7 1700
  • OS: Ubuntu 18.04 LTS
  • vCPUs: 8
  • RAM: 2GB

What I've done to combat this is I've create a cron script that runs every minute to check on the status of emby's http/https responses and restart the service accordingly:

sleep 10s
date=`date '+%F %H:%M:%S'`

if [[ $(netstat -ntlp | grep LISTEN | grep EmbyServer | grep 8096) ]]; then
    if [[ $(curl --silent --insecure --connect-timeout 5 --max-time 8 --head http://emby.local:8096 | grep "HTTP/1.[01] 302 Found") ]]; then
        if [[ $(netstat -ntlp | grep LISTEN | grep EmbyServer | grep 8920) ]]; then
            sleep 1s
            if [[ $(curl --silent --insecure --connect-timeout 5 --max-time 8 --head https://emby.local:8920 | grep "HTTP/1.[01] 302 Found") ]]; then
                sleep 1s
            else
                echo "$date : emby-server is not responding to https requests... restarting service"
                /usr/sbin/service emby-server restart
            fi
        else
            echo "$date : emby-server is not listening https requests... restarting service"
            /usr/sbin/service emby-server restart
        fi
        else
            echo "$date : emby-server is not responding to http requests... restarting service"
            /usr/sbin/service emby-server restart
    fi
else
    echo "$date : emby-server is not listening http requests... restarting service"
    /usr/sbin/service emby-server restart
fi

I set this script up yesterday and I've already had a few occurrences:

2018-05-16 21:57:11 : emby-server is not responding to http requests... restarting service
2018-05-16 21:59:11 : emby-server is not responding to http requests... restarting service
2018-05-17 09:52:11 : emby-server is not responding to https requests... restarting service

I've attached my server logs, but I really don't see what the issue is. I will note that *sometimes* when https doesn't work, http will continue to work. And when you log in to the admin console, it shows remote connections as http instead of https. This is making me feel like this is a config issue.

 

Suggestions?

 

Thanks!

emby-server_logs.7z

Link to comment
Share on other sites

Hi, there's nothing obvious that jumps out here but i would suggest re-evaluating this with the next release of emby server. Thanks !

Link to comment
Share on other sites

maxxoverclocker

Hi, there's nothing obvious that jumps out here but i would suggest re-evaluating this with the next release of emby server. Thanks !

 

Thanks! I will patiently wait for the next release :) The workaround seems to really make it not noticeable to the end user at the very least!

Link to comment
Share on other sites

  • 2 months later...
marauder

A bit of a late bump, but I have a similar issue. The server will randomly stop responding on HTTP/HTTPS for 5-10 minutes then it'll come back. Once i'm connected it'll always stay connected, so I don't have to worry about playback stopping. But I will be trying to connect and it won't connect, but I can SSH into the machine without issue. WIthout making any changes or touching the system I'll be able to connect again. It's never more than 5-10 minutes. All the connections are from external. I also did a fresh reinstall at around 3.4.x and restored using server backup.

Release Version 3.5.1.0

 

  • Hypervisor: ESXi 6.5.0
  • OS: Ubuntu 18.04 LTS
  • vCPUs: 4
  • RAM: 32GB

Attached logs

Edited by marauder
Link to comment
Share on other sites

marauder

And you're saying this has happened with the new 3.5.1 release?

 

I actually just updated to 3.5.1 last night. I should correct it that I've experienced this issue will all versions from 3.2 through to 3.5.0. I do not know if 3.5.1 has resolved it yet. I will try to replicate it and let you know.

Link to comment
Share on other sites

Well it won't be different from 3.5. If the issue remains, try turning off the server's dlna features, then restart the server and see if that makes a difference. thanks.

Link to comment
Share on other sites

marauder

I had the issue happen again. This time it happened while I was playing a video, that hasn't happened before. It happened around 930 PM. Afterwards i could connect back but emby was to slow to do anything, it wasn't loading the pages properly and couldn't play anything. Around 10:15 The server was completely unconnectable until the process was restarted. Looking at my settings I do not have DNLA enabled. 

I've attached the logs from that day. I have also updated to Version 3.5.2.0

post-9825-0-47364000-1532958318_thumb.jpeg

embyserverlogs_7_27.txt

Edited by marauder
Link to comment
Share on other sites

  • 4 weeks later...
maxxoverclocker

Well it won't be different from 3.5. If the issue remains, try turning off the server's dlna features, then restart the server and see if that makes a difference. thanks.

 

Luke, it looks like this was resolved in 3.5.2.0 (for me). I haven't had any instances of random listening issues since! Thank you!

 

2018-07-27 19:44:11 : emby-server is not responding to https requests... restarting service
2018-07-29 23:32:11 : emby-server is not listening to http requests... restarting service
2018-07-30 10:38:11 : emby-server is not listening to http requests... restarting service
2018-07-30 10:39:11 : emby-server is not responding to https requests... restarting service
2018-08-07 11:29:11 : emby-server is not responding to https requests... restarting service
2018-08-07 12:05:11 : emby-server is not responding to https requests... restarting service
2018-08-07 12:11:11 : emby-server is not responding to https requests... restarting service
2018-08-09 21:42:11 : emby-server is not responding to http requests... restarting service
2018-08-14 09:30:11 : emby-server is not responding to https requests... restarting service
## 2018-08-15: Upgraded to 3.5.2.0
Edited by maxxoverclocker
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...