Closed MadLittleMods closed 3 years ago
Running through the "get started" section in the readme on a fresh macbook results in a permission error when it tries to write some logs.
$ ./bin/dendrite-monolith-server --tls-cert server.crt --tls-key server.key --config dendrite.yaml FATA[2020-12-16T06:39:03.379411000Z] [github.com/matrix-org/dendrite/internal/log.go:155] setupFileHook Couldn't create directory /var/log/dendrite: "mkdir /var/log/dendrite: permission denied"
It seems necessary to use sudo when launching Dendrite to get it to work out of the box.
sudo
Yes, this can be configured in your dendrite.yaml config under logging
dendrite.yaml
logging
server_name
We really shouldn't be using /var/log at all as a log location imo. ./logs would be better since we'll be more likely to be able to write to it.
/var/log
./logs
Running through the "get started" section in the readme on a fresh macbook results in a permission error when it tries to write some logs.
It seems necessary to use
sudo
when launching Dendrite to get it to work out of the box.Can the log directory be configured?
Yes, this can be configured in your
dendrite.yaml
config underlogging
Potential solutions
logging
in addition to theserver_name