060b2: Win7 service starts webbrowser, with incorrect URL

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
User avatar
sander
Release Testers
Release Testers
Posts: 9116
Joined: January 22nd, 2008, 2:22 pm

060b2: Win7 service starts webbrowser, with incorrect URL

Post by sander »

I installed 060b2 as a service on Windows 7. The service auto-starts, so that's good. However, it also auto-starts the webbrowser interface, with an incorrect URL: http://localhost:8080/sabnzbd/apikey=23 ... 03c1blabla.

http://localhost:8080/sabnzbd/config/switches/ -> "Launch Browser on Startup" is OFF.



So:
- why does the win7-service auto-start a webbrowser while the switch is OFF
- why does it start with the apikey stuff
- how can I avoid the webbrowser beging autostarted by the SAB service?

Code: Select all


404 Not Found

The path '/sabnzbd/apikey=234d948b87e254e0a2e8670blabla' was not found.

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 618, in respond
  File "cherrypy\_cperror.pyo", line 233, in __call__
NotFound: (404, "The path '/sabnzbd/apikey=234d948b87e254e0a2e867blabla' was not found.")

Powered by CherryPy 3.2.0 
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by shypike »

Did you follow the installation instructions? http://wiki.sabnzbd.org/sabnzbd-as-a-windows-service
Starting a service will automatically disable the browser start option.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by shypike »

Sorry, I accidentally "edited" your message, instead of "quoting" it.
shypike wrote: ... got the wizard (?), which I ran.
I must say I never tested the service without having a valid sabnzbd.ini first.
Probably because it makes little sense to do that.
The idea is that you setup SABnzbd while it is still a "normal" application.
It could be that when SABnzbd detects an incomplete INI file, it will force startup of the browser anyway.
I don't think it should, on the other hand how will you know otherwise that it's incomplete?
User avatar
sander
Release Testers
Release Testers
Posts: 9116
Joined: January 22nd, 2008, 2:22 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by sander »

D*mn: the auto-browser with the faulty URL is back again.

... more Window$-testing in a few days or so.


If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by shypike »

sander wrote: D*mn: the auto-browser with the faulty URL is back again.
Is the INI file complete? It should contain at least one server definition.
User avatar
sander
Release Testers
Release Testers
Posts: 9116
Joined: January 22nd, 2008, 2:22 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by sander »

