Unix socket (:local) listener fails with :eaddrinuse
Running Pleroma 2.3.0 from git, configured to listen on a unix socket, I receive the error:
[error] Failed to start Ranch listener Pleroma.Web.Endpoint.HTTP in :ranch_tcp:listen([cacerts: :..., key: :..., cert: :..., port: 0, ip: {:local, "/run/pleroma/http.sock"}]) for reason :eaddrinuse (address
already in use)
[error] GenServer Restarter.Pleroma terminating
Config excerpt from prod.secret.exs
:
config :pleroma, Pleroma.Web.Endpoint,
url: [host: "anime.website", scheme: "https", port: 443],
http: [ip: {:local, "/run/pleroma/http.sock"}, port: 0],
secret_key_base: "..."
The socket /run/pleroma/http.sock
is created successfully (owned by pleroma
user/group), but pleroma refuses to run due to the EADDRINUSE error.