Comments (11)
Please check the Permissions. Have you checked the FAQ/Help section? There is an entry about "read only" db.
from pi.alert.
Thanks, but I have a question. It turns out that the database is not locked when I remove the "offline mode", it will be that some process takes the database by modifying the lines:
# Get Internet IP
print ('\nRetrieving Internet IP...')
internet_IP = get_internet_IP()
# TESTING - Force IP
# internet_IP = "1.2.3.4"
to:
# Get Internet IP
print ('\nRetrieving Internet IP...')
# internet_IP = get_internet_IP()
# TESTING - Force IP
internet_IP = "0.0.0.0"
Also the section beginning in line 702 from:
# Check Internet connectivity
internet_IP = get_internet_IP()
# TESTING - Force IP
# internet_IP = ""
to
# Check Internet connectivity
# internet_IP = get_internet_IP()
# TESTING - Force IP
internet_IP = "0.0.0.0"
from pi.alert.
Can you show me you pialert.conf, especially the Pi-hole Configuration?
from pi.alert.
Yes ,sure 👍
Pi-hole Configuration
----------------------
PIHOLE_ACTIVE = True
PIHOLE_DB = '/etc/pihole/pihole-FTL.db'
DHCP_ACTIVE = False
DHCP_LEASES = '/etc/pihole/dhcp.leases'
from pi.alert.
Why is PIHOLE_ACTIVE = True when you are in an offline network? Please set it to False
from pi.alert.
ok thanks, i Disable the pihole_active, but persist:
arp-scan Method...
Pi-hole Method...
DHCP Leases Method...
Processing scan results...
Traceback (most recent call last):
File "/root/pialert/back/pialert.py", line 1776, in
sys.exit(main())
File "/root/pialert/back/pialert.py", line 97, in main
res = scan_network()
File "/root/pialert/back/pialert.py", line 465, in scan_network
save_scanned_devices (arpscan_devices, cycle_interval)
File "/root/pialert/back/pialert.py", line 654, in save_scanned_devices
sql.execute ("DELETE FROM CurrentScan WHERE cur_ScanCycle = ?",
sqlite3.OperationalError: database is locked
^@^@^@^@^@^@^@^@^@^@................
thanks for help me
from pi.alert.
With the "offline" fix and disabling Pi-Hole, I can't reproduce your error unfortunately. Here everything works as it should.
At this point I would try to either restore a backup of my database or start again with an empty database from my fork.
from pi.alert.
Hi Master, I have been looking for the reason why it could eventually be failing and I noticed that the database session is taken and apparently it is due to the process of... Trying to resolve devices without name...
will it be so?
Devices Detected.......: 63
arp-scan Method....: 61
Pi-hole Method.....: +0
New Devices........: 0
Devices in this cycle..: 63
Down Alerts........: 0
New Down Alerts....: 0
New Connections....: 1
Disconnections.....: 2
IP Changes.........: 0
Updating DB Info...
Sessions Events (connect / discconnect) ...
Creating new devices...
Updating Devices Info...
Trying to resolve devices without name....
root@rle2ag-1:/pialert/log# cd ../pialert# cd db
root@rle2ag-1:
root@rle2ag-1:/pialert/db# sudo fuser -v pialert.db/pialert/db#
USER PID ACCESS COMMAND
/root/pialert/db/pialert.db:
root 6157 F.... python3
root@rle2ag-1:
from pi.alert.
Based on your findings, you can try the following. Search
print_log (' Resolve devices names...')
update_devices_names()
and change it to
print_log (' Resolve devices names...')
# update_devices_names()
It is possible that you have to kill running scans.
But I admit that it hurts a bit to cripple the software more and more :(
from pi.alert.
If you are absolutely right, I believe that now the software is 100% in offline mode, since it does not make queries outside its network, therefore it is useful in case of having a panel to manage alerts without internet access (there are still , believe it or not) .
Thank you very much, it is solved.
from pi.alert.
I'm happy to hear that.
Please note that you have to repeat these changes when you install an update. I will rename this issue so that it is obvious that there is information worth knowing here. At this time, I do not plan to "officially" include this mode.
from pi.alert.
Related Issues (20)
- [Documentation] Document changes to the way the "set_permissions" function works HOT 2
- Error updating pi.alert HOT 7
- Error when setting up Pi.Alert with special characters inside SMTP password HOT 2
- WARNING: Cannot open MAC/Vendor file /usr/share/arp-scan/ieee-iab.txt: No such file or directory HOT 5
- Questions about new features HOT 7
- speedtest ohne funktion HOT 1
- [Idea] Should there be a login notification? HOT 2
- [Feature Request] Update button and stop database HOT 12
- Question: DHCP requests? HOT 2
- Error posting.
- Ongoing Dietpi Install Issues HOT 9
- Time / Timezone
- [Feature Request] Device counters in sidebar clickable HOT 3
- Use API-Call for Home Assistant - Template variable error: 'value_json' is undefined when rendering '{{ value_json.Last_Scan }}' HOT 3
- Issue with gethomepage/homepage widget HOT 7
- Installation waits for enter presses without prompting HOT 3
- Arp-Scan not running after first install HOT 31
- Periodic error writing to the database when it is in read-only mode HOT 1
- Pushover not working HOT 3
- No messages are sent after the update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi.alert.