Page 1 of 1

[Solved!] Unable to change default port number?

Posted: October 3rd, 2014, 10:32 pm
by OOT
New linux user and am using Linux Mint 17 Cinnamon. It's an older Dell laptop.

Initially set sabnzbdplus to use port 10000. I have since decided to change that to 5000.

However, it won't use a different port by default.

I go into Config -> General -> and change the port to 5000.

I click "Save Changes" and then "Restart SABnzbd" buttons.

I click the "OK" button on the "The page at localhost:10000 says:" confirmation window.

I click the "Refresh" button and get a "This webpage is not available" display. Which is what I
expect because it's referencing port 10000. So when I change that in the URL bar to 5000 it works
fine.

However, when I restart the computer it doesn't launch on port 5000 but rather on port 10000.

So I tried "sudo gedit ~/.sabnzbd/sabnzbd.ini", type in the password and gedit launches with the *.ini file.
It shows 10000, not 5000. So I edit the "port = 10000" line to be "port = 5000" and Save and Exit.

But when I restart the computer and go to my bookmark for the 5000 port, it doesn't launch. I use
the command to view the *.ini file (or go into Config -> General) and the port is again listed as 10000.

Even if by hand editing the *.ini file is wrong, why is the saving of the changes through the GUI not
working? Is there some way I can edit the port and keep SABnzbdPlus running on startup without having
to reinstall?

I am very new to linux. If anyone can help it would be greatly appreciated. If you can make the instructions
easy to understand that would be even more greatly appreciated.

Thank you in advance for any and all help that you can give.

Re: Unable to change default port number?

Posted: October 4th, 2014, 2:03 am
by sander
Strange.

In the SAB GUI: Config -> Config, what is the output at "Config File:"?

How do you start Linux: from the commandline (if so: as what user), or as a service?

Re: Unable to change default port number?

Posted: October 4th, 2014, 7:17 am
by OOT
sander wrote:Strange.

In the SAB GUI: Config -> Config, what is the output at "Config File:"?

How do you start Linux: from the commandline (if so: as what user), or as a service?
The SAB GUI: Config -> Config shows the output file as: /home/me/.sabnzbd/sabnzbd.ini

I'm running LInux Mint 17 Cinnamon. When I installed the SABnzbbd I think I selected the option to have it automatically but to not start the browser automatically. It's been a couple of weeks and, being new to Linux I've been learning many different things. I don't know if this matters or not but there is also this on the SAB GUI: Config -> Config. It shows the Parameters as: /usr/bin/sabnzbdplus --daemon. Could that mean it is starting as a service? I do know that when I restart I do not have to start the service. It's just running on the wrong port.

Thank you again for any help that you can offer. It is very much appreciated.

Re: Unable to change default port number?

Posted: October 4th, 2014, 9:34 am
by sander
What is the output of:

Code: Select all

cat /etc/default/sabnzbdplus

Post the output here

Re: Unable to change default port number?

Posted: October 4th, 2014, 9:26 pm
by OOT
sander wrote:What is the output of:

Code: Select all

cat /etc/default/sabnzbdplus

Post the output here
Here is the output:
# 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=me

# [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=10000

# [optional] extra command line options, if any:
EXTRAOPTS=
Should I use gedit or nano to try and edit that line about "PORT=10000"? My SAB is running right now and the URL shows that the port is 5000.

Re: Unable to change default port number?

Posted: October 4th, 2014, 10:47 pm
by sander
sudo gedit /etc/default/sabnzbdplus, and the remove 0.0.0.0 and 10000.

Re: Unable to change default port number?

Posted: October 5th, 2014, 6:59 pm
by OOT
sander wrote:sudo gedit /etc/default/sabnzbdplus, and the remove 0.0.0.0 and 10000.
That did it. I made the changes and then rebooted the machine. Once I launched the browser and went to the shortcut it showed itself as running and doing so on port 4000. I'm not sure where I went wrong but am very happy that it is now fixed. Thank you for the help and assistance. It is very much appreciated.

I'm marking this topic as "Solved!" Yeay.