Scanning devices fails
`Scan Devices
ScanCycle: 1
Timestamp: 2022-10-05 06:30:00
Scanning...
arp-scan Method...
arp-scan: One interface
Traceback (most recent call last):
File "/home/pi/pialert/back/pialert.py", line 1817, in
sys.exit(main())
File "/home/pi/pialert/back/pialert.py", line 96, in main
res = scan_network()
File "/home/pi/pialert/back/pialert.py", line 405, in scan_network
arpscan_devices = execute_arpscan ()
File "/home/pi/pialert/back/pialert.py", line 504, in execute_arpscan
arpscan_output += execute_arpscan_on_interface (SCAN_SUBNETS)
File "/home/pi/pialert/back/pialert.py", line 545, in execute_arpscan_on_interface
return subprocess.check_output (arpscan_args, universal_newlines=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sudo', 'arp-scan', '--ignoredups', '--retry=6', '192.168.25.0/24', '--interface=eth0']' returned non-zero exit status 1.`
If I run the command manually in the console I see this
root@pihole:/# sudo arp-scan --localnet sudo: error in event loop: Operation not permitted sudo: unexpected child termination condition: 0 root@pihole:/# Interface: eth0, type: EN10MB, MAC: b8:27:eb:7a:ca:f1, IPv4: 192.168.25.5 Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan) 192.168.25.137 54:af:97:b0:5a:90 TP-Link Corporation Limited 192.168.25.137 54:af:97:b0:5a:90 TP-Link Corporation Limited (DUP: 2)
If I run without sudo no error is reported.
root@pihole:/# arp-scan --localnet Interface: eth0, type: EN10MB, MAC: b8:27:eb:7a:ca:f1, IPv4: 192.168.25.5 Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan) 192.168.25.4 d8:5e:d3:de:69:e2 GIGA-BYTE TECHNOLOGY CO.,LTD.
Presumably the pialert code is bombing out because it sees that initial error, even though the scan then completes?
Scanning devices fails
`Scan Devices
ScanCycle: 1
Timestamp: 2022-10-05 06:30:00
Scanning...
arp-scan Method...
arp-scan: One interface
Traceback (most recent call last):
File "/home/pi/pialert/back/pialert.py", line 1817, in
sys.exit(main())
File "/home/pi/pialert/back/pialert.py", line 96, in main
res = scan_network()
File "/home/pi/pialert/back/pialert.py", line 405, in scan_network
arpscan_devices = execute_arpscan ()
File "/home/pi/pialert/back/pialert.py", line 504, in execute_arpscan
arpscan_output += execute_arpscan_on_interface (SCAN_SUBNETS)
File "/home/pi/pialert/back/pialert.py", line 545, in execute_arpscan_on_interface
return subprocess.check_output (arpscan_args, universal_newlines=True)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sudo', 'arp-scan', '--ignoredups', '--retry=6', '192.168.25.0/24', '--interface=eth0']' returned non-zero exit status 1.`
If I run the command manually in the console I see this
root@pihole:/# sudo arp-scan --localnet sudo: error in event loop: Operation not permitted sudo: unexpected child termination condition: 0 root@pihole:/# Interface: eth0, type: EN10MB, MAC: b8:27:eb:7a:ca:f1, IPv4: 192.168.25.5 Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan) 192.168.25.137 54:af:97:b0:5a:90 TP-Link Corporation Limited 192.168.25.137 54:af:97:b0:5a:90 TP-Link Corporation Limited (DUP: 2)If I run without sudo no error is reported.
root@pihole:/# arp-scan --localnet Interface: eth0, type: EN10MB, MAC: b8:27:eb:7a:ca:f1, IPv4: 192.168.25.5 Starting arp-scan 1.9.7 with 256 hosts (https://github.com/royhills/arp-scan) 192.168.25.4 d8:5e:d3:de:69:e2 GIGA-BYTE TECHNOLOGY CO.,LTD.Presumably the pialert code is bombing out because it sees that initial error, even though the scan then completes?