matrix-org / matrix-authentication-service

OAuth2.0 + OpenID Provider for Matrix Homeservers

Home Page:https://matrix-org.github.io/matrix-authentication-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unix socket listener cannot bind on restart

AndrewFerr opened this issue · comments

System: Fedora Linux 39 (Workstation Edition)

When using a Unix socket as a listener (via a config of http.listeners[*].binds.socket), the socket file is not deleted when MAS is shut down. This prevents MAS from starting up again later with an error of:

Error: could not bind socket

Caused by:
    Address already in use (os error 98)

Only when I manually delete the socket file can MAS be started again.

Perhaps relevant: when created, the socket file has file mode bits of 0755 (user read-write, group/others read-only).