HTTP password

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
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

HTTP password

Post by blacksnow »

Hello all,

I successfully installed sabnzbd on Ubuntu 13.04 x64.

However, when I went in to my browser to configure it (it's on a VPS) and I guess I must have clicked the HTTP password button. Oops.

So now it asks me for a password I don't know. I searched these forums and found that I have to edit the sabnzbd.ini file, so I stopped the sabnzbd service, went in to ~/.sabnzbd/sabnzbd.ini and looked for the username and password fields. Well, there weren't any. It looks like the username/pass field should be here, so I added it as such:

Code: Select all

web_dir2 = ""
web_dir = Plush
web_watchdog = 0
username = "user"
password = "pass"
fail_on_crc = 1
nzb_key = mykeyishere
and restarted the service. Unfortunately that user/pass combo does not work. Any other ideas? /usr/share/sabnzbdplus/interfaces/Plush has no .htpasswd file, so I don't think it's that -- is there a location or setting I am missing?
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: HTTP password

Post by sander »

Maybe you're not talking to SABnzbd, but something else on port 8080?

In sabnzbd.ini change the port like something like 12222 and try again ...
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

That's a great idea, hadn't thought of that. Well, I tried your thought on port 8085 (verified nothing was there first)
as such:

Code: Select all

download_free = ""
port = 8085
enable_movie_sorting = 0
I then started sab back up again, and attempted to go to that port. No go.

But here's the really interesting thing, if you go to :8080 it still responds, and announces itself as sabnzbd -- weird right? So that makes me think, is it even listening to the config file?
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: HTTP password

Post by sander »

If you're running SABnzbd as a Linux daemon, inspect the file /etc/default/sabnzbdplus
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

Doesn't look like anything is wrong..

Code: Select all

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

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

# [optional] extra command line options, if any:
EXTRAOPTS=
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: HTTP password

Post by sander »

Run

Code: Select all

sudo netstat -apon | grep -i listen | grep -vi listening
What is running on port 8080? Get the PID and put it in "ps -ef" ... is it SABnzbd?

Kill it, and try again.

Code: Select all

sander@sander12043:~$ sudo netstat -apon | grep -i listen | grep -vi listening
[sudo] password for sander: 
tcp        0      0 0.0.0.0:9090            0.0.0.0:*               LISTEN      29442/python     off (0.00/0/0)
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      29442/python     off (0.00/0/0)
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      1482/dnsmasq     off (0.00/0/0)
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1016/cupsd       off (0.00/0/0)
tcp6       0      0 ::1:631                 :::*                    LISTEN      1016/cupsd       off (0.00/0/0)
sander@sander12043:~$ ps -ef | grep 29442
sander   29442  2170  2 20:00 pts/0    00:00:23 /usr/bin/python -OO ./SABnzbd.py
sander   29472 29442  0 20:00 ?        00:00:00 [xdg-open] <defunct>
sander   30363  2798  0 20:17 pts/2    00:00:00 grep --color=auto 29442
sander@sander12043:~$
HTH
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

Yeah, got this:

Code: Select all

  0 MYIP:8080        0.0.0.0:*               LISTEN      29547/python

Code: Select all

MYUSER 29547     1  0 14:12 ?        Sl     0:01 /usr/bin/python -OO /usr/bin/sabnzbdplus --daemon
root     29929 26562  0 14:12 pts/0    00:00:00 grep --color=auto 29547

Code: Select all

root@play:~/.sabnzbd# kill 29547
root@play:~/.sabnzbd# service sabnzbdplus start
 * Starting SABnzbd+ binary newsgrabber                                                                       [ OK ]
root@play:~/.sabnzbd#
Unfortunately :8085 does not respond, and :8080 responds but asks for the sabnzbd password. When I enter user/pass it still does not work.
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: HTTP password

Post by sander »

Yes, but under which account is SABnzbd running? And in which directory are you looking for sabnzbd.ini?

Brute force check:

Code: Select all

sudo updatedb
locate sabnzbd.ini
Is there only one sabnzbd.ini, or more?

HTH
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

Code: Select all

root@play:~/.sabnzbd# sudo updatedb
root@play:~/.sabnzbd# locate sabnzbd.ini
/home/erling/.sabnzbd/sabnzbd.ini
/home/erling/.sabnzbd/sabnzbd.ini.bak
root@play:~/.sabnzbd
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

It has now started responding on :8085 and no longer on :8080 however it still wont take user/pass at the prompt...
User avatar
sander
Release Testers
Release Testers
Posts: 9264
Joined: January 22nd, 2008, 2:22 pm

Re: HTTP password

Post by sander »

check the output of:

Code: Select all

grep -e "password " -e user /home/erling/.sabnzbd/sabnzbd.ini | head -2
do NOT post it here.
blacksnow
Newbie
Newbie
Posts: 7
Joined: September 30th, 2013, 11:45 am

Re: HTTP password

Post by blacksnow »

Woah, okay. So it spit out some crazy password. Does that mean that it ignored the username/pass combo I gave it of user and pass?

I am able to get in with that password, but I am curious as to how it got set to that password. Ah well, it's working and that is what counts.
Post Reply