Port reset on each reboot

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
exchequer
Newbie
Newbie
Posts: 12
Joined: March 22nd, 2012, 7:19 pm

Port reset on each reboot

Post by exchequer »

For some reason after every boot my sabznbd.ini gets rewritten to port 5000. If I change it to something else (e.g. port 5050) it works 100% after I restart sabznbdplus. However when I restart the system it will reset and modify the timestamp of the .ini file. My other settings (e.g. servers, categories, flags) are retained.

Any thoughts why this is happening?

I checked the sript in init.d/sabnzbdplus however I did not find a fixed port there.
Last edited by exchequer on December 27th, 2015, 10:38 pm, edited 1 time in total.
exchequer
Newbie
Newbie
Posts: 12
Joined: March 22nd, 2012, 7:19 pm

Re: Port reset on each reboot

Post by exchequer »

Ok that was fast. Once I realised that port 5000 is not the default sabnzbd port but instead a port I must have chosen, I went back to the installation instructions. There I noticed this file: /etc/default/sabnzbdplus:

Code: Select all

# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=xxx

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=5000

# [optional] extra command line options, if any:
EXTRAOPTS=
So that file was causing my troubles!
Post Reply