-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Docker Compose Upgrade to 0.34 breaks Redirect #9031
Comments
Hey @chrisjenx thanks for trying out 0.34 so quickly. We'll get back to you with a solution tomorrow |
@chrisjenx @FelixMalfait the upgrade guide is missing, FRONT_DOMAIN, FRONT_PROTOCOL (and FRONT_PORT) need to be specified |
Ahh dang, OK I'll give that ago and report back! |
So yes, adding FRONT_DOMAIN and FRONT_PROTOCOL to .env and docker-compose fixes getting to the front end. Looks like it doesn't auto migrate the database tho, we now get:
|
I have the same issue. |
Hey @kbkozlev you can see examples at the top of this PR: https://github.com/twentyhq/twenty/pull/9034/files Based on your feedback we've now made FRONT_DOMAIN/PROTOCOL optional (we just need to publish a new tag) and we fallback on the SERVER_URL if it isn't defined. That way we don't complexify the setup for most instances which have the same frontend/backend url Thanks @chrisjenx for the report! |
Thanks! do you want a different ticket for the |
@chrisjenx that's strange because it should be in the entrypoint command when you restart the docker:
Can you check |
See: #9031 (comment) I think it would be easier if the default behavior for the container was to run the migration, and setting the environment variable would be used to disable it (e.g. on the worker). Long-term goal is for the default setup to work out of the box with ~2 env variables only (database url, redis url) I don't think there's a big risk if people forget to turn it off on the worker?
It's there, I can try running manually as well I guess
|
I know a +1 isn't super helpful, but I've got the same issue here. Currently troubleshooting on my side. |
I've changed the default value for 0.34, maybe it will help others... Also PG_DATABASE_HOST was incorrect in the .env.example ( @chrisjenx yes you should try to run it manually, but I'm not sure why it's not ran when starting the docker 🤔 |
@FelixMalfait ran it manually working after a metadata issue see: #9041 (comment) So I'm gussing there is an issue with migration not auto running on start inside the docker containers? Wondering if a race condition or it brings the containers up before finishing the migration? |
Mmh strange, we'll see if there are other reports of this or if it's something related to your setup 🤔 |
Yeah it is odd, I used the one line script to install on a clean vm, I'm surprised there's not more reports as I'm guessing thats probably the most common method to self host? |
Bug Description
Upgrade to 0.34.0 from 0.33.7 breaks redirect, i.e. https://twenty.domain.com will redirect to localhost/welcome instead of the set
SERVER_URL
in the .env fileExpected behavior
Should respect the
.env
SERVER_URL=
setting for docker compose appsTechnical inputs
Followed upgrade instructions. docker compose down -> docker compose up -d
Everything is running and no errors in logs... guessing it's not reading the env file correctly?
The text was updated successfully, but these errors were encountered: