hass-pfsense icon indicating copy to clipboard operation
hass-pfsense copied to clipboard

Timeout potential fix

Open e3palma opened this issue 2 years ago • 7 comments

I kept getting Timeout error when attempting to connect to pfsense firewall. I have a prod and a new dev and errors were the same with fresh install.

2023-10-03 08:55:20.814 ERROR (SyncWorker_6) [custom_components.pfsense.pypfsense] Unexpected get_system_info error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>

Increasing timeout to 30 in /config/custom_components/pfsense/pypfsense/init.py solved it for me.

e3palma avatar Oct 03 '23 16:10 e3palma

fixed the issue for me

fama-lama avatar Dec 16 '23 01:12 fama-lama

Increased it to 30.. then to 60.. still getting this:

`This error originated from a custom integration.

Logger: custom_components.pfsense.pypfsense Source: custom_components/pfsense/pypfsense/init.py:110 integration: pfSense (documentation, issues) First occurred: July 10, 2024 at 16:07:32 (12690 occurrences) Last logged: 00:13:45

Unexpected get_system_info error err=gaierror(-3, 'Try again'), type(err)=<class 'socket.gaierror'> Unexpected delete_arp_entry error err=gaierror(-5, 'Name has no usable address'), type(err)=<class 'socket.gaierror'> Unexpected get_system_info error err=gaierror(-5, 'Name has no usable address'), type(err)=<class 'socket.gaierror'> Unexpected get_firmware_update_info error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'> Unexpected get_telemetry error err=TimeoutError('The read operation timed out'), type(err)=<class 'TimeoutError'>`

Rabiat1963 avatar Jul 16 '24 10:07 Rabiat1963