1
18.1 Legacy Series / Re: Captive Portal: Allowed addresses/MACs has no effect + sqlite error
« on: July 31, 2018, 05:09:53 am »
Solved by following user "tee4cute"s steps in thread https://github.com/opnsense/core/issues/1700
Database was apparently corrupted somehow. Removing the database and forcing captiveportal to create a new one all was returned to normal.
Database was apparently corrupted somehow. Removing the database and forcing captiveportal to create a new one all was returned to normal.
- cd /var/captiveportal/
- mv captiveportal.sqlite captiveportal.sqlite.b
I guess that CP will automatically create sqlite db file if is not found. - /usr/local/opnsense/scripts/OPNsense/CaptivePortal/cp-background-process.py
At this point, I found that the captiveportal.sqlite is automatically created. - /usr/local/etc/rc.d/captiveportal stop
Stop the service to ensure that it is cleanly restarted. - /usr/local/etc/rc.d/captiveportal start
Start service again.