Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan Results cannot be saved in Database #211

Open
Arragon5xpwm opened this issue Feb 2, 2023 · 4 comments
Open

Scan Results cannot be saved in Database #211

Arragon5xpwm opened this issue Feb 2, 2023 · 4 comments

Comments

@Arragon5xpwm
Copy link

Arragon5xpwm commented Feb 2, 2023

Pi.Alert 3.02 (2021-04-24)
---------------------------------------------------------
Scan Devices
    ScanCycle: 15
    Timestamp: 2023-02-02 10:14:00

Scanning...
    arp-scan Method...
    Pi-hole Method...
    DHCP Leases Method...

Processing scan results...
Traceback (most recent call last):
  File "/home/pi/pialert/back/pialert.py", line 1488, in <module>
    sys.exit(main())
  File "/home/pi/pialert/back/pialert.py", line 85, in main
    res = scan_network()
  File "/home/pi/pialert/back/pialert.py", line 379, in scan_network
    save_scanned_devices (arpscan_devices, cycle_interval)
  File "/home/pi/pialert/back/pialert.py", line 568, in save_scanned_devices
    sql.execute ("""INSERT INTO CurrentScan (cur_ScanCycle, cur_MAC,
sqlite3.IntegrityError: NOT NULL constraint failed: CurrentScan.cur_IP
@leiweibau
Copy link

Hello,

I would guess Pi.Alert is not able to determine your Internet IP.

Also, I would recommend you to use one of the actively developed forks of Pi.Alert, as this main project has not been maintained for almost 2 years.

@Arragon5xpwm
Copy link
Author

python3 ~/pialert/back/pialert.py internet_IP shows my correct IP.
I just installed it using the script. Which fork is recommended?

@leiweibau
Copy link

python3 ~/pialert/back/pialert.py internet_IP shows my correct IP.
I just installed it using the script. Which fork is recommended?

That is strange.

Here you have an overview of the forks of Pi.Alert.
https://techgaun.github.io/active-forks/index.html#pucherot/pi.alert

@Arragon5xpwm
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants