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

AArlo wants authentication several times a day

Open mikburnz opened this issue 1 year ago • 20 comments

Till yesterday everything is running smooth. Then i was unable to controle Arlo via my dashboard. Backup restoration and so on

Now i have the state that i can use it. After some minutes or hours there is a disconnect with no sensors found "PingOne Authentication Request You have a new authentication request."

My auth method is push

in configuration.yaml aarlo: host: https://my.arlo.com username: ********@web.de password: *************** db_motion_time: 30 db_ding_time: 60 recent_time: 10 last_format: '%d-%m %H:%M' refresh_devices_every: 2 tfa_source: push tfa_type: PUSH backend: sse mode_api: auto

aarlo.yaml aarlo: host: https://my.arlo.com username: ********@web.de password: *************** tfa_source: push tfa_type: PUSH backend: sse mode_api: auto user_agent: linux send_source: true

mikburnz avatar May 17 '24 08:05 mikburnz

I'll take a look in a minute and let you know but you included a password in the message

On Fri, May 17, 2024, 04:12 mikburnz @.***> wrote:

Till yesterday everything is running smooth. Then i was unable to controle Arlo via my dashboard. Backup restoration and so on

Now i have the state that i can use it. After some minutes or hours there is a disconnect with no sensors found "PingOne Authentication Request You have a new authentication request."

My auth method is push

in configuration.yaml aarlo: host: https://my.arlo.com username: @.*** password: *************** db_motion_time: 30 db_ding_time: 60 recent_time: 10 last_format: '%d-%m %H:%M' refresh_devices_every: 2 tfa_source: push tfa_type: PUSH backend: sse mode_api: auto

aarlo.yaml aarlo: host: https://my.arlo.com username: @.*** password: @.*** tfa_source: push tfa_type: PUSH backend: sse mode_api: auto user_agent: linux send_source: true

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/945, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALHJU6S3EW2TATIWZLHLGATZCW3XDAVCNFSM6AAAAABH3VFRK6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDEMBZGU3DENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

twrecked avatar May 17 '24 11:05 twrecked

Try deleting .aarlo/session.pickle and restarting.

If it still persists, I need a debug logs.

twrecked avatar May 17 '24 13:05 twrecked

Thank you. Unfortunately no success. There is also another folder —> /.aarlo/aarlo.pickle

  1. should I also delete this?
  2. How do I get the debug log?

mikburnz avatar May 17 '24 21:05 mikburnz

The debug logs are in home-assistant.log after you enable the settings in the link I put in the previous comment.

twrecked avatar May 19 '24 12:05 twrecked

I was having this same issue, lots authentication per minute in fact. I think I have it resolved after:

  • Updating via HACS (I was at least 6 months out of date)
  • Resetting the Arlo service
  • Resetting the Home Assistant

Edit: Nevermind, my config is just invalid post update. I'll update one way or the other after I fix it.

cvkramer avatar May 20 '24 20:05 cvkramer

I'm having problems too

verocauto avatar May 20 '24 21:05 verocauto

Steps that resolved it for me:

  • removed the HACs integration
  • installed again via HACs
  • restarted ha
  • comment out aarlo configuration.yaml lines
  • restarted ha
  • profit

The app brought in configuration. Everything fixed itself, and auth stopped losing its mind with 2fa requests.

Edit: made it more explicit what was restarted

cvkramer avatar May 20 '24 21:05 cvkramer

Please I have been here for hours still not working for me, please I need helpSent from my iPhoneOn May 20, 2024, at 5:33 PM, Charles Kramer @.***> wrote: Steps that resolved it for me:

removed the HACs integration installed again via HACs restarted ha comment out aarlo configuration.yaml lines restarted profit

The app brought in configuration. Everything fixed itself, and auth stopped losing its mind with 2fa requests.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

verocauto avatar May 20 '24 21:05 verocauto

If any body wants to post some debug I'll take a look.

twrecked avatar May 20 '24 21:05 twrecked

2024-05-20 18:22:54.237 WARNING (SyncWorker_28) [pyaarlo] error in new response={'meta': {'code': 400, 'error': 9204, 'message': 'Browser is not trusted'}} 2024-05-20 18:22:55.222 ERROR (SyncWorker_28) [pyaarlo] imap connection failedb'[ALERT] Application-specific password required: https://support.google.com/accounts/answer/185833 (Failure)' 2024-05-20 18:22:55.222 ERROR (SyncWorker_28) [pyaarlo] 2fa startup failed 2024-05-20 18:22:56.260 WARNING (SyncWorker_28) [pyaarlo] error in new response={'meta': {'code': 400, 'error': 9204, 'message': 'Browser is not trusted'}} 2024-05-20 18:22:57.351 ERROR (SyncWorker_28) [pyaarlo] imap connection failedb'[ALERT] Application-specific password required: https://support.google.com/accounts/answer/185833 (Failure)' 2024-05-20 18:22:57.352 ERROR (SyncWorker_28) [pyaarlo] 2fa startup failed 2024-05-20 18:22:57.354 ERROR (SyncWorker_28) [custom_components.aarlo] unable to connect to Arlo: attempt=1,sleep=15,error=2fa startup failed

On Mon, May 20, 2024 at 5:59 PM Steve Herrell @.***> wrote:

If any body wants to post some debug https://github.com/twrecked/hass-aarlo?tab=readme-ov-file#enabling-debug I'll take a look.

— Reply to this email directly, view it on GitHub https://github.com/twrecked/hass-aarlo/issues/945#issuecomment-2121282598, or unsubscribe https://github.com/notifications/unsubscribe-auth/BITEE2EY4RGLORS6UUGKP6LZDJW23AVCNFSM6AAAAABH3VFRK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGI4DENJZHA . You are receiving this because you commented.Message ID: @.***>

-- Prince Chukwunonso Tel: +1 832 310 9491 Email: @.***

verocauto avatar May 20 '24 22:05 verocauto

https://github.com/twrecked/hass-aarlo?tab=readme-ov-file#application-passwords

You need an application password.

twrecked avatar May 20 '24 22:05 twrecked

This comes out of the logs.

2024-05-21 08:58:02.482 WARNING (SyncWorker_40) [pyaarlo] body-error=KeyError 2024-05-21 08:58:02.901 WARNING (SyncWorker_40) [pyaarlo] body-error=KeyError 2024-05-21 08:58:03.072 WARNING (SyncWorker_40) [pyaarlo] error in new response={'meta': {'code': 400, 'error': 9204, 'message': 'Browser is not trusted'}} 2024-05-21 08:58:03.693 WARNING (SyncWorker_40) [pyaarlo] body-error=KeyError 2024-05-21 08:58:08.038 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError

2024-05-21 08:59:42.153 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aarlo for ****@.de for aarlo Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/aarlo/init.py", line 245, in async_setup_entry arlo = await hass.async_add_executor_job(login, hass, domain_config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError 2024-05-21 08:59:42.913 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:45.581 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:48.203 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:50.975 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:53.481 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:56.318 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 08:59:58.797 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 09:00:02.063 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

2024-05-21 09:00:04.182 ERROR (ArloEventStream) [pyaarlo] general-error=HTTPError Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 593, in _sse_main self._event_client = SSEClient( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 55, in init self._connect() File "/usr/local/lib/python3.12/site-packages/pyaarlo/sseclient.py", line 74, in _connect self.resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://my.arlo.com/hmsweb/client/subscribe

mikburnz avatar May 21 '24 07:05 mikburnz

little remark. I changed to imap authemtication. Without success

aarlo: host: https://my.arlo.com username: ********@.de password: ****************** tfa_source: imap tfa_type: email tfa_host: imap.gmail.com tfa_username: ********@.de tfa_password: **** different passwort backend: sse mode_api: auto user_agent: linux send_source: true

mikburnz avatar May 21 '24 07:05 mikburnz

@mikburnz What version are you on?

twrecked avatar May 21 '24 11:05 twrecked

latest version. just deinstalled and installed the newest version

mikburnz avatar May 21 '24 11:05 mikburnz

@mikburnz comment out backend from /config/aarlo.yaml.

twrecked avatar May 21 '24 11:05 twrecked

@mikburnz comment out backend from /config/aarlo.yaml.

read it often. You mean i should delete with comment out? Would be great you can show me the whole needed aarlo.yaml

mikburnz avatar May 21 '24 12:05 mikburnz

this is my actual

tfa_source: push tfa_type: PUSH mode_api: auto user_agent: linux send_source: true backend: sse

mikburnz avatar May 21 '24 12:05 mikburnz

024-05-21 14:36:14.401 INFO (SyncWorker_33) [pyaarlo] pyarlo 0.8.0.7 starting... 2024-05-21 14:36:14.401 DEBUG (SyncWorker_33) [pyaarlo] config: loaded 2024-05-21 14:36:14.402 DEBUG (SyncWorker_33) [pyaarlo] background: starting 2024-05-21 14:36:14.404 DEBUG (SyncWorker_33) [pyaarlo] backend: loadv2:session_info={'version': '2', ' 2024-05-21 14:36:14.405 DEBUG (SyncWorker_33) [pyaarlo] backend: looking for user_agent linux 2024-05-21 14:36:14.432 DEBUG (SyncWorker_33) [pyaarlo] backend: newish sessions, re-using 2024-05-21 14:36:14.432 DEBUG (SyncWorker_33) [pyaarlo] backend: savev2:session_info={'version': '2', 2024-05-21 14:36:14.611 ERROR (SyncWorker_33) [pyaarlo] session start failed 2024-05-21 14:36:14.611 DEBUG (SyncWorker_33) [pyaarlo] backend: looking for user_agent linux 2024-05-21 14:36:14.611 DEBUG (SyncWorker_33) [pyaarlo] backend: oldish session, getting a new one 2024-05-21 14:36:14.611 DEBUG (SyncWorker_33) [pyaarlo] backend: CloudFlare curve set to: secp384r1 2024-05-21 14:36:14.659 DEBUG (SyncWorker_33) [pyaarlo] backend: login attempt #1 2024-05-21 14:36:14.848 WARNING (SyncWorker_33) [pyaarlo] body-error=KeyError 2024-05-21 14:36:14.848 DEBUG (SyncWorker_33) [pyaarlo] request-text= 2024-05-21 14:36:18.010 DEBUG (SyncWorker_33) [pyaarlo] backend: login attempt #2 2024-05-21 14:36:18.134 WARNING (SyncWorker_33) [pyaarlo] body-error=KeyError 2024-05-21 14:36:18.134 DEBUG (SyncWorker_33) [pyaarlo] request-text= 2024-05-21 14:36:21.178 DEBUG (SyncWorker_33) [pyaarlo] backend: login attempt #3 2024-05-21 14:36:21.325 WARNING (SyncWorker_33) [pyaarlo] body-error=KeyError 2024-05-21 14:36:21.325 DEBUG (SyncWorker_33) [pyaarlo] request-text= 2024-05-21 14:36:24.372 ERROR (SyncWorker_33) [pyaarlo] authentication failed 2024-05-21 14:36:24.372 DEBUG (SyncWorker_33) [pyaarlo] backend: login failed, trying another ecdh_curve 2024-05-21 14:36:24.372 DEBUG (SyncWorker_33) [pyaarlo] backend: CloudFlare curve set to: prime256v1 2024-05-21 14:36:24.399 DEBUG (SyncWorker_33) [pyaarlo] backend: login attempt #1 2024-05-21 14:36:24.648 WARNING (SyncWorker_33) [pyaarlo] body-error=KeyError 2024-05-21 14:36:24.648 DEBUG (SyncWorker_33) [pyaarlo] request-text=

mikburnz avatar May 21 '24 12:05 mikburnz

EDIT: I mistakenly changed the device name which updated entity IDs, which I believe caused the session invalidations.

Running into random session invalidation which I feel like is related to the parent topic, needing re-auth multiple times constantly. If anyone can provide some insight, I'd appreciate a nudge in the right direction. Could this be related to multiple aarlo config files, as mentioned above?

Logger: homeassistant.components.stream.stream.camera.aarlo_front_door Source: components/stream/init.py:448 integration: Stream (documentation, issues) First occurred: June 23, 2024 at 11:46:26 PM (27 occurrences) Last logged: 12:00:06 AM

Error from stream worker: Error demuxing stream: [Errno 5] I/O error: 'rtsps://arlostreaming21594-z2-prod.wowza.arlo.com:443/vzmodulelive/A47E297TD1602_1719211517485?egressToken=d44d2510_c6d2_4e45_a5e2_8d5d7480bb62&userAgent=iOS&cameraId=A47E297TD1602_1719211517485&optimization=false&txnId=FE!b771e102-f6f8-4d34-9ff1-b27ee35a0c85'; last error log: [tls] The specified session has been invalidated for some reason. Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://arlostreaming21594-z2-prod.wowza.arlo.com:443/vzmodulelive/A47E297TD1602_1719211517485?egressToken=d44d2510_c6d2_4e45_a5e2_8d5d7480bb62&userAgent=iOS&cameraId=A47E297TD1602_1719211517485&optimization=false&txnId=FE!b771e102-f6f8-4d34-9ff1-b27ee35a0c85 Error from stream worker: Stream ended; no additional packets Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://arlostreaming21594-z2-prod.wowza.arlo.com:443/vzmodulelive/A47E297TD1602_1719211517485?egressToken=4570d954_6ff9_4e69_bf0f_5883798223a9&userAgent=iOS&cameraId=A47E297TD1602_1719211517485&optimization=false&txnId=FE!f8203ef3-78fb-488b-8838-0e128bf4de44&watchalong=true Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://arlostreaming20289-z2-prod.wowza.arlo.com:443/vzmodulelive/A47E297TD1602_1719211737391?egressToken=e6bcd829_3793_4a06_85f6_6a3651554763&userAgent=iOS&cameraId=A47E297TD1602_1719211737391&optimization=false&txnId=FE!4ccc6068-e413-4e56-8685-5672a0a9a979

TheBigWazz avatar Jun 24 '24 07:06 TheBigWazz