Closed L0rz closed 9 months ago
Hi there,
I just tested this on my end without encountering issues. Your names or other Unifi values may contain a special character breaking the import. Can you have a look at the imported data under PLugins to see if you can spot any potential weird looking entries?
Ideally also provide the section of pialert.log
(after enabling debug) when the import is happening. The debug log should contain detailed data that is inserted into the DB, here is an example how this could look like:
This way I can see exactly what the Plugin is trying to import.
Thanks, j
now are my Logfile and Screenshot of this. pialert.log
Thx for help!
Thanks for the details! This should be fixed in the next release - can you try checking the pi.alert_dev
image in about ~20 min? The fix should be in it.
Yes it's fixed!
Great, keeping it open for other people to find it 👍
closing as released 🚀
Describe the issue
After enable unifi importer, teh device list was broken. in the Websitelog shows this:
Uncaught Error: Invalid IP address format at formatIPlong (pialert_common.js:520:13) at devices.php:750:17 at Array.map ()
at Object.success (devices.php:735:28)
at c (jquery.min.js:2:27742)
at Object.fireWith [as resolveWith] (jquery.min.js:2:28487)
at l (jquery.min.js:2:78789)
at XMLHttpRequest. (jquery.min.js:2:81117)
pialert.conf:
Screenshots
Paste last few lines from
pialert.log
11:41:11 [Plugin utils] description: This plugin is to execute an arp-scan on the local network 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: CSV backup 11:41:11 [Plugin utils] description: A plugin to auto-generate devices.csv backups. 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: DB cleanup 11:41:11 [Plugin utils] description: A plugin to schedule database cleanup & upkeep tasks. 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: DDNS update 11:41:11 [Plugin utils] description: A plugin update the DDNS record. 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: DHCP Leases (Device import) 11:41:11 [Plugin utils] description: This plugin is to import devices from dhcp.leases files. 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: Rogue DHCP 11:41:11 [Plugin utils] description: This plugin is to use NMAP to monitor for rogue DHCP servers. 11:41:11 [Plugin utils] --------------------------------------------- 11:41:11 [Plugin utils] display_name: Internet-Check 11:41:11 [Plugin utils] description: A plugin to check your internet connectivity and IP. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Internet speedtest 11:41:12 [Plugin utils] description: A plugin to perform a scheduled internet speedtest. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Maintenance 11:41:12 [Plugin utils] description: A plugin for maintenance tasks. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: New Devices 11:41:12 [Plugin utils] description: The template used for new devices. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Services & Ports (NMAP) 11:41:12 [Plugin utils] description: This plugin shows all services discovered by NMAP scans. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Pholus-Scan (Name discovery) 11:41:12 [Plugin utils] description: This plugin is to execute a Pholus-scan (name discovery) on the local network 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: PiHole (Device sync) 11:41:12 [Plugin utils] description: This plugin syncs devices from the PiHole database 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Set password 11:41:12 [Plugin utils] description: A simple plugin to set the web ui password on app start. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: SNMP discovery 11:41:12 [Plugin utils] description: This plugin is used to discover devices via the arp table(s) of a RFC1213 compliant router or switch. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: Un-Discoverable Devices 11:41:12 [Plugin utils] description: This plugin is to import undiscoverable devices from a file. 11:41:12 [Plugin utils] --------------------------------------------- 11:41:12 [Plugin utils] display_name: UniFi import 11:41:12 [Plugin utils] description: This plugin is used to import devices from an UNIFI controller. 11:41:13 [Plugin utils] --------------------------------------------- 11:41:13 [Plugin utils] display_name: Vendor update 11:41:13 [Plugin utils] description: A plugin to schedule vendor database updates for mac based vendor resolution. 11:41:13 [Plugin utils] --------------------------------------------- 11:41:13 [Plugin utils] display_name: Website monitor 11:41:13 [Plugin utils] description: This plugin is to monitor status changes of services or websites. 11:41:14 [API] Updating table_settings.json file in /front/api 11:41:14 [Config] Imported new config 11:41:14 [API] Updating table_plugins_language_strings.json file in /front/api 11:41:14 [Notification] Check if something to report 11:41:14 [Notification] Open text Template 11:41:14 [Notification] Open html Template 11:41:14 [Notification] Using template/back/report_template.html 11:41:14 [Notification] included sections: ['newdevices', 'events'] 11:41:14 [Notification] New Devices sections done. 11:41:14 [Notification] Events sections done. 11:41:14 [Notification] Udating API files 11:41:14 [Send API] Updating notification files in /home/pi/pialert/front/api/ 11:41:14 [Notification] No changes to report 11:41:14 [MAIN] Process: Wait 11:41:19 [MAIN] waiting to start next loop 11:41:24 [MAIN] waiting to start next loop 11:41:29 [MAIN] waiting to start next loop 11:41:34 [MAIN] waiting to start next loop 11:41:39 [MAIN] waiting to start next loop 11:41:44 [MAIN] waiting to start next loop 11:41:49 [MAIN] waiting to start next loop 11:41:54 [MAIN] waiting to start next loop 11:41:59 [MAIN] waiting to start next loop 11:42:04 [MAIN] waiting to start next loop 11:42:09 [MAIN] waiting to start next loop 11:42:15 [Notification] Check if something to report 11:42:15 [Notification] Open text Template 11:42:15 [Notification] Open html Template 11:42:15 [Notification] Using template/back/report_template.html 11:42:15 [Notification] included sections: ['newdevices', 'events'] 11:42:15 [Notification] New Devices sections done. 11:42:15 [Notification] Events sections done. 11:42:15 [Notification] Udating API files 11:42:15 [Send API] Updating notification files in /home/pi/pialert/front/api/ 11:42:15 [Notification] No changes to report 11:42:15 [MAIN] Process: Wait 11:42:20 [MAIN] waiting to start next loop 11:42:25 [MAIN] waiting to start next loop 11:42:30 [MAIN] waiting to start next loop 11:42:35 [MAIN] waiting to start next loop 11:42:40 [MAIN] waiting to start next loop 11:42:45 [MAIN] waiting to start next loop 11:42:50 [MAIN] waiting to start next loop 11:42:55 [MAIN] waiting to start next loop 11:43:00 [MAIN] waiting to start next loop