jokob-sk / NetAlertX

🖧🔍 WIFI / LAN intruder detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.
GNU General Public License v3.0
3.12k stars 186 forks source link

Outdated cache, refreshing #878

Closed mfat closed 1 week ago

mfat commented 2 weeks ago

Is there an existing issue for this?

The issue occurs in the following browsers. Select at least 2.

Current Behavior

When I go to Settings the page kids refreshing. Briefly see a message saying outdated cache

Expected Behavior

Go to serrings normally.

Steps To Reproduce

Install the app:

docker run -d --rm --network=host -e PORT=20211 jokobsk/netalertx:latest

Go to localhost:20211 Open Settings section

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

[05-Nov-2024 20:36:25 Europe/Berlin] PHP Warning: SQLite3::query(): Unable to execute statement: database is locked in /app/front/php/server/db.php on line 88 [05-Nov-2024 20:36:25 Europe/Berlin] Attempting to write '1|2024-11-05 20:36:25|dcb8558196c5895637f268db0623aa70|UPDATE Parameters SET par_Value="[]" WHERE par_ID="Front_Devices_Order"' to execution log file after failed query: UPDATE Parameters SET par_Value="[]" WHERE par_ID="Front_Devices_Order" [05-Nov-2024 20:36:25 Europe/Berlin] Execution log file content after failed query attempt: 1|2024-11-05 20:36:25|dcb8558196c5895637f268db0623aa70|UPDATE Parameters SET par_Value="[]" WHERE par_ID="Front_Devices_Order"

Debug enabled

jokob-sk commented 2 weeks ago

Hi @mfat ,

If you are able to use the Settings page after the refresh then the behavior is expected.

I also noticed that you are not using any persistent volumes - you will lose your data if you run the app this way:

docker run -d --rm --network=host -e PORT=20211 jokobsk/netalertx:latest

Please specify db and config folders.

Let me know if you are not able to update the settings and I will investigate further. If so, please provide screenshots of the browser console.

Thanks, j

mfat commented 2 weeks ago

I can't use settings at all. I'll send screenshot too.

jokob-sk commented 2 weeks ago

Please submit the following:

  1. browser console log.
  2. Check also if the app.conf is in the right format
  3. there are no ongoing errors in the app.log.
jokob-sk commented 1 week ago

no reply for a week -> closing