Skip to content
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

Connection failed after upgrade to 4.0.2 #103

Open
Zathras42 opened this issue Mar 3, 2025 · 12 comments
Open

Connection failed after upgrade to 4.0.2 #103

Zathras42 opened this issue Mar 3, 2025 · 12 comments
Labels
bug Something isn't working

Comments

@Zathras42
Copy link

Describe the bug
Upgraded from 4.0.0 to 4.0.2
No longer works.
Error message: "Connection failed"

To Reproduce
Upgrade or install 4.0.2

Expected behavior
Extension to log in to pihole and work..

Desktop (please complete the following information):

  • OS: Win 10
  • Browser Firefox
  • Version 135.0.1 (64-bit)

Additional context
Add any other context about the problem here.

@Zathras42 Zathras42 added the bug Something isn't working label Mar 3, 2025
@joejsullivan
Copy link

i had the same issue suddenly on 4.0.0. Don't understand why - two different computers both stopped working. All the PiHole info was gone from the settings.

@Zathras42
Copy link
Author

Possibly caused by "API seats exceeded increase webserver.api.max_sessions" error.

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again.

From reddit post: https://www.reddit.com/r/pihole/comments/1ivkr68/api_seats_exceeded/
Number of concurrent sessions allowed for the API. If the number of sessions exceeds this value, no new sessions will be allowed until the number of sessions drops due to session expiration or logout. Note that the number of concurrent sessions is irrelevant if authentication is disabled as no sessions are used in this case.

@joejsullivan
Copy link

In my case- I'm not using 6, this is still 5.

@gonsaaa
Copy link

gonsaaa commented Mar 3, 2025

I'm on version 5.18.4 and it also stopped working.
Interesting is that the fields show pihole address and password (instead of API)

@Blugoo
Copy link

Blugoo commented Mar 3, 2025

Same issue since the March 1st update to v4.0.0 in FireFox 115.20.0esr (64 bits).
Thanks in advance and best regards.

@upD8R
Copy link

upD8R commented Mar 3, 2025

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again.

This is the solution, thanks for pointing out.

To the Pi-Hole v5 users: The extension dropped v5 support starting with release 4.0.0. Also mentioned here.

@badsgahhl
Copy link
Owner

badsgahhl commented Mar 3, 2025

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again.

This is the solution, thanks for pointing out.

To the Pi-Hole v5 users: The extension dropped v5 support starting with release 4.0.0. Also mentioned here.

Setting max_sessions should only be needed prior to 4.0.2. The extension unfortunately opened too many sessions. If you already have 4.0.2 you can try to clear all active sessions by changing the password of pihole (just use the same password as before)

sudo pihole setpassword

@simi55
Copy link

simi55 commented Mar 3, 2025

Weird - 4.02 is working in Edge while 4.02 in Firefox (135.0) is not. I copied URL and password.

@Zathras42
Copy link
Author

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again.

This is the solution, thanks for pointing out.
To the Pi-Hole v5 users: The extension dropped v5 support starting with release 4.0.0. Also mentioned here.

Setting max_sessions should only be needed prior to 4.0.2. The extension unfortunately opened too many sessions. If you already have 4.0.2 you can try to clear all active sessions by changing the password of pihole (just use the same password as before)

sudo pihole setpassword

A better way to clear sessions is navigate to Settings - Web Interface - API Settings, switch to expert mode then look at 'Currently active sessions'. From there, you can delete extraneous sessions.

@jdrch
Copy link

jdrch commented Mar 4, 2025

jfc we have to get the devs to stop this API madness. It can't be that updating - a good move for security - screws the rest of the user ecosystem. We all have enough things in our lives to worry about.

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again

Do you also have to restart pi-hole after this?

@Zathras42
Copy link
Author

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again

Do you also have to restart pi-hole after this?

No restart required.
Try the web UI first as mentioned in my previous post.

@jdrch
Copy link

jdrch commented Mar 4, 2025

Went into /etc/pihole/pihole.toml, set 'webserver.api.max_sessions' to a higher value and all working again

Do you also have to restart pi-hole after this?

No restart required. Try the web UI first as mentioned in my previous post.

Thanks, I did the config file update and then checked the web UI. It says I have only 2 sessions, so now I"m really confused as to waht the problem might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants