hass-aarlo
hass-aarlo copied to clipboard
Cloudflare issue with the integration
i'm on latest v0.7.2b7 Home Assistant 2021.12.7 Frontend version: 20211229.0 - latest
i get these CF errors when My HA starts
2022-01-01 23:12:51 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-01 23:12:51 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration xiaomi_gateway3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-01 23:12:51 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration meross_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-01 23:12:51 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration aarlo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-01 23:12:51 WARNING (MainThread) [homeassistant.config] Key whitelist_external_dirs has been replaced with allowlist_external_dirs. Please update your config
2022-01-01 23:12:54 WARNING (MainThread) [homeassistant.components.meteo_france] 1 hour rain forecast not available. Saint-Priest-en-Jarez - Rhône-Alpes (42) - FR is not in covered zone
2022-01-01 23:12:55 ERROR (SyncWorker_1) [pyaarlo] session start failed
2022-01-01 23:12:55 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:12:55 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for tuya
KeyError: 'auth_type'
2022-01-01 23:12:55 ERROR (MainThread) [custom_components.hacs] Did not find alandtse/tesla (362700564)
2022-01-01 23:12:56 WARNING (MainThread) [homeassistant.components.light] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-01-01 23:12:56 WARNING (MainThread) [homeassistant.components.select] Platform netatmo not ready yet: None; Retrying in background in 30 seconds
2022-01-01 23:12:56 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:12:57 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:12:58 ERROR (SyncWorker_1) [pyaarlo] authentication failed
2022-01-01 23:12:58 ERROR (SyncWorker_1) [custom_components.aarlo] unable to connect to Arlo: attempt=1,sleep=15,error=authentication failed
2022-01-01 23:13:05 WARNING (MainThread) [homeassistant.setup] Setup of aarlo is taking over 10 seconds.
2022-01-01 23:13:13 ERROR (SyncWorker_1) [pyaarlo] session start failed
2022-01-01 23:13:14 ERROR (SyncWorker_1) [pyaarlo] imap connection failed[Errno -2] Name does not resolve
2022-01-01 23:13:14 ERROR (SyncWorker_1) [pyaarlo] 2fa startup failed
2022-01-01 23:13:14 ERROR (SyncWorker_1) [custom_components.aarlo] unable to connect to Arlo: attempt=2,sleep=30,error=2fa startup failed
2022-01-01 23:13:30 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140478715926128] Received invalid command: aarlo_library
2022-01-01 23:13:44 ERROR (SyncWorker_1) [pyaarlo] session start failed
2022-01-01 23:13:44 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:13:45 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:13:46 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:13:47 ERROR (SyncWorker_1) [pyaarlo] authentication failed
2022-01-01 23:13:47 ERROR (SyncWorker_1) [custom_components.aarlo] unable to connect to Arlo: attempt=3,sleep=60,error=authentication failed
2022-01-01 23:13:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo
2022-01-01 23:13:58 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140478715926128] Received invalid command: aarlo_library
2022-01-01 23:14:47 ERROR (SyncWorker_1) [pyaarlo] session start failed
2022-01-01 23:14:47 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:14:48 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:14:50 WARNING (SyncWorker_1) [pyaarlo] request-error=CloudflareChallengeError
2022-01-01 23:14:51 ERROR (SyncWorker_1) [pyaarlo] authentication failed
2022-01-01 23:14:51 ERROR (SyncWorker_1) [custom_components.aarlo] unable to connect to Arlo: attempt=4,sleep=120,error=authentication failed
2022-01-01 23:14:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo
2022-01-01 23:15:50 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/lovelace-test:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:15:51 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140478715926128] Received invalid command: aarlo_library
2022-01-01 23:15:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo
2022-01-01 23:16:11 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:16:51 ERROR (SyncWorker_1) [pyaarlo] session start failed
2022-01-01 23:16:52 ERROR (SyncWorker_1) [pyaarlo] imap connection failed[Errno -2] Name does not resolve
2022-01-01 23:16:52 ERROR (SyncWorker_1) [pyaarlo] 2fa startup failed
2022-01-01 23:16:52 ERROR (SyncWorker_1) [custom_components.aarlo] unable to connect to Arlo: attempt=5,sleep=240,error=2fa startup failed
2022-01-01 23:16:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo
2022-01-01 23:16:54 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/hacs:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:27 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:30 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:31 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/core:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/info:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:33 ERROR (MainThread) [frontend.js.latest.202112290] http://serveurbastien.ddns.net:8123/config/info:4:80 Uncaught TypeError: e.apply is not a function
2022-01-01 23:17:52 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Setup of aarlo is taking longer than 300 seconds. Startup will proceed without waiting any longer
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.binary_sensor: Unable to set up component.
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.switch: Unable to set up component.
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.alarm_control_panel: Unable to set up component.
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.light: Unable to set up component.
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.sensor: Unable to set up component.
2022-01-01 23:17:55 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform aarlo.camera: Unable to set up component.
2022-01-01 23:17:55 WARNING (MainThread) [homeassistant.components.netatmo] Webhook not registered - https and port 443 is required to register the webhook
here with color coding : https://0bin.net/paste/nI3zb-Mk#H0wzEf+XR8q202zyiZhQR8VMj+PLZPSISEQwJAHhuaZ
I'm having the same issue since few days. I'm also on v0.7.2b7 :
2022-01-02 21:18:01 WARNING (MainThread) [homeassistant.setup] Setup of aarlo is taking over 10 seconds. 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [custom_components.aarlo] login-attempt=2 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] Cfg started 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] starting 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] session file not read 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] looking for user_agent linux 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] oldish session, getting a new one 2022-01-02 21:18:09 DEBUG (SyncWorker_0) [pyaarlo] login attempt 1 2022-01-02 21:18:09 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:10 DEBUG (SyncWorker_0) [pyaarlo] login attempt 2 2022-01-02 21:18:11 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:12 DEBUG (SyncWorker_0) [pyaarlo] login attempt 3 2022-01-02 21:18:12 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:13 ERROR (SyncWorker_0) [pyaarlo] authentication failed 2022-01-02 21:18:13 DEBUG (SyncWorker_0) [pyaarlo] failed to log in 2022-01-02 21:18:13 DEBUG (ArloMediaDownloader) [pyaarlo] not starting downloader 2022-01-02 21:18:13 ERROR (SyncWorker_0) [custom_components.aarlo] unable to connect to Arlo: attempt=2,sleep=30,error=authentication failed 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [custom_components.aarlo] login-attempt=3 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] Cfg started 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] starting 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] session file not read 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] looking for user_agent linux 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] oldish session, getting a new one 2022-01-02 21:18:43 DEBUG (SyncWorker_0) [pyaarlo] login attempt 1 2022-01-02 21:18:43 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:44 DEBUG (SyncWorker_0) [pyaarlo] login attempt 2 2022-01-02 21:18:44 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:45 DEBUG (SyncWorker_0) [pyaarlo] login attempt 3 2022-01-02 21:18:45 WARNING (SyncWorker_0) [pyaarlo] request-error=CloudflareChallengeError 2022-01-02 21:18:46 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo 2022-01-02 21:18:46 ERROR (SyncWorker_0) [pyaarlo] authentication failed 2022-01-02 21:18:46 DEBUG (SyncWorker_0) [pyaarlo] failed to log in 2022-01-02 21:18:46 DEBUG (ArloMediaDownloader) [pyaarlo] not starting downloader 2022-01-02 21:18:46 ERROR (SyncWorker_0) [custom_components.aarlo] unable to connect to Arlo: attempt=3,sleep=60,error=authentication failed 2022-01-02 21:19:20 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.68.101 (192.168.68.101). (Home Assistant/2021.12.1 (io.robbie.HomeAssistant; build:2021.327; iOS 15.1.1) Alamofire/5.4.4) 2022-01-02 21:19:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [547724474688] Connection closed by client 2022-01-02 21:19:26 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [547724450208] Connection closed by client 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [custom_components.aarlo] login-attempt=4 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] Cfg started 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] starting 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] session file not read 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] looking for user_agent linux 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] oldish session, getting a new one 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] login attempt 1 2022-01-02 21:19:46 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: aarlo 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] need 2FA... 2022-01-02 21:19:46 DEBUG (SyncWorker_0) [pyaarlo] getting tfa choices 2022-01-02 21:19:47 DEBUG (SyncWorker_0) [pyaarlo] looking for email 2022-01-02 21:19:47 DEBUG (SyncWorker_0) [pyaarlo] 2fa-imap: starting 2022-01-02 21:19:47 ERROR (SyncWorker_0) [pyaarlo] imap connection failed[Errno -2] Name does not resolve 2022-01-02 21:19:47 ERROR (SyncWorker_0) [pyaarlo] 2fa startup failed 2022-01-02 21:19:47 DEBUG (SyncWorker_0) [pyaarlo] failed to log in 2022-01-02 21:19:47 DEBUG (ArloMediaDownloader) [pyaarlo] not starting downloader 2022-01-02 21:19:47 ERROR (SyncWorker_0) [custom_components.aarlo] unable to connect to Arlo: attempt=4,sleep=120,error=2fa startup failed
Formated logs.
I'm having cloudflarechallengeerror and then, when this error disappears, another error with imap 2FA connection failed.
I don't receive any mails on my gmail account when HA tries to connect to Arlo. But when I try with this same account from my laptop, the mail is sent and I can access to my Arlo account to see my camera. I clicked on disconnected on the laptop because I know it can create conflicts if I'm already connected on another device. Restarted my HA several times, still the same issue...
Here my configuration.yaml :
aarlo: user_agent: linux <-I tried with and without this line- username: !secret arlo_username password: !secret arlo_password refresh_devices_every: 2 stream_timeout: 120 tfa_source: imap tfa_type: email tfa_host: imap.host.com tfa_username: !secret tfa_user tfa_password: !secret tfa_password
I finally found the solution. I let the "tfa_host: imap.host.com" with "host" that needs to be changed by gmail :
Like this 👍 tfa_host: imap.gmail.com
I restarted HA and It's now working !
Glad you found it but I think you had 2 issues. The Cloudflare one and the imap one. Just in case you run into Cloudlfare issues going forward:
https://github.com/twrecked/hass-aarlo#cloud-flare
Thanks ! It seems like I have no Cloudflare issue after my correction. But I keep this link in favorites !
Glad you found it but I think you had 2 issues. The Cloudflare one and the imap one. Just in case you run into Cloudlfare issues going forward:
https://github.com/twrecked/hass-aarlo#cloud-flare
the person that you answered to isn't the one that had issue at first i'm the one that has CF issue and both
#104.18.30.98 ocapi-app.arlo.com
#104.18.31.98 ocapi-app.arlo.com
get a Error 1020 from CF
still can't connect via either source so it doesn't work in HA
I'm also consistently getting error 1020 from https://ocapi-app.arlo.com/ and changing the user agents (even to random) and specifying and swapping the round robin-ed hosts via /etc/hosts is not making a difference unfortunately. Might try uninstalling aarlo and letting any potential blocks clear for 24 hours then will re-install and let you know.
One other thing to is logging in from the you HA account using a web browser. That might reset something at the Cloudflare end.
Thanks Steve - yeah have tried that to no avail unfortunately and no change. Frustrating!
It really is annoying...
Can you get another IP address to try? Reboot your router?
And what kind of system is your HA running on? Docker, PI, etc?
A 24 hour wait seems to have fixed the problem! Definitely something transient with Cloudflare as no further changes on my end. Standard PI install of HAOS.