mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 05:02:58 +03:00
🐛 Bug Report: refreshing page returns 502 Error #471
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CyberB1aze on GitHub.
Reproduction steps
when on page
https://domain.com/settings/admin/oidc-clients
When clicking refresh, it returns a 502 error
I'm running pocket-id as a docker container on ubuntu server 24.04, behind nginx reverse proxy.
Expected behavior
Assuming it should just display the oidc-clients page
Actual Behavior
@stonith404 commented on GitHub:
Thanks for sharing. This issue only occurs when you open the
/settings/admin/oidc-clientspage, not on any other page? And are those really the only errors you can see withdocker compose logs pocket-id?@simono41 commented on GitHub:
Here is my docker-compose.yml
and here the automatic generated nginx config
@stonith404 commented on GitHub:
Please share the container logs if they contain any error, the
docker-compose.ymland the Nginx configuration.@simono41 commented on GitHub:
And here is the error message from the docker log
@simono41 commented on GitHub:
Hello, I have the problem too. The configurations will follow shortly.
@simono41 commented on GitHub:
I've only been using their software since v0.11.0. The problem continues to occur in the private window.
The version was automatically upgraded from Watchtower to the new version v0.12.0.
By the way, I think your project is very cool. I run 18 services with it that I have connected with OIDC and originally come from Keycloak, but for the private application that is simply too much.
@stonith404 commented on GitHub:
@simono41 Thanks I've found the problem. The problem is that the "link" header of Svelte Kit is too large for Nginx. I'll create a new release ASAP.
@simono41 commented on GitHub:
No, I also have the problem on other pages like settings/admin/user-groups and settings/audit-log but on settings/account I don't get a 502 Bad Gateway when reloading.
And excuse me here are my complete logs attached in the file.
logs.txt
@simono41 commented on GitHub:
But since I'm not with Cloudflare, but have a reverse proxy with nginx, my site obviously looks different.
@stonith404 commented on GitHub:
Thanks @simono41. I can debug this further tomorrow. Can you try to delete all the cookies? Additionally, does this issue only occur since the latest release?
@stonith404 commented on GitHub:
I could solve this issue by removing the header but it would hurt the performance. The recommended solution is to add the following configuration to Nginx:
I'll update the docs.
@stonith404 commented on GitHub:
Okay, let me know if this happens. Then I'll remove the header completely.
@CyberB1aze commented on GitHub:
would this have to be added to the nginx-proxy-manager reverse proxy?
@simono41 commented on GitHub:
With keycloak I also had to adjust this, but there was the problem that it did not work in some mobile apps the Oauth.
@simono41 commented on GitHub:
No, everything's fine. This proxy setting is already correct. I mean if he's not there that some mobile apps have problems. I have adjusted these adjustments on my nginx and can no longer get the faulty page. Thanks again for your hard work.
@simono41 commented on GitHub:
Yes
@adebisi-fa commented on GitHub:
This fixed the issue for me. Thanks!