shypike wrote:
sander wrote: D*mn: the auto-browser with the faulty URL is back again.
Is the INI file complete? It should contain at least one server definition.
Yes, there is a newsserver, I'm able to change settings, and those changes *partially* 'survive' reboots: I've change all folders settings c:\Downloads\... . That works for incomplete, complete, but nor for logs *or* admin (no access to the Windows at the moment, I can't check it right now).
However, the very strange thing is that the c:\Downloads\settings\sabnzbd.ini (to which the -f parameter is pointing), does *not* change its date/time... Strange. So I have to verify there's some hidden/secret sabnzbd.ini ...  ???

Setup is this:
user-account with admin right, which I use to setup the SAB service. This is the account that gets the auto-start webbrowser with incorrect URL containing apikey=blablabla
user-account without admin rights, which I also use to download and to change SAB settings via the GUI


So: there is something strange going on.


I will run SABnzbd from the console (with the service stopped), to see if that improves the situation.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9116
Joined: January 22nd, 2008, 2:22 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by sander »

More strange Windows stuff:

I did a clean install of Win7 in Virtualbox, downloaded and startet beta3. I started sabnzbd-console with -f c:\downloads\settings\sabnzbd.ini, went through the wizard, stopped SAB, and c:\downloads\settings\sabnzbd.ini was there.

However, after starting SAB with the same command line (arrow up), ... the wizard started again.

I'm puzzled.

ini included as .txt (unaltered; does not contain any password)

Code: Select all


C:\Program Files\SABnzbd>
C:\Program Files\SABnzbd>dir \downloads\settings\sabnzbd.ini
 Volume in drive C has no label.
 Volume Serial Number is A888-5DEB

 Directory of C:\downloads\settings

03/07/2011  10:56             2,279 sabnzbd.ini
               1 File(s)          2,279 bytes
               0 Dir(s)  17,350,615,040 bytes free

C:\Program Files\SABnzbd>SABnzbd-console.exe -f c:\downloads\settings\sabnzbd.in
i
2011-03-07 10:57:24,759::INFO::[sabnzbd:1146] --------------------------------
2011-03-07 10:57:24,769::INFO::[sabnzbd:1147] SABnzbd-console.exe-0.6.0Beta3 (re
v=2716)
2011-03-07 10:57:24,887::INFO::[sabnzbd:1156] Platform=Windows-Vista-6.1.7600 (=
Vista+) Class=nt
2011-03-07 10:57:24,900::INFO::[sabnzbd:1161] Python-version = 2.5.5 (r255:77872
, Jan 31 2010, 15:49:35) [MSC v.1310 32 bit (Intel)]
2011-03-07 10:57:24,914::INFO::[sabnzbd:1174] Read INI file c:\downloads\setting
s\sabnzbd.ini
2011-03-07 10:57:24,937::INFO::[__init__:842] Loading data for running.sab from
c:\downloads\settings\admin\running.sab
2011-03-07 10:57:24,946::INFO::[__init__:845] c:\downloads\settings\admin\runnin
g.sab missing, trying old cache
2011-03-07 10:57:24,950::INFO::[__init__:848] c:\downloads\settings\cache\runnin
g.sab missing
2011-03-07 10:57:24,959::INFO::[__init__:823] Saving data for running.sab in c:\
downloads\settings\admin\running.sab
2011-03-07 10:57:24,967::INFO::[__init__:842] Loading data for bookmarks.sab fro
m c:\downloads\settings\admin\bookmarks.sab
2011-03-07 10:57:24,976::INFO::[__init__:842] Loading data for rss_data.sab from
 c:\downloads\settings\admin\rss_data.sab
2011-03-07 10:57:24,984::INFO::[__init__:842] Loading data for totals9.sab from
c:\downloads\settings\admin\totals9.sab
2011-03-07 10:57:24,990::INFO::[__init__:845] c:\downloads\settings\admin\totals
9.sab missing, trying old cache
2011-03-07 10:57:24,997::INFO::[__init__:848] c:\downloads\settings\cache\totals
9.sab missing
2011-03-07 10:57:25,035::INFO::[postproc:89] Loading postproc queue
2011-03-07 10:57:25,035::INFO::[__init__:842] Loading data for postproc1.sab fro
m c:\downloads\settings\admin\postproc1.sab
2011-03-07 10:57:25,045::INFO::[__init__:842] Loading data for queue9.sab from c
:\downloads\settings\admin\queue9.sab
2011-03-07 10:57:25,055::INFO::[__init__:842] Loading data for watched_data.sab
from c:\downloads\settings\admin\watched_data.sab
2011-03-07 10:57:25,055::INFO::[downloader:193] Resuming
2011-03-07 10:57:25,065::INFO::[__init__:283] All processes started
2011-03-07 10:57:25,065::INFO::[sabnzbd:325] Web dir is C:\Program Files\SABnzbd
\interfaces\smpl
2011-03-07 10:57:25,075::INFO::[sabnzbd:1218] Starting SABnzbd-console.exe-0.6.0
Beta3
2011-03-07 10:57:25,095::INFO::[dirscanner:263] Dirscanner starting up
2011-03-07 10:57:25,105::INFO::[urlgrabber:74] URLGrabber starting up
2011-03-07 10:57:25,105::INFO::[sabnzbd:448] _yenc module... found!
2011-03-07 10:57:25,115::INFO::[sabnzbd:456] par2 binary... found (C:\Program Fi
les\SABnzbd\win\par2\par2.exe)
2011-03-07 10:57:25,115::INFO::[sabnzbd:461] par2-classic binary... found (C:\Pr
ogram Files\SABnzbd\win\par2\par2-classic.exe)
2011-03-07 10:57:25,125::INFO::[sabnzbd:464] unrar binary... found (C:\Program F
iles\SABnzbd\win\unrar\UnRAR.exe)
2011-03-07 10:57:25,125::INFO::[sabnzbd:469] unzip binary... found (C:\Program F
iles\SABnzbd\win\unzip\unzip.exe)
2011-03-07 10:57:25,134::INFO::[sabnzbd:484] pyOpenSSL... found (True)
2011-03-07 10:57:25,134::INFO::[sabnzbd:1326] Starting web-interface on localhos
t:8080
2011-03-07 10:57:27,157::INFO::[_cplogging:55] [07/Mar/2011:10:57:27] ENGINE Bus
 STARTING
2011-03-07 10:57:27,177::INFO::[_cplogging:55] [07/Mar/2011:10:57:27] ENGINE Sta
rted monitor thread '_TimeoutMonitor'.
2011-03-07 10:57:27,538::INFO::[_cplogging:55] [07/Mar/2011:10:57:27] ENGINE Ser
ving on localhost:8080
2011-03-07 10:57:27,549::INFO::[_cplogging:55] [07/Mar/2011:10:57:27] ENGINE Bus
 STARTED
2011-03-07 10:57:27,559::INFO::[misc:689] Lauching browser with http://localhost
:8080/sabnzbd
2011-03-07 10:57:59,694::WARNING::[__init__:155] Signal 0 caught, saving and exi
ting...
2011-03-07 10:57:59,703::INFO::[nzbqueue:166] Saving queue
2011-03-07 10:57:59,713::INFO::[__init__:823] Saving data for queue9.sab in c:\d
ownloads\settings\admin\queue9.sab
2011-03-07 10:57:59,733::INFO::[__init__:823] Saving data for rss_data.sab in c:
\downloads\settings\admin\rss_data.sab
2011-03-07 10:57:59,753::INFO::[__init__:823] Saving data for bookmarks.sab in c
:\downloads\settings\admin\bookmarks.sab
2011-03-07 10:57:59,773::INFO::[__init__:823] Saving data for watched_data.sab i
n c:\downloads\settings\admin\watched_data.sab
2011-03-07 10:57:59,793::INFO::[postproc:83] Saving postproc queue
2011-03-07 10:57:59,803::INFO::[__init__:823] Saving data for postproc1.sab in c
:\downloads\settings\admin\postproc1.sab
2011-03-07 10:57:59,823::INFO::[__init__:842] Loading data for running.sab from
c:\downloads\settings\admin\running.sab

C:\Program Files\SABnzbd>
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by shypike »

There is still no server defined in your INI file.
Did you go through the full Wizard?
Did you test server settings on the Wizard page?
Did you reach the Wizard restart phase?
After the restart, did a server show up?
Last edited by shypike on March 7th, 2011, 7:49 am, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9116
Joined: January 22nd, 2008, 2:22 pm

Re: 060b2: Win7 service starts webbrowser, with incorrect URL

Post by sander »

shypike wrote: There is still no server defined in your INI file.
Did you go through the full Wizard?
Did you test server settings on the Wizard page?
Did you reach the Wizard restart phase?
After the restart, did a server show up?
Ah. Strange. :-(
Yes
Yes
Yes
Yes

Now the good news: it's working.

I did a lot of things: run SABnzbd from the console with -f, set it up, tested it. Good. I installed the service without -f (which was refused: good), then with -f (accepted: good), and no wizard. I set both services to "autostart" (the delayed-autostart did not start within a minute or so?), I started both services and everyting is working. Changes via the WebGUI are saved in the correct .ini. Good. I removed the SAB stuff in the personal / account subdirectory to avoid misunderstandings.

So looks good now. Hopefully I (and others) can reproduce this on other Windows instances.

And the good news: with SABnzbd Host set to '::' and a restart, SAB also listens to the non-Teredo IPv6 address. Nice. I believe SAB does not listen to a Teredo IPv6 address (which could be Windows' default behaviour).

Thanks for your help, Shypike.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply