Jump to content

Server Issue: HTTP server unable to start due to Socket Error


jlr

Recommended Posts

Hi I am looking for a little help with an issue I am having with my Media Browser server. The server appears to start okay but when I try to access the server web gui I get web page unavailable error. When I try to access the server through Media Browser Theater the server is unavailable. I am trying to access the server from the same PC that the server is installed on. Nothing has been installed/uninstalled or changed on the computer since Media Browser was working last. The only thing I was using Media Browser for was accessing the Game Browser plugin through Media Browser Theater. The only library configured was the emulator games on a network drive.

 

I am running version 3.0.5347.22095 on a Windows 7 computer.

 

Here are the things I have tried so far to resolve the issue:

 

- Rebooted the server and the computer

- Tried different Web Browsers

- Tried clearing web browser temp files

- Tried running Media Browser from Tray app and as a Service

- Tried changing the port number for the web gui in the config file and accessing it from the new port

- Tried uninstalling, deleting files in C:\Users\JLR\AppData\Roaming\MediaBrowser-Server and reinstalled Media Browser server

- Tried disabling AV and Windows Firewall

- Tried uninstalling and reinstalliing .Net

 

I have attached a couple of server logs which show this socket error which seems to be causing the issue but I can not seem to fix it.

 

"2014-09-02 16:35:28.6494 Error - ServerManager: The http server is unable to start due to a Socket error. This can occasionally happen when the operating system takes longer than usual to release the IP bindings from the previous session. This can take up to five minutes. Please try waiting or rebooting the system."

 

Also I had this issue once before and it went away by itself after a couple of days so I am wondering if something on my system or my network is causing a conflict.

 

Thanks for the help, I am willing to try any troubleshooting steps that might resolve this issue.

server-63545273553.txt

server-63545252754.txt

Link to comment
Share on other sites

CBers

I can't remember, but is that a dev build or the latest beta?

 

I have reported something similar in the dev forums, referencing your post.

Link to comment
Share on other sites

the server is unable to bind to the port at startup. the server process is running fine but it's unable to receive http requests from client apps. generally that error is due to being blocked by firewall software. it could also be from another application already using the port.

Link to comment
Share on other sites

Thanks for looking at this. I attached a screenshot and server log of the error while using a different port number and having Windows Firewall and Microsoft Security Essentials turned off. I also attached the netstat output which does not list anything using the port I changed Media Browser to use (9016). Anything else I can try?

server-63545329026.txt

post-5441-0-22081600-1409750654_thumb.jpg

netstat.txt

  • Like 1
Link to comment
Share on other sites

Unfortunately this is one of those situations that is simple for us in terms of seeing the problem, but not so simple for you in terms of finding the solution. We are attempting to bind to an address and windows is returning the WSAEADDRNOTAVAIL error code. You can find the description on MSDN here.

 

http://msdn.microsoft.com/en-us/library/aa924071.aspx

 

That's all the information we get so I'm afraid that's all I have to pass onto you. From past experience I've seen it occur due to port conflicts, permissions (firewall), malware on the machine, or some odd networking configurations.

Link to comment
Share on other sites

BC101 Thanks for the idea, I ran netcat and it opened port 8096 and I was able to access it from the local PC and another PC on the network. I also tried ending all non-essential processes on the computer but that did not work either. 

post-5441-0-23624400-1409859351_thumb.jpg

post-5441-0-01726100-1409859358_thumb.jpg

Link to comment
Share on other sites

Something's borked with .Net then, i'd assume. Sorry I don't have the capability/resources to debug into that stack. I'd be interested to hear if you ever get to the root cause.

Link to comment
Share on other sites

You've uninstalled the program completely, rebooted, and reinstalled it?

If you right-click the installer's exe, goto Properties under General tab, do  you have a "Unblock" button in the context of "Security: This file came from another computer and might be blocked to help protect this computer." at the bottom of that Window? Do you get same results if you install it after unblocking that setup.exe installer?

Edited by BC101
Link to comment
Share on other sites

Have you tried just setting the port number to 8097 and see your results.  Connect to 8097 with the browser and also try MBT on 8097.  Any port number will work in this case other than 8096.

 

above1

Link to comment
Share on other sites

He's proving the port isn't in use with netcat, as it wouldn't be able to listen if the port was in use. Like Luke said earlier it sounds like "port conflicts" (ruled out) , "permissions (firewall), malware on the machine, or some odd networking configurations." If his firewall was blocking port 8096 specifically it should have blocked netcat too, if the firewall is blocking based on the .exe that's still a possibility, but it should prompt for netcat to listen on that port in that case.

Link to comment
Share on other sites

He's proving the port isn't in use with netcat, as it wouldn't be able to listen if the port was in use. Like Luke said earlier it sounds like "port conflicts" (ruled out) , "permissions (firewall), malware on the machine, or some odd networking configurations." If his firewall was blocking port 8096 specifically it should have blocked netcat too, if the firewall is blocking based on the .exe that's still a possibility, but it should prompt for netcat to listen on that port in that case.

 

Makes perfect sense.  

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