/ui/v2/login/login?authRequest=V2_345354842673250309 Bug when selfhosting
I am trying to self host Zitadel but on the browser when I try to access the following happens and I cant access /ui/v2/login/login?authRequest=V2_345354842673250309
#questions-help-bugs
18 Replies
Hi @Eliud M. (Mentor), I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. Connect your Self-Hosted Login UI to Zitadel | ZITADEL Docs : This guide covers how to set up the Login UI connection with proper PAT configuration and environment variables for self-hosted deployments (1) .
2. [Bug]: Self-Hosted: {"code":5, "message":"Not Found"} : This GitHub issue discusses the exact error you're experiencing with Login V2 redirects and provides workarounds including disabling Login V2 or properly configuring the login service (2) .
To learn more, see the sources I considered:
[1] Connect your Self-Hosted Login UI to Zitadel | ZITADEL Docs
[2] [Bug]: Self-Hosted: {"code":5, "message":"Not Found"}
Feel free to tag @Ask Inkeep with additional questions.
Hi @Eliud M. (Mentor) , Try setting ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED: false
I tried ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED: false
still i'm facing the same issue, why is that?
still i'm facing the same issue, why is that?
Can you give me bit info about your config? @AniketNS
I'm using Docker compose + Nginx + certbot
http://zitadel.pacewisdom.in:8080/
Docker Compose:
I've changed all localhost occurence to my domain in docker-compose file.
ZITADEL Console
Console Management Platform for ZITADEL IAM
still i'm getting that error, why it is getting forwarded to localhost for authentication I don't know
Can you send the screenshot of the issue
give me a sec
check this
first it loads the UI and then redirects to localhost
actually the site is secure

Hi, Not sure about this as im not using zitadel login image
which one should i use?
ZITADEL Docs
This guide is the entrypoint for running the Zitadel platform locally for the first time.
i'm using this doc
This much should work
Hi,
I'm a bit of a novice on Zitadel but am working in a similar setup of Docker Compose V4+ running the hosted login and navigating around the LOGIN_V2 UI.
If you aren't intending on using the V2 login flow and are setting
ZITADEL_DEFAULTINSTANCE_FEATURES_LOGINV2_REQUIRED to false, then you may be better not running the login service at all.
We just use a subset of settings for our V2 configuration (and some planned OIDC config for later on).
We also expose the ZITADEL_EXTERNALDOMAIN on a non-default port. We had issues running on 8080, and now use 8000.
So some relevant sections are:
Also check if your Nginx is doing any redirection or not doing any host header updates. I tried using Traefic and ran into a lot of errors that way. 😅
Good luck!what about ./envs/zitadel.env file?
Hey @Capitán , can u plz provide the the env files, i'm sure there will be lot of env's that i need to add