Drone was running fine, but when I booted up my computer today (OS X Lion) and launched Drone, I could not access the web gui, and terminal showed the following error:
[Fatal] ConsoleApp: EPIC FAIL!
System.Net.Sockets.SocketException: Access denied
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in :0
at System.Net.EndPointListener…ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in :0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in :0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in :0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in :0
========================
My shows are still downloading (and terminal shows that Drone is still running in the background), but I can no longer access the web GUI so it’s kind of annoying to use. I don’t think I’ve made any changes that would cause this.
Thanks for any ideas…
How do you start sonarr (drone), plist, or just through terminal. If you kill the currently running process are youvable to start it via terminal and hit the UI or do you get the same error?
Either something is running on that same port or your account that is running it isn’t allowed to reserve the port by the looks of it.
I saw a similar issue on Ubuntub if I had it sonarr running as root and then tried to start another process it would die with a similar error.
I run it via terminal only.
If I kill it and relaunch it via the terminal, I still can’t hit the UI.
Odd that something would change out of the blue, but I’ll see if I can find out if any programs took over a port or something…
OK, I’ve looked at a few things but don’t really know where to begin troubleshooting.
Any steps I can take to start troubleshooting what is causing this?
Checking if something else is running on that port: http://stackoverflow.com/a/4421674/882971
Also worth checking if you can run it via sudo as that will remove permissions issues, but isn’t a fix (because you don’t want to run with sudo all the time).
OK, I’m not a terminal guru by any means, but am I copying this command in correctly? I used:
sudo lsof -i TCP:8989 | grep LISTEN
Which, if that IS correct, returned nothing but the prompt again.
Yeah, that should be it, what about: sudo lsof -i TCP:8989
anything then?
After I type my password the command prompt just comes up again…
Any change if you run sudo mono /path/to/NzbDrone.exe
(will the correct path to NzbDrone.exe)?
When I run it sudo, i can get into the web gui again, but of course none of my settings or series are in there (which makes sense since I ran it sudo).
When I go back and run it normally without sudo, i get the error again, and then cannot open the web gui as before…
Its an older post, but this might have something, specifically the comments on the question about different security services. http://stackoverflow.com/q/10254954/882971
Which version of sonarr (drone) is running?
Hmm, I didn’t see anything in there that related to me.
Last I checked when I was able to see the GUI (a couple of days ago), I was up to date with the latest stable release of drone.
I updated to the latest Drone from today, and also updated everything it relies on as well, but I’m still getting the error, although it has new wording 
I’ve been trying to figure this out, but nothing else seems to be running on that port (as far as I can tell)…
Drone continues to download new shows, but i can’t add any new shows or fix problems since the GUI won’t load…
OK after watching the program load several times via terminal, I noticed something weird in one of the lines before the error:
Info |OwinHostController| http://*:563//
Shouldn’t that line be port 8989, not 563?
If so, I never changed the port, so I’m not sure why it would say that…
Is there a way to change the port without the web GUI?
Holy crap, I managed to fix something myself!
The port had indeed changed to 563 (no idea why, I never changed it!!)
Anyway, I managed to find Drone’s config file after searching around the forums (for future users with the same issue, unhide files on OS X and the config.xml is at: Users\username\.config\NZBDrone
). I edited the config file to use 8989 again, and tada, I’m back in business.
Thanks for pointing me in the right direction!
Possible cause is the browser inserting a new port in the form and it being saved, then on reboot it was changed (takes effect on restart), nothing will automatically change the port. Glad to hear its sorted though.
It happened again. I swear I’m not changing the port manually, so I’m not sure how it’s happening…
The only thing I can think of it what I mentioned in my last post, there isn’t a situation where its changed automatically.