-
Notifications
You must be signed in to change notification settings - Fork 16
Login problems #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide us stack logs ? Do you use MFA ? |
I got the same issue (on http server without MFA). Here is my related log:
Hope this help! |
Hey @Wendigogo What integration version is installed ? After 31 attempts, I think you've reached the maximum number of connections allowed by Pi-hole. You should purge the sessions from the Pi-hole interface and/or try again later with the correct password. |
I'm seeing the same issue on integration version 1.9 |
Need more information. Please active the debug log and provide the log stack related the integration. |
This error originated from a custom integration. Logger: custom_components.pi_hole_v6.config_flow Connection failed: No session identity provided for endpoint requiring authorization. This is what I get... If there is a way to get more detailed logs for you I'm happy to, just not sure how to do it. I do have the debug: true line in my config.yaml for HA. |
Did you restart your HA after modifying the log level ? |
Yes I did restart. |
Please copy/paste the section related to log here. You should see more logs. |
The below has been pasted into /homeassistant/configuration.yaml then home assistant was restarted. I then go to Settings>System>Logs. logger: The entry above was from the Home Assistant Core log with show condensed logs "on". 2025-03-27 17:13:52.235 DEBUG (MainThread) [custom_components.pi_hole_v6.config_flow] Session ID Hash: None I have created an "app password" in pi-hole and am using that in the HA interface. Otherwise the Pi-Hole does not have a password that is used to access the web interface. |
I was able to get this to work by setting a password for the web interface. Or |
Not sure to understand the situation. The password was configured or not configured on your pi-hole instance. 🤷🏼♂️ Currently, only the pre-release versions allow to use the integration with a pi-hole instance which is not configured with a password. |
Hello, In my case, I have a password to login in the PiHole web UI. Is there a way to find the PiHole api key somewhere? To double-check the one I copy-paste is good. EDIT : I enabled verbose debug for API in
The I restarted my HA for each ha-pihole-v6 update. |
There is no way. You have to reset the application password. |
I'm not using 2FA. How do I access "stack logs"? Here is the log entry generated in HOAS |
That's what I found too. The only way is to replace it with a new generated one. Have you seen my edit with PiHole API debug logs? I don't understand this line : |
I can't explain the Pi-hole logs. I never examined the Pi-hole logs. However, the Pi-hole logs and the integration logs seem to be identical. |
I have just created a new pre-release v1.9.3. |
Here is my HA basic log:
|
Just created a new pre-release. I think that the message will be "Incorrect password". Maybe you have to change the "name" when you create the device. |
My previous message was on your v1.9.3. Tried again with another "name" and got the exact same message. EDIT : tried with a bad password and also got the same log message... |
Cannot reproduce the issue on my side. |
And I also tried directly from HA terminal add-on and everything seems OK:
|
Working. First login failed, 2nd attempt worked. |
Good news @user150aa346 ! @Wendigogo The error is not the same now ? Are you sure that your Pi-hole instance is reachable by your HA container ? Can you try using the IP adress ? |
cURL answer have been done directly from HA terminal. FYI : HA is on a VM and Pi-Hole on a LXC container. |
Terminal via an addon ? The addon use their own container. |
A new pre-release with another debug message 😄 https://github.com/bastgau/ha-pi-hole-v6/releases/tag/v1.9.7 |
I'll try directly from ssh' VM with the newest version. |
Oh my! I finally got it: My password has been reset with a blank one (no password to log on the webui). I thought it was my password vault that fill it each time I went to these pages. And I don't know how this password has been removed. Maybe when setting the API one or messing with "toml" config file Anyway, sorry for wasting your time with this. :/ |
❌ @montgomery102 I will release new version : https://github.com/bastgau/ha-pi-hole-v6/releases/tag/v1.10.0 |
Hey @jj33 Please provide the entire logs. Not necessary to mask your IP which are reached only from your internal network. |
Best I could find: |
Hey @jj33 Do you use an application password ? Thanks. |
Hey @jj33, do you have a password to login to web interface? You should double-check this as mine has been removed at some point (and I still don't know how/why). Enjoy! |
I do have a web login password, and verified it's still in there. I put in the API password, not the web login password. Is this correct? |
Application password and admin password should work. |
So the API password did not work, but the web login password did work. |
Good news @jj33 ! |
It doesn’t explain why the API password that you are supposed to use does not work. Could lead to issues down the road when someone changes or removes a login password.Cheers,JoelOn Apr 9, 2025, at 1:55 AM, Bastien Gautier ***@***.***> wrote:
Good news @jj33 !—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
bastgau left a comment (bastgau/ha-pi-hole-v6#72)
Good news @jj33 !
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
On my side, the password application and the web password work well. |
Not sure if its related, but mine recently stopped working, so I removed the integration and readded it. I used this as the URL It seems to work but then when I go into the integration I have a red error and this message. What is the missing required parameter ? Is it something wrong with the URL? Password? Or something else Here is what I could see in the logs..... Logger: custom_components.pi_hole_v6 Unexpected error fetching Pi-hole data And then this other log.... Logger: custom_components.pi_hole_v6 <class 'custom_components.pi_hole_v6.exceptions.BadRequestException'> - 400 Bad Request # GET https://192.168.1.180/api/groups : {'error': {'key': 'database_error', 'message': 'Could not read domains from database table', 'hint': 'Database not available'}, 'took': 0.0001804828643798828} |
The answer returned by Pi-hole API seems to be incorrect.
The groups are available in the Pi-hole administration website ? |
Thank you for the pointer! Yes the DB was corrupt. I deleted it and everything started working! Thank you! |
Same problem. [edit, solved... my problem] Questo errore ha avuto origine da un'integrazione personalizzata. Registratore: custom_components.pi_hole_v6.config_flow Connection failed (https://192.168.xxx.xxx:443/api): No session identity provided for endpoint requiring authorization. Questo errore ha avuto origine da un'integrazione personalizzata. Registratore: custom_components.pi_hole_v6.config_flow 200 OK # POST https://192.168.:443/api/auth : {'session': {'valid': True, 'totp': False, 'sid': None, 'validity': -1, 'message': 'password incorrect'}, 'took': 5.650520324707031e-05} The IP and port are correct. The integration fails to authenticate, even though the Pi-hole web interface confirms that the credentials are correct. The response message says "password incorrect" and 'sid' is None, which seems to be the issue preventing the session from being created. Do you have any idea what could be causing this? Thanks in advance! |
No idea. The Json displayed indicating an incorrect password is returned by the API. |
sorry, I solved it, it was my problem, I solved it, everything works |
Just making a quick note here because I was experiencing a similar issue. When I uninstalled and reinstalled a fresh copy of Pi-hole it provided me with a password to login to the Web UI with. I thought that password was for use with this integration, but I realized I had to run the 'pihole setpassword' command on the RPi3 I was hosting Pi Hole on, set a password, and then use that password for the integration. And for additional clarity sake, my URL target was https://pi.hole:443/api which is different from the one that's pre-populated in the integration. |
Mine allows setup with http:[MY_IP:8080]/admin and default web password, but then entities are all nonfunctional. I get this error log and curiously it relates to server details that have nothing to do with mine... {'operationName': 'CheckAlarm', 'variables': {'numinst': '5716421', 'panel': 'SDVECU'}, 'query': 'query CheckAlarm($numinst: String!, $panel: String!) {\n xSCheckAlarm(numinst: $numinst, panel: $panel) {\n res\n msg\n referenceId\n }\n}\n'}) |
I think that the default web password should work. For the other issues, I don't know how I can help you. It is depending of your integration installation. |
Somehow it started working now! |
I'm getting hung up on the password which I know is correct. It's what I use to login as root.
Any assistance would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: