Trouble installing latest version locally - stuck on 'Running database setup and migrations'
Hi, I'm trying to set up a fresh installation of the latest version using the one-click docker installer.
However, whatever I do, twenty-server-1 keeps failing and the only message I can see is 'Running database setup and migrations'. I can't find any errors in the logs - and it seems like the database and the migrations were successfully created and run at first. Any idea what is wrong?
10 Replies
Looking at the database, I can see that the core schema is created as expected, but no workspace seems to exist and no metadata schema either - though I don't know if that is expected in 1.x (was there in 0.5x).
Hey could you please share whole twenty-server logs ?
This from the fresh install.
TAG is v1.2.1
Could you please try removing the whole volumes and container an retry ?
Have you modified the pg_password afterwards by any chance ?
Tried this several times, even with nuclear option prune -a --volumes - pg_password remains unchanged.
There's also this that wasn't part of the log, but I don't think this is related:
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.5.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.2
npm notice To update run: npm install -g npm@11.5.2
npm notice
GitHub
Release v11.5.2 · npm/cli
11.5.2 (2025-07-30)
Bug Fixes
7d900c4 #8467 oidc visibility check for provenance (#8467) (@reggi, @wraithgar)
Documentation
d4e56b2 #8459 update snapshot generation command (#8459) (@MikeMcC399)
After rebuild, twenty-server-1 keeps failing and only thing I can see is 'Running database setup and migrations...' over and over again.
docker inspect --format='{{json .State.Health}}' twenty-server-1 | jq gives:
{
"Start": "2025-08-05T11:36:22.248033014Z",
"End": "2025-08-05T11:36:22.475745985Z",
"ExitCode": 35,
"Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\ncurl: (35) Send failure: Broken pipe\n"
}
From what I can see from entrypoint.sh, it must fail somewhere during:
yarn command:prod upgrade
I've tried adding a --verbose to this command in entrypoint.sh but this gives no more information.
It is possible that this is an hardware issue - this is running on a very old server with only 2GB memory...
Hey yes 2gb might be quite low
Do you have the same issue when installing twenty directly on your pc ?
No, seems to work fine on more up-to-date HW. Quite confident that this was hardware.