I’ve installed new uibakery for self host instance and I’m unable to log in. If I use option to sign up this doesn’t work and I get error: Something went wrong, please try again.
How I can add new user if I have fresh installation of self hosted ui bakery? I managed to do this a while ago, but I don’t remember how I did this.
Correct me if I’m wrong, but I think Something went wrong typically hints to the configuration for the instance not being right. I just recently had this issue myself while configuring the proxy for my instance.
Specifically, it should hint to a network, DNS, proxy or routing problem which prevents the instance from making backend requests. If you check the console in the DevTools it should show some failed requests.
So you either have some variable wrong in the .env of your instance directory, or the issue lies with some routing or a proxy you’ve set up.
If you are using a proxy, don’t forget to add this to your .env (mentioned here in the docs):
@nic_1 All I can tell you is the same as in my answer above: If you can open UI Bakery in the browser, but get Something went wrong, please try again errors when trying to log in, it’s likely an issue with either some .env settings wrong or caused by some routing/proxy.
I recommend checking your .env settings and the URI where your login requests are sent to (dev tools).
This error was caused by incorrect configuration of the UI_BAKERY_APP_SERVER_NAME variable — it most likely contained http://localhost:3030 or something instead of correct IP/domain.
We’ve tightened up the CORS rules a couple of releases before, so incorrectly configured instances can’t reach out to login API endpoint anymore
To whom it may concern:
Just reconfigure your instance according to Setting up a domain name | UI Bakery Docs, restart it with docker compose up -d and it will back up!
I’m still no tgetting this to work. My .env files has this :I_BAKERY_VERSION=latest
UI_BAKERY_APP_SERVER_NAME=http://192.168.2.226:3030
UI_BAKERY_PORT=3030
UI_BAKERY_JWT_SECRET=z1ZzcsV0w14Ffk5IJKnsVAChl1R00tpzKKqUCilyEs
UI_BAKERY_JWT_SERVICE_ACCOUNT_SECRET=5YsdIiaCqUOuzYTqfFNA2h1IoSD6jPDhejN8DMN0eKpgrBhtfWIynOH
UI_BAKERY_JWT_REFRESH_SECRET=rf0UQVyb9SnzmXEPZtHcHr1ZpYvBt8SCZsYYDHaVn8
UI_BAKERY_CREDENTIALS_SECRET=uTACEcRLJQoBQrlTJk28vnlmUKDo9kfe
UI_BAKERY_MFA_SECRET=goyvbSymkfZ5cGQSkxSDVxx9BkMS2tvH
UI_BAKERY_INTERNAL_API_URL=http://bakery-back:8080
Yes, when access the UI bakery from http://192.168.2.226:3030 I get the login screen and when I try to login I get the error “something went wrong, Pleasse try again” and the same happens when I try “Sign up” with a new email and password.
Please restart you instance with docker compose up -d, open sign up page, press F12, try to sign up and take a screenshot of the issues appeared in the console.
I’m running on a RAspberry so I’m using Portainer. I restarted everything and then I get this when I try what you are suggesting. As it seems that is i Polyfills-KO7ZJOV4.js4 that is failing I cliked on that and got the code where it is failing attached in the next reply.
Hi @DKPHA,
I’m not sure if these infos can help you resolve they issue, but here are some thoughts:
I don’t think you need to add the port after the address for UI_BAKERY_APP_SERVER_NAME, that’s what the UI_BAKERY_PORT variable is for. Nevermind, they also have it in the docs.
Networking isn’t my strong suit, but I’m pretty sure that 192.168.* addresses are strictly private IPs. Meaning you can only access them from inside the same network, but not from the internet
502 Bad Gateway could also hint to an issue with a proxy. If you are using one, you need to add JAVA_OPTS='-Dhttps.proxyHost=local-proxy.default -Dhttps.proxyPort=3128 -Dhttps.proxySet=true' to your .env file (writte here in the docs)