mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
🐛 Bug Report: refreshing page returns 502 Error #48
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 (Oct 30, 2024).
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 (Oct 30, 2024):
Please share the container logs if they contain any error, the
docker-compose.ymland the Nginx configuration.@simono41 commented on GitHub (Oct 30, 2024):
Hello, I have the problem too. The configurations will follow shortly.
@simono41 commented on GitHub (Oct 30, 2024):
Here is my docker-compose.yml
and here the automatic generated nginx config
@simono41 commented on GitHub (Oct 30, 2024):
And here is the error message from the docker log
@stonith404 commented on GitHub (Oct 30, 2024):
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 (Oct 30, 2024):
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 (Oct 30, 2024):
But since I'm not with Cloudflare, but have a reverse proxy with nginx, my site obviously looks different.
@stonith404 commented on GitHub (Oct 31, 2024):
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?
@simono41 commented on GitHub (Oct 31, 2024):
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 (Oct 31, 2024):
@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.
@stonith404 commented on GitHub (Oct 31, 2024):
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.
@simono41 commented on GitHub (Oct 31, 2024):
With keycloak I also had to adjust this, but there was the problem that it did not work in some mobile apps the Oauth.
@stonith404 commented on GitHub (Oct 31, 2024):
Okay, let me know if this happens. Then I'll remove the header completely.
@simono41 commented on GitHub (Oct 31, 2024):
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.
@CyberB1aze commented on GitHub (Nov 5, 2024):
would this have to be added to the nginx-proxy-manager reverse proxy?
@simono41 commented on GitHub (Nov 5, 2024):
Yes
@adebisi-fa commented on GitHub (Mar 26, 2025):
This fixed the issue for me. Thanks!