Closed TobiTenno closed 3 years ago
I may be blind but I don't see you creating the database in any of these steps. You have to create the database yourself and set it up in the config file. https://github.com/matrix-org/dendrite/blob/master/docs/INSTALL.md#postgresql-database-setup
@aaronraimist are there instructions on manually constructing the database in the docker setup? i'm just not seeing any. i'm happy to add them to my script and test with that if there are
Best I can tell, the issue is that I'm not working directly in the dendrite/build/docker folder, as it seems that there's an assumption that the user copies over the create_db.sh file, so I'll probably go submit a doc update to mention either symlinking or changing the compose file to the location of the sh script in the repository.
yeah, i've updated my script. what i was missing was copying the create_db.sh over into the volume location.
Background information
go version
:go version go1.15.2 linux/amd64
Description
Failing to start dendrite monolith, naffka database isn't created
Steps to reproduce
1)
go get github.com/matrix-org/dendrite/cmd/generate-keys
1)go build github.com/matrix-org/dendrite/cmd/generate-keys
1) a. createdocker
b. createdocker/config
c.cd docker/config
d.go run github.com/matrix-org/dendrite/cmd/generate-keys --private-key=matrix_key.pem --tls-cert=server.crt --tls-key=server.key
1) clone dendrite 1) copy dendrite-config.yaml to
docker/config/dendrite.yaml
1) copy docker-compose.deps.yml todocker/docker-compose.deps.yml
1) copy docker-compose.monolith.yml todocker/docker-compose.monolith.yml
1)sed 's/use_naffka: false/use_naffka: true/g' dendrite.yaml > dendrite.naffka.yaml
1)mv dendrite.naffka.yaml dendrite.yaml
1) a.cd docker
b. rundocker-compose -f docker-compose.deps.yml up -d postgres
applicable logs:11) run
docker-compose -f docker-compose.monolith.yml up -d
applicable logs:sh scripts that I'm using to test: gist
Expectation: server should start
Opened a new issue as I couldn't reopen #1534