New docker install - registration

Just installed tt following instructions here:

Jumping to the Quick Setup it says to create an account that will become the admin account. I keep getting the error that Registration failed.
Checked config:
REGISTRATION_MODE = open

What did I miss?

Can you verify that the backend started?

docker-compose exec app psql -h postgres -U trader -d tradetally -c “SELECT 1;”
returns:
OCI runtime exec failed: exec failed: unable to start container process: exec: “psql”: executable file not found in $PATH

postgres logs show:
2026-03-17 03:25:36.679 UTC [496] FATAL: role “trader” does not exist

.env file is as downloaded with the modification of DB_PASSWORD and JWT_SECRET
docker-compose.yaml is as downloaded with ‘version’ line removed

Sounds like the postgres container was initialized with different credentials than what was eventually set in the .env. I would remove the data mount for your postgres container or delete the volume and recreate the docker container.

Deleted everything
downloaded docker-compose.yaml - only change was removing version line
downloaded .env.example - renamed to .env - DB_PASSWORD and JWT_SECRET changed

Attempting to create account: Internal server error

App logs show:
[tradetally-app] 2026-03-17T18:45:34.772093465Z [WARN] Origin http://localhost:8080 not allowed. Allowed origins: https://your-domain.com
[tradetally-app] 2026-03-17T18:45:34.772800748Z Error: Not allowed by CORS
[tradetally-app] 2026-03-17T18:45:34.772847669Z at origin (/app/backend/src/server.js:181:16)
[tradetally-app] 2026-03-17T18:45:34.772855750Z at /app/backend/node_modules/cors/lib/index.js:219:13
[tradetally-app] 2026-03-17T18:45:34.772862181Z at optionsCallback (/app/backend/node_modules/cors/lib/index.js:199:9)
[tradetally-app] 2026-03-17T18:45:34.772868410Z at corsMiddleware (/app/backend/node_modules/cors/lib/index.js:204:7)
[tradetally-app] 2026-03-17T18:45:34.772874458Z at Layer.handle [as handle_request] (/app/backend/node_modules/express/lib/router/layer.js:95:5)
[tradetally-app] 2026-03-17T18:45:34.772881098Z at trim_prefix (/app/backend/node_modules/express/lib/router/index.js:328:13)
[tradetally-app] 2026-03-17T18:45:34.772886947Z at /app/backend/node_modules/express/lib/router/index.js:286:9
[tradetally-app] 2026-03-17T18:45:34.772893154Z at Function.process_params (/app/backend/node_modules/express/lib/router/index.js:346:12)
[tradetally-app] 2026-03-17T18:45:34.772899340Z at next (/app/backend/node_modules/express/lib/router/index.js:280:10)
[tradetally-app] 2026-03-17T18:45:34.772905267Z at requestIdMiddleware (/app/backend/src/middleware/requestId.js:6:3)

docker-compose exec app psql -h postgres -U trader -d tradetally -c “SELECT 1;”
returns
OCI runtime exec failed: exec failed: unable to start container process: exec: “psql”: executable file not found in $PATH

This time the error is regarding CORS. You need to set the environment variable to whatever URL you are actually visiting from. In your case it appears to be http://localhost:8080

Adding CORS_ORIGINS appears to have resolved the issue. Thank you

1 Like