Home Assistant login issue - Unable to complete authorization

Hi,
I’ve had Homehabit for probably years now with no issues - it even passes the wife test.
Recently however I had to spin a new Home assistant as my old RPi kept dying (rather the sd card)
The new HA had a new IP and as I went to update the IP address in HH nothing worked and it kept saying it could not connect.
I tried a different phone (and checked that my HA instance was accessible via the browser) and after ‘Getting started’ and inputting the IP ( http://newIP:8123 ) I got to the screen that says ‘Connect’ and tapping on that gives a “Unable to complete authorization” toast

Checking HA, the log shows

> Logger: homeassistant.components.http.ban
> Source: components/http/ban.py:136
> integration: HTTP (documentation, issues)
> First occurred: 12:05:39 AM (7 occurrences)
> Last logged: 12:11:10 AM
> 
> Login attempt or request with invalid authentication from MyPixel.local (192.[redacted]). Requested URL: '/auth/token'. (Dalvik/2.1.0 (Linux; U; Android 15; Pixel 6a Build/BP1A.250305.019))

So I wonder if HA does not want to serve on unencrypted http or if HH won’t work if I don’t have a proper certificate when connecting over https (I tried https same result) or if something else is happening.

Any help appreciated. Thank you!

I’m experiencing the same issue - did you figure this out?

Thanks for any pointers

The app does require a valid certificate for https to work, so that might be the issue. Self-signed certificates do work, as long as it isn’t expired.
If that still doesn’t work, please upload debug logs from the support screen.

Thanks for the swift reply.

This occurred after I updated my tablet - I imported my settings and when I try to connect this message appears. It happens both with http and https. Nothing else has changed. Do I need to add a certificate to my HA installation?

I’ve moved the installation from one tablet to another before without any issue, using the same procedure.

@Oivind_O Can you upload debug logs? (right after getting “unable to complete authorization” message)

I just uploaded- thanks for looking into this Igor :slight_smile:

I’m in the same boat,… the difference is my Home Assistant IP changed because I moved it to another server.
Since then her HH stopped working. I changed the target IP and I kept getting the Authorization message with no way to fix.
I installed HH on my phone and got the same error (brand new install on S24)

Debug logs uploaded… I hope it helps. Thanks @igor

I did not figure it out sadly :frowning:

The fix is coming in the next patch release. Thanks for reporting this!

1 Like

The fix is in the 39.6 version - rolling out right now.

1 Like