Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
[SOLVED] Captive Portal Sessions Missing
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Captive Portal Sessions Missing (Read 7404 times)
tong2x
Full Member
Posts: 223
Karma: 9
[SOLVED] Captive Portal Sessions Missing
«
on:
September 07, 2020, 02:17:30 am »
session of captive portal missing,
but I can see logs of user authenticating
and captive portal is working
captive portal is in no authentication (portal only mode)
no issue before
OPNsense 20.7.2-amd64
FreeBSD 12.1-RELEASE-p8-HBSD
OpenSSL 1.1.1g 21 Apr 2020
«
Last Edit: September 08, 2020, 07:26:42 am by tong2x
»
Logged
tong2x
Full Member
Posts: 223
Karma: 9
Re: Captive Portal Sessions Missing
«
Reply #1 on:
September 08, 2020, 07:26:17 am »
solution
delete corrupt captive portal file
STOP captive portal service
* goto shell (press
*
cd /
cd var
cd captiveportal
rm captiveportal.sqlite
exit
START captive portal service
Logged
amitis5
Newbie
Posts: 28
Karma: 0
Re: [SOLVED] Captive Portal Sessions Missing
«
Reply #2 on:
December 13, 2021, 10:49:54 pm »
Thanks man. Saved my @$$ today.
Logged
tong2x
Full Member
Posts: 223
Karma: 9
Re: [SOLVED] Captive Portal Sessions Missing
«
Reply #3 on:
December 15, 2021, 12:43:25 am »
good!
maybe a button can be addedin captive portal to "reset"/"fix the database in the future
btw found this code in other pages I cant seem to find the source, but someone recommended this
mv /var/captiveportal/captiveportal.sqlite /var/captiveportal/captiveportalbad.sqlite
sqlite3 /var/captiveportal/captiveportalbad.sqlite ".recover" | sqlite3 /var/captiveportal/captiveportal.sqlite
supposed to fix the database, last option would be to delete the database since captive portal will automatically generate a new db.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
[SOLVED] Captive Portal Sessions Missing