Freebios
Freebios
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
I don’t know to be honest, it’s legacy stuff that was here before me in the doc 😅
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Yeah it requires installing a lot of dependencies, I’ll check if we can run migration without doing a yarn install
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
"database:reset": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"cwd": "packages/twenty-server",
"commands": [
"nx ts-node-no-deps -- ./scripts/truncate-db.ts",
"nx ts-node-no-deps -- ./scripts/setup-db.ts",
"nx database:migrate",
"nx command-no-deps -- workspace:seed:dev"
],
"parallel": false
}
}
"database:reset": {
"executor": "nx:run-commands",
"dependsOn": ["build"],
"options": {
"cwd": "packages/twenty-server",
"commands": [
"nx ts-node-no-deps -- ./scripts/truncate-db.ts",
"nx ts-node-no-deps -- ./scripts/setup-db.ts",
"nx database:migrate",
"nx command-no-deps -- workspace:seed:dev"
],
"parallel": false
}
}
should have been good so hard to say then
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
I'm wondering if the database:reset job resets everything and requires to run migration again, it seems from the log that the database was in poor state 😄 Well I'm glad you got to start the app !
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
I got the same error but was able to reset db
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Actually it doesn't seem to be a blocking issue, did you try to run the next command in the guide ?
docker exec -it twenty-server-1 npx nx database:reset
docker exec -it twenty-server-1 npx nx database:reset
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
The team is quite busy at this time, I’ll try to repro locally
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Actually it’s getting a bit out of my scope 😅
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Try
docker exec -it twenty-server-1 yarn install
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
🤩
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
localhost:3000 doesn’t do the trick? (Or server.local is binded to localhost?)
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Oh I see, have you tried to set the POSTGRES_ADMIN_PASSWORD env?
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Then ok the domain isn’t the issue 😅 On your screen I see the db as running, but you don’t have any meaningful log? It’s not hanging either?
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
It seems to try to resolve the database address using 'db'. I’m not familiar with portainer, but I would say that the right domain in your case would be twenty-db-1 You could try to update the PG_DATABASE_HOST env?
57 replies
TTwenty
Created by Dultus on 9/12/2024 in #❓︱help
Can't host Twenty - twenty-db-1 is unhealthy
Hi there, do you have any error log on the database container ? If not, another lead could be that by default the health check expect the database to be healthy in about 50s, depending on your setup it might be a bit too short.
57 replies
TTwenty
Created by Hioko on 6/18/2024 in #❓︱help
backup
This could easily be integrated in the docker-compose
11 replies
TTwenty
Created by Hioko on 6/18/2024 in #❓︱help
backup
I'm sorry, I completely forgot about it 🙏 Thanks for giving a recommendation. Idealy you would want to run periodic backups With a quick lookup I found this repo that has an S3 integration too https://github.com/kartoza/docker-pg-backup
11 replies