Page 1 of 1
SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: June 15th, 2014, 12:38 pm
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.
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: June 15th, 2014, 2:00 pm
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)
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: June 15th, 2014, 4:20 pm
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.
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: September 28th, 2014, 11:31 pm
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.
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: September 29th, 2014, 2:50 am
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.
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: January 16th, 2015, 2:13 am
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?
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: January 16th, 2015, 5:23 am
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.
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: May 17th, 2016, 4:17 pm
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!
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: May 17th, 2016, 4:52 pm
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:
Re: SABnzbd: "Incorrect parameter" "Configuration is locked"
Posted: May 17th, 2016, 5:52 pm
by Sullyvan
Thanks!