Open Ria-Fox opened 1 year ago
Same problem trying to run it locally with docker compose on macOS (13.4.1 M1).
The first command docker compose build
runs fine.
But docker compose run --rm web pnpm run init
fails with the output:
> misskey@13.13.2 init /misskey
> pnpm migrate
> misskey@13.13.2 migrate /misskey
> cd packages/backend && pnpm migrate
> backend@ migrate /misskey/packages/backend
> pnpm typeorm migration:run -d ormconfig.js
Error during migration run:
Error: connect ECONNREFUSED 127.0.0.1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
}
βELIFECYCLEβ Command failed with exit code 1.
βELIFECYCLEβ Command failed with exit code 1.
βELIFECYCLEβ Command failed with exit code 1.
I didn't change any other settings besides the url, so I can't have put the wrong port anywhere.
Also tried removing the internal: true from the docker-compose.yml
, but got the same error
You must change .config/default.yml
database host with postgres container
# ββββββββββββββββββββββββββββ
#ββββ PostgreSQL configuration βββββββββββββββββββββββββββββββββ
db:
host: db
port: 5432
Thanks for answer @ZerglingGo ! I've solved this problem with network_mode: "host"
on docker-compose.yml
.
But also I've noticed there are docker_example.yml
in .config
directory, and this file already solved this problem.
In Misskey-hub's installation guide(en, kr), it directed copy default.yml
, but I think it must be edited to copy docker_default.yml
. This resolve all problems for the docker installation.
Currently attempting to open a server with Docker. Most of the runs are successful, but I am getting an error during DB initialization after the misskey build.
I went through a lot of issue pages to troubleshoot this, but most of the time it was a case of unhealthy postgresql or trying to initialize outside of docker. #9054 #9058 I believe this is not the case, so create an issue.
π‘ Summary
Error occurs during server initialize
π₯° Expected Behavior
Initialize success, and can be run server
π€¬ Actual Behavior
Error occur:
postgresql container log:
π Steps to Reproduce
π Environment
π° Backend (for server admin)