-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Direct Logout with Error 422 #2589
Comments
I have a fairly similar setup, but no issues like you describe. I'm running GitLab 15.0.1 (docker container), REDIS Offical docker image (version 7.0) & PostgreSQL Office docker image 13.7. My GitLab instance sits behind an apache 2.4.x reverse proxy where I terminate letsencrypt SSL cert (requests are sent using HTTP to gitlab and there are no certs applied inside the GitLab docker container). I know in the past I had issues with 500 errors (the mitigating strategy being to set the GitLab docker env var "RACK_ATTACK_ENABLED" to "false"). To troubleshoot I'd suggest "go back to basics". for example, bypass your nginx reverse proxy, to better understand whether the issue persists or not, and build up your understanding of the issue and where it might be originating from. Clearly, something is wrong, so try to strip back as many layers as possible. |
Thanks for your reply. This is probably the only thing I can do right now. I will setup a fresh installation of the docker-compose file from this repo and see if this is working. Luckily this is easy with docker. All other googleing and testing did not help so far. |
np. I hope you find a resolution quickly. As you probably know, to bypass your nginx reserver proxy you should just be able to point your browser to the defined "proxypass" url, from your published config this would be: http://gitlab_upstream One thing I do find interesting is your proxy pass is forwarding on http://gitlab_upstream (I'm assuming this url is contrived for this forum post). That said, if the target is http:// (not https), then I'm wondering whether the following env vars are needed (as I don't see any hint of you using self-signed certs within your gitlab docker-compose, perhaps I'm overlooking something though)
As I mentioned above, rightly / wrongly, traffic between my apache reverse proxy and GitLab service is just http (inbound SSL is terminated on the reverse proxy). As of now, I do not have either of the above set in my config. |
Hi @fidoedidoe, sorry for my late answer. It works now. I have moved the containers to another computer with a newer host system. I think the old system was simply to old with Ubuntu 16.04. I didn't want to update it for some reasons ;) On a newer system with Ubuntu 20.04 my configuration worked more or less directly. Thanks a lot again for your help! |
Hi,
I'm already using this Repo for a longer time and I'm pretty happy with it. So first of all thanks for the great work to the maintainers.
Now I have updated my GitLab instance to 15.0.2 and moved my domain which is working with a letsencrypt https certificate. Since then I most of the time I get logged out from GitLab and receive an error 422. Sometimes I'm also able to klick onto another page. But then I see in the developer tools already that some ressources like icons can't be loaded due to an error 401. If have googled and debugged this error now for a longer time but found nothing that really helped.
In front of my GitLab Instance I have setup an NGINX reverse proxy which worked also pretty good for a long time. It is in the same network as the GitLab-Docker-Containers and its current configuration looks like this right now:
My docker-compose config looks like this:
In the production.log I can find the following errors:
Thanks in advance for your help.
Kind regards,
Stephan
The text was updated successfully, but these errors were encountered: