Files
gandalf/log.txt

18 lines
50 KiB
Plaintext
Raw Normal View History

2025-02-08 00:16:06 -05:00
root@gandalf:/var/www/html/prod# systemctl restart gandalf
root@gandalf:/var/www/html/prod# journalctl -u gandalf -f
Feb 08 00:13:26 gandalf systemd[1]: Stopped gandalf.service - Gandalf Network Monitor.
Feb 08 00:13:26 gandalf systemd[1]: gandalf.service: Consumed 1.063s CPU time.
Feb 08 00:13:26 gandalf systemd[1]: Started gandalf.service - Gandalf Network Monitor.
Feb 08 00:13:26 gandalf python3[4977]: [2025-02-08 00:13:26 -0500] [4977] [INFO] Starting gunicorn 20.1.0
Feb 08 00:13:26 gandalf python3[4977]: [2025-02-08 00:13:26 -0500] [4977] [INFO] Listening at: http://127.0.0.1:8000 (4977)
Feb 08 00:13:26 gandalf python3[4977]: [2025-02-08 00:13:26 -0500] [4977] [INFO] Using worker: sync
Feb 08 00:13:26 gandalf python3[4978]: [2025-02-08 00:13:26 -0500] [4978] [INFO] Booting worker with pid: 4978
Feb 08 00:13:26 gandalf python3[4979]: [2025-02-08 00:13:26 -0500] [4979] [INFO] Booting worker with pid: 4979
Feb 08 00:13:26 gandalf python3[4980]: [2025-02-08 00:13:26 -0500] [4980] [INFO] Booting worker with pid: 4980
Feb 08 00:13:26 gandalf python3[4981]: [2025-02-08 00:13:26 -0500] [4981] [INFO] Booting worker with pid: 4981
Feb 08 00:13:29 gandalf python3[4978]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 10.10.10.1:443
Feb 08 00:13:29 gandalf python3[4978]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device HTTP/1.1" 200 None
Feb 08 00:13:29 gandalf python3[4978]: DEBUG:app:Raw device data: {'access_devices': [], 'apollo_devices': [], 'connect_devices': [], 'drive_devices': [], 'led_devices': [], 'network_devices': [{'_id': '648b6a79e0dce15429a77871', 'adopt_state': 0, 'adoptable_when_upgraded': False, 'adopted': True, 'bytes-r': 0, 'connection_network_id': '629fd656424c5b052fa1c715', 'connection_network_name': 'Main Network', 'countrycode_table': [], 'default': False, 'device_type': 'MANAGED', 'disabled': False, 'displayable_version': '2.2.6', 'download_speed_bytes_per_second': 0, 'ethernet_overrides': [], 'fw_caps': 0, 'ip': '10.10.10.243', 'ipv4_lease_expiration_timestamp_seconds': 1739067793, 'is_access_point': False, 'is_adoption_queued': False, 'isolated': False, 'last_connection_network_id': '629fd656424c5b052fa1c715', 'last_connection_network_name': 'Main Network', 'last_seen': 1738991602, 'last_uplink': {'type': 'wireless', 'uplink_device_name': 'AP', 'uplink_mac': 'd0:21:f9:42:65:54'}, 'license_state': 'registered', 'locating': False, 'lte_connected': False, 'mac': 'd0:21:f9:ca:ee:04', 'model': 'UP6', 'model_in_eol': False, 'model_in_lts': False, 'model_incompatible': False, 'name': 'USP Strip', 'num_sta': 0, 'port_table': [], 'product_line': 'NETWORK', 'radio_table': [], 'radio_table_stats': [], 'restarting': False, 'rx_bytes': 0, 'rx_bytes-d': 0, 'satisfaction': 97, 'spectrum_scanning': False, 'state': 1, 'support_wifi6e': False, 'sys_stats': {'loadavg_1': 0.0, 'loadavg_15': 0.0, 'loadavg_5': 0.0, 'mem_buffer': 0, 'mem_total': 98304, 'mem_used': 84720}, 'system-stats': {'cpu': 0.0, 'mem': 0.0, 'uptime': 0}, 'tags': ['connection_type_wireless_device'], 'tx_bytes': 0, 'tx_bytes-d': 0, 'type': 'uap', 'unsupported': False, 'unsupported_reason': 0, 'upgradable': False, 'upgrade_state': 0, 'uplink': {'ap_mac': 'd0:21:f9:42:65:54', 'essid': 'element-e4935af3c573761f', 'radio_band': 'ng', 'type': 'wireless', 'uplink_device_name': 'AP', 'uplink_mac': 'd0:21:f9:42:65:54'}, 'uplink_table': [], 'upload_speed_bytes_per_second': 0, 'uptime': 150545, 'usage_bytes': 0.0, 'vap_table': [], 'version': '2.2.6.532'}, {'_id': '63780dc5eec8d7076eee4cd6', 'adopt_state': 0, 'adoptable_when_upgraded': False, 'adopted': True, 'bytes-r': 0, 'connection_network_id': '629fd656424c5b052fa1c715', 'connection_network_name': 'Main Network', 'countrycode_table': [], 'default': False, 'device_type': 'MANAGED', 'disabled': False, 'discovered_via': 'l2', 'displayable_version': '7.1.26', 'download_speed_bytes_per_second': 0, 'ethernet_overrides': [], 'fw_caps': 659093285, 'ip': '10.10.10.107', 'ipv4_lease_expiration_timestamp_seconds': 1739045795, 'is_access_point': False, 'is_adoption_queued': False, 'isolated': False, 'last_connection_network_id': '629fd656424c5b052fa1c715', 'last_connection_network_name': 'Main Network', 'last_seen': 1738991583, 'last_uplink': {'port_idx': 1, 'type': 'wire', 'uplink_device_name': '24RJ45-POE', 'uplink_mac': '78:45:58:b1:bd:3a', 'uplink_remote_port': 7}, 'license_state': 'registered', 'locating': False, 'lte_connected': False, 'mac': '60:22:32:ab:de:07', 'model': 'USPPDUP', 'model_in_eol': False, 'model_in_lts': False, 'model_incompatible': False, 'name': 'RPDU', 'num_sta': 0, 'port_table': [{'aggregated_by': False, 'autoneg': False, 'enable': True, 'full_duplex': True, 'is_uplink': True, 'media': 'FE', 'poe_caps': 0, 'poe_enable': False, 'port_idx': 1, 'port_poe': False, 'rx_bytes': 457881379, 'rx_bytes-r': 1586, 'rx_dropped': 0, 'rx_errors': 0, 'rx_packets': 3371001, 'satisfaction': 100, 'speed': 100, 'speed_caps': 1048591, 'tx_bytes': 50483903, 'tx_bytes-r': 112, 'tx_dropped': 0, 'tx_errors': 0, 'tx_packets': 146421, 'up': True}], 'product_line': 'NETWORK', 'radio_table': [], 'radio_table_stats': [], 'restarting': False, 'rx_bytes': 0, 'rx_bytes-d': 0, 'satisfaction': 100, 'spectrum_scanning': False, 'state': 1, 'sys_stats': {'loadavg_1': 0.01, 'loadavg_15': 0.0, 'loadavg_5': 0.0, 'mem_buffer': 0, 'mem_total': 61648896, 'mem_used': 18890752}, 'system-stats': {'cpu': 1.3, 'mem': 30.6, 'uptime': 445843}, 'tags': ['connection_type_w
Feb 08 00:13:29 gandalf python3[4978]: ERROR:app:Error fetching devices: 'str' object has no attribute 'get'
Feb 08 00:13:30 gandalf python3[4981]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 10.10.10.1:443
Feb 08 00:13:30 gandalf python3[4981]: DEBUG:urllib3.connectionpool:https://10.10.10.1:443 "GET /proxy/network/v2/api/site/default/device HTTP/1.1" 200 None