Page 1 of 1
HTTP password
Posted: September 30th, 2013, 11:54 am
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?
Re: HTTP password
Posted: September 30th, 2013, 12:04 pm
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 ...
Re: HTTP password
Posted: September 30th, 2013, 12:29 pm
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?
Re: HTTP password
Posted: September 30th, 2013, 12:57 pm
by sander
If you're running SABnzbd as a Linux daemon, inspect the file /etc/default/sabnzbdplus
Re: HTTP password
Posted: September 30th, 2013, 1:13 pm
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=
Re: HTTP password
Posted: September 30th, 2013, 1:18 pm
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
Re: HTTP password
Posted: September 30th, 2013, 1:32 pm
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.
Re: HTTP password
Posted: September 30th, 2013, 1:42 pm
by sander
Yes, but under which account is SABnzbd running? And in which directory are you looking for sabnzbd.ini?
Brute force check:
Is there only one sabnzbd.ini, or more?
HTH
Re: HTTP password
Posted: September 30th, 2013, 1:46 pm
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
Re: HTTP password
Posted: September 30th, 2013, 1:52 pm
by blacksnow
It has now started responding on :8085 and no longer on :8080 however it still wont take user/pass at the prompt...
Re: HTTP password
Posted: September 30th, 2013, 2:00 pm
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.
Re: HTTP password
Posted: September 30th, 2013, 3:01 pm
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.