SABnzbd: "Incorrect parameter" "Configuration is locked"

Get help with all aspects of SABnzbd
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
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by sander »

Both http://localhost:8080/sabnzbd/ and https://localhost:9090/sabnzbd/ now result webinterface saying:
Incorrect parameter

Configuration is locked

I'll have to find out how to solve that. A reboot does NOT solve it.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by jcfp »

"Configuration is locked " kinda suggests you set option config_lock in the ini? (to something other than the standard value of zero, that is)
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by sander »

jcfp wrote:"Configuration is locked " kinda suggests you set option config_lock in the ini? (to something other than the standard value of zero, that is)
Could have been, but it's not:

Code: Select all

$ grep -i lock sabnzbd.ini
config_lock = 0
I 'solved' by removing sabnzbd.ini and starting the SAB wizard again.

Thanks anyway for your suggestion.
spence1534
Newbie
Newbie
Posts: 1
Joined: August 19th, 2014, 1:55 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by spence1534 »

Has anyone else had this problem or found a solution ? I have re-run the wizard several times to no avail. Running development branch.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by shypike »

spence1534 wrote:Has anyone else had this problem or found a solution ? I have re-run the wizard several times to no avail. Running development branch.
Running the Wizard again won't help.
You have to remove the sabnzbd.ini file, as Sander told.
You could help me diagnose the problem by emailing the sabnzbd.ini file to bugs@sabnzbd.org
But first remove any password from the file.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by sander »

More "Configuration is locked". Now within a docker container (if that matters)

SAB stdout then says

Code: Select all

2015-01-16 02:47:43,669::DEBUG::[interface:94] Refused connection to 62.a.b.c
Some code snippets

Code: Select all

def Protected():
    return badParameterResponse("Configuration is locked")

Code: Select all

def check_access():
    """ Check if external address is allowed """
    referrer = cherrypy.request.remote.ip
    return referrer in ('127.0.0.1', '::1') or referrer.startswith(cfg.local_range())

Code: Select all

def check_access(access_type=4):
    """ Check if external address is allowed given `access_type`
        `access_type`: 1=nzb, 2=api, 3=full_api, 4=webui
    """
    referrer = cherrypy.request.remote.ip
    range_ok = bool([1 for r in cfg.local_range() if referrer.startswith(r)])
    allowed = referrer in ('127.0.0.1', '127.0.1.1', '::1') or range_ok or access_type <= cfg.inet_exposure()
    if not allowed:
        logging.debug('Refused connection to %s', referrer)
    return allowed
I changed check_access() to just "return True", now I have sabnzbd running again ... ::)

So there is something going on with referrer. Maybe because of the docker, which does some kind of NAT?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by shypike »

The access protection hasn't been worked out properly yet.
When you want to give access outside the system SABnzbd runs on,
you need to set a "local range". Often simply "192.168.1."
It would be nice if SABnzbd would allow the local network by default,
but I haven't found a reliable way to determine the range of the local network.
Sullyvan
Newbie
Newbie
Posts: 2
Joined: May 17th, 2016, 4:14 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by Sullyvan »

Guys, what is the proper syntax for local_ranges to define two subnets like for instance 192.168.1.0 and 192.168.2.0? Thanks much in advance!
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by sander »

Sullyvan wrote:Guys, what is the proper syntax for local_ranges to define two subnets like for instance 192.168.1.0 and 192.168.2.0? Thanks much in advance!
AFAIK:

Code: Select all

192.168.1., 192.168.2.
Sullyvan
Newbie
Newbie
Posts: 2
Joined: May 17th, 2016, 4:14 pm

Re: SABnzbd: "Incorrect parameter" "Configuration is locked"

Post by Sullyvan »

Thanks!
Post Reply