[Pkg-matrix-maintainers] Bug#923573: PermissionError: [Errno 13] Permission denied: '/etc/matrix-synapse/homeserver.signing.key'
Andrej Shadura
andrew at shadura.me
Sat Mar 2 13:25:08 GMT 2019
On Sat, 2 Mar 2019 at 14:05, sergio <sergio+it at outerface.net> wrote:
>
>
> # apt -t stretch-backports install matrix-synapse
>
> Leave "Name of the server" blank.
Why?
> # echo 'server_name: domain' > /etc/matrix-synapse/conf.d/server_name.yaml
>
> # chmod 644 /etc/matrix-synapse/conf.d/server_name.yaml
>
> # ls -l /etc/matrix-synapse/homeserver.signing.key
>
> ls: cannot access '/etc/matrix-synapse/homeserver.signing.key': No such
> file or directory
>
> # /etc/init.d/matrix-synapse start
<…>
>
> # ls -l /etc/matrix-synapse/homeserver.signing.key
>
> -rw-r----- 1 root root 59 2019-03-02 16:02
> /etc/matrix-synapse/homeserver.signing.key
>
> And yes, my umask is 027.
Well, you shouldn’t be running init scripts directly if your
environment is non-standard. You need to use invoke-rc.d or service.
Better yet, switch over to systemd, that guarantees the correct
environment.
--
Cheers,
Andrej
More information about the Pkg-matrix-maintainers
mailing list