Pi.Alert icon indicating copy to clipboard operation
Pi.Alert copied to clipboard

Can't start scan on PiAlert

Open vedranius opened this issue 3 years ago • 2 comments

Hi, I get this error when I try to run this command: python ~/pialert/back/pialert.py internet_IP


Pi.Alert 3.02 (2021-04-24)
---------------------------------------------------------
Check Internet IP
    Timestamp: 2022-05-25 12:40:00

Retrieving Internet IP...
Traceback (most recent call last):
  File "/root/pialert/back/pialert.py", line 1488, in <module>
    sys.exit(main())       
  File "/root/pialert/back/pialert.py", line 79, in main
    res = check_internet_IP()
  File "/root/pialert/back/pialert.py", line 115, in check_internet_IP
    internet_IP = get_internet_IP()
  File "/root/pialert/back/pialert.py", line 171, in get_internet_IP
    cmd_output = subprocess.check_output (dig_args, universal_newlines=True)
  File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['dig', '+short', '-4', 'myip.opendns.com', '@resolver1.opendns.com']' returned non-zero exit status 9

vedranius avatar May 25 '22 12:05 vedranius

Have you checked to see if your PiHole was blocking the request. That was my problem and whitelisting it fixed it.

Travis-Prall avatar May 26 '22 18:05 Travis-Prall

the problem is with update_vendors.sh in the /back folder. You need to update all urls to http://standards-oui.ieee.org to https: https://standards-oui.ieee.org/, otherwise curl is getting 302(redirect) response. I fixed in my fork (https://github.com/eugef66/pi.alert/blob/main/back/update_vendors.sh) and will submit PR, but I think this repo is stall :(.

eugef66 avatar Jun 08 '22 15:06 eugef66