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

"Retrying in background" Setup loop

Open gnieboer opened this issue 2 years ago • 16 comments

Initial setup, pfSense 2.5.0 and hass-pfsense 0.4.1 and Home Assistant 2022.3.5, configured for 5 max sessions.

HA shows "retrying setup" and pfSense shows: 192.168.0.100 - [email protected] [21/Mar/2022:18:36:30 -0400] "POST /xmlrpc.php HTTP/1.1" 200 170 "-" "Python-xmlrpc/3.9" Basically 5 identical requests in sequence every 10 seconds.

My firewall leverages AD authentication, and I created a specific user in AD, gave it sufficient pfSense permissions, and put in [email protected] with the password in the setup. It reported success, but then appears to be "retrying setup" for the last 30+ minutes.

Otherwise on the firewall side, I'm running several VLANs and have 2 outgoing VPN circuits, and running several add on packages including suricata, zabbix, pimd, pfBlocker, and Avahi.

Ideas?

gnieboer avatar Mar 21 '22 22:03 gnieboer

Hmm so setup worked without issues but it fails after setup? Does anything work currently?

travisghansen avatar Mar 22 '22 13:03 travisghansen

Yes, it appears setup worked. But there are no devices or entities related to pfSense or the firewall name in the configuration menus.

gnieboer avatar Mar 22 '22 20:03 gnieboer

Same issue. pfsense is latest 2.6.0

Config entry '' for pfsense integration not ready yet; Retrying in background

home assistant is Home Assistant 2022.3.5

apedance avatar Mar 23 '22 21:03 apedance

I was about to create a new thread but I seem to be having this issue now. Existing setup, pfsense 2.6.0 and latest home assistant core 2022.3.6.

I think this may have happened just after the Hass core update, but now all entities are unavailable with “retrying in background” in the logs.

chris-a-j avatar Mar 23 '22 21:03 chris-a-j

I was about to create a new thread but I seem to be having this issue now. Existing setup, pfsense 2.6.0 and latest home assistant core 2022.3.6.

I think this may have happened just after the Hass core update, but now all entities are unavailable with “retrying in background” in the logs.

I am on Home Assistant 2022.3.5 - issue started happening without an update.

apedance avatar Mar 23 '22 22:03 apedance

Same issue here. Integration was working well for the longest time. I recently updated Home Assistant which may be the cause, but I've updated HASS many times in the past without this integration breaking.

10 max sessions, PFSense 2.6.0, Home Assistant 2022.3.6

Integration sets up and connects to PFsense fine. HASS then shows the following in the logs: 2022-03-23 16:55:48 WARNING (MainThread) [homeassistant.config_entries] Config entry 'overlord' for pfsense integration not ready yet; Retrying in background

PFsense logs > GUI Service shows the following from my HASS IP.

Mar 23 16:59:35 | nginx |   | 172.16.22.20 - admin [23/Mar/2022:16:59:35 -0500] "POST /xmlrpc.php HTTP/1.1" 499 0 "-" "Python-xmlrpc/3.9"
Mar 23 16:59:25 | nginx |   | 172.16.22.20 - admin [23/Mar/2022:16:59:25 -0500] "POST /xmlrpc.php HTTP/1.1" 200 249 "-" "Python-xmlrpc/3.9"
Mar 23 16:59:25 | nginx |   | 172.16.22.20 - admin [23/Mar/2022:16:59:25 -0500] "POST /xmlrpc.php HTTP/1.1" 200 274 "-" "Python-xmlrpc/3.9"
Mar 23 16:59:15 | nginx |   | 172.16.22.20 - admin [23/Mar/2022:16:59:15 -0500] "POST /xmlrpc.php HTTP/1.1" 499 0 "-" "Python-xmlrpc/3.9"

I have removed the integration through HACS, then reinstalled it - without any luck. I've also fully rebooted the firewall and the machines running Home Assistant.

tophattwaffle avatar Mar 23 '22 22:03 tophattwaffle

@tophattwaffle I notice you have some 499 response codes, my logs are only 200 status codes. But I have fewer max sessions than you. Wonder why the difference.

gnieboer avatar Mar 25 '22 15:03 gnieboer

Seems to be resolved with latest update?

chris-a-j avatar Mar 28 '22 08:03 chris-a-j

Update to hass or this plugin? I’m not (intentionally) ignoring everyone, just a bit busy and still won’t be able to dig in fully for probably another week or so.

travisghansen avatar Mar 28 '22 13:03 travisghansen

Sorry I meant the HASS update to 2022.3.7.

I noticed the entities no longer keep going unavailable, but that may just be my setup.

No urgency on this one of course, as it’s a relatively minor problem in the grand scheme of things!

chris-a-j avatar Mar 28 '22 16:03 chris-a-j

I just upgraded the container to 2022.3.7 but the issue appears to be unchanged for me. I deleted and re-added the integration after the upgrade, no change. Difference may be that mine is a "new add", the integration was not installed/working previously like @chris-a-j 's.

gnieboer avatar Mar 28 '22 16:03 gnieboer

I also just upgraded all pfSense packages to latest, tested, and then upgraded from pfSense 2.5.0 to 2.5.2 and tested. No change in result.

gnieboer avatar Mar 28 '22 21:03 gnieboer

Any progress on this? I've had this problem for several months now and would really like monitor my pfSense again.

aherbjornsen avatar Jun 13 '22 08:06 aherbjornsen

Doing some maintenance on the project this week and wondering the state of this. Is everyone on this thread only seeing the issue while using an AD user? Have you tried creating a local user and seeing what happens?

travisghansen avatar Jul 06 '22 04:07 travisghansen

I use a local user and have this problem.

aherbjornsen avatar Jul 06 '22 06:07 aherbjornsen

If you disable AD does it work?

travisghansen avatar Jul 06 '22 13:07 travisghansen