Default port number keeps changing

I recently encountered an recurring issue over the past couple weeks. My default NZB Drone port is 8989 but every few days I notice I can no longer connect to NZB Drone via the IP address:8989 because the port keeps changing to 8085! If I change the port number in the settings back to 8989 sometimes it will automatically go back to 8085 before I can even hit save and restart. Other times I can change the port to 8989, save and restart and it works fine until the next occurrence.

Interestingly, my Sabnzbd uses port 8085 so when this issue happens it messes up my access to Sab as well.

Running version 2.0.0.1861

Why is this happening?

Drone never changes its port, if port 8989 was in use it would fail to start and log an error message. If you changed it to anything other than 8989 that would be the only port it would use.

Which OS?

Sounds like multiple instances of drone running, under different users and one is bound to 8989 and the other is 8085. Search your system for nzbdrone.db if there is more than 1 that could be the issue.

I’m using Windows 7.

It may be multiple instances. I did a search for for nzbdrone.db and attached a screen shot of the results.

I’m not sure if they’re duplicate files or back up files. Also, in the programs list the NZB Drone exe launches the program with port 8085. However, if I use my browser url it’s 8989. Some sort of duplication is happening. But what should I do to fix it so that only one instance is running? I didn’t want to delete any db files unless I was sure.

Ahh sounded like it was running on another OS, but Windows will only run one copy, even if multiple were started they would share the same settings.

The port is stored in config.xml which is in C:\ProgramData\NzbDrone, can you pastebin the contents (blanking out the ApiKey and SslCertHash if its been set), please.

The config file had a port of 8050 which should have been 8989. I changed it so I’ll keep an eye on it.