2023-03-07T17:06:55-06:00 Error captiveportal sqlite3 repair /var/captiveportal/captiveportal.sqlite [done] 2023-03-07T17:06:55-06:00 Error captiveportal sqlite3 repair /var/captiveportal/captiveportal.sqlite 2023-03-07T17:06:55-06:00 Error captiveportal Forcefully repair database (Traceback (most recent call last): File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/cp-background-process.py", line 219, in main bgprocess.sync_zone(zoneid) File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/cp-background-process.py", line 115, in sync_zone concurrent_users = self.db.find_concurrent_user_sessions(zoneid) File "/usr/local/opnsense/scripts/OPNsense/CaptivePortal/lib/db.py", line 245, in find_concurrent_user_sessions cur.execute(""" select cc.sessionid sessionId sqlite3.OperationalError: no such column: )
Fetching sqlite3.pkg: .... doneVerifying signature with trusted certificate pkg.opnsense.org.20221213... donesqlite3-3.41.0,1: already unlockedUpdating OPNsense repository catalogue...OPNsense repository is up to date.All repositories are up to date.Checking integrity... done (0 conflicting)The following 1 package(s) will be affected (of 0 checked):Installed packages to be REINSTALLED: sqlite3-3.41.0,1Number of packages to be reinstalled: 1[1/1] Reinstalling sqlite3-3.41.0,1...[1/1] Extracting sqlite3-3.41.0,1: 100%
sqlite> select cc.sessionid sessionId, cc.username userName from cp_clients cc where cc.zoneid = 0 and cc.deleted = 0 and cc.username is not null and cc.username <> "" order by case when cc.username is not null then cc.username else cc.ip_address end, cc.created desc;Parse error: no such column: 0 and cc.username is not null and cc.username <> "" order by case when cc.use error here ---^sqlite>
cur.execute(""" select cc.sessionid sessionId , cc.username userName from cp_clients cc where cc.zoneid = :zoneid and cc.deleted = 0 and cc.username is not null and cc.username <> "" <---- problem here !!! order by case when cc.username is not null then cc.username else cc.ip_address end , cc.created desc """, {'zoneid': zoneid})
2023-03-09T14:12:40 Error api [2023-03-09T14:12:40+01:00][ERROR] no active session, user not found 2023-03-09T14:12:39 Error api [2023-03-09T14:12:39+01:00][ERROR] no active session, user not found 2023-03-09T14:12:35 Error api [2023-03-09T14:12:35+01:00][ERROR] no active session, user not found 2023-03-09T14:12:35 Error api [2023-03-09T14:12:35+01:00][ERROR] no active session, user not found 2023-03-09T14:12:29 Error api [2023-03-09T14:12:29+01:00][ERROR] no active session, user not found 2023-03-09T14:12:28 Error api [2023-03-09T14:12:28+01:00][ERROR] no active session, user not found 2023-03-09T14:12:23 Notice captiveportal starting captiveportal background process
Although I still get spammed in the logs with an error message about no active session, user not found.