-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Login returns 502 error (v0.13.1) #156
Comments
Same problems here. |
Hey, |
Same issue here. Strangely both the logs (of all containers) and browser console show no related errors, and coming to the site from incognito shows the home screen with no issues. It might be worth noting that I am seeing the cookie pb_auth set, which to me indicates that everything is fine up until it actually tries to do something when logged in:
Steps to produce: Set up new server per the provided compose I also just tried logging in with incorrect password (again, using incognito gives access until login) and the validation returns as invalid, successfully and with no 502 error. Seems to be directly related to a successful login, whether it's from signup or actual login. |
Sorry to keep commenting on this but I can't help but keep digging :) I have a very similar setup to @gitmotion so I decided to dig there. Cloudflare didn't seem to be the issue (bypassing the "orange cloud" did nothing), but accessing directly from IP did fix the issue. So it seems to be something about NPM. I'll probably keep digging to find a solution and I'll edit this comment if I find anything. EDIT
@gitmotion Can you try this and see if it also works for you? TL;DR |
@logburn that's awesome no need to be sorry! i haven't had the time to look deeper so thanks for looking into that, i'll give that a try and let you know how it goes! |
@logburn nice just gave it a try and that worked for me! i guess that does make me wonder if there's any way to reduce the size of data passed through the headers so wanderer can work in more flexible scenarios (but i suspect it's due to cloudflare, npm, & authentik in between), but in either case this workaround seems to be fine for my setup and server specs. p.s. really feeling the performance improvements of wanderer from the recent updates, looking good @Flomp 👍🏻 (will close this issue in about a week in case someone else runs into a similar issue) |
@logburn that's some great detective work! Thank you! I investigated a bit which change in v0.13.1 might have caused this issue. I had already found the problem that caused newly registered users to not be redirected properly. This was caused by a change I made to the nav bar component: |
@Flomp I want to run on the same environment to make sure it solves the issue (especially since I believe the NPM reverse proxy to be the source) but I'm rather inexperienced with Dockerfile. I'm getting errors when I try to build and I don't know how to resolve them. If you build it I can try pulling and running it! |
I just released v0.13.2 which includes the aforementioned fix. So no need to build it yourself. https://wanderer.to/getting-started/local-development/#building |
I'm still getting the same 502 error with the new build, and the same fix works for me. |
I just updated to the latest release and still get a 502 error. The last working version for me was 12. |
Mine's actually smaller than that, about 1.1kB. I was also getting the error with no bio set (in fact I had just made the account so nothing was set at all, other than defaults). But I agree that separating out variables from the auth cookie is a good idea, and probably will fix the issue. |
With v0.14.0 the bio is migrated out of the auth cookie. I'll close this as the original issue has been resolved by the fix proposed by @logburn. |
I have encountered the exact same issue with my installation in Docker on my Synology. When using the default Reverse Proxy option on a Synology NAS there is no option to change the headers. |
I found the culprit: Deleting the link attribute from the response headers reduces the size from 4.9kB to ~1.5kB. So this should fix it. I did not notice any increased latency while testing. So I think it should be fine to just leave it out. |
@Flomp nice find 🚀 |
After updating to v0.13.1 login seems to break/return 502 error and wont work until i clear cookies. but sign in is currently impossible for me. it may have something to do with my setup in general but just thought I'd post something here about it in case anyone else was facing the same issue
Setup:
Side note: would be nice if we could set up multiple origin urls so that we can view from local domains/ip's for the same instance if this isn't already possible
Thanks in advance!
The text was updated successfully, but these errors were encountered: