Closed CountMurphy closed 8 months ago
I'd be happy to help on Discord! It's a bit hard to go back and forth here.
(But in essence, I'm guessing the problem is that the systemd service runs as the ntfy user, whereas ntfy user add ...
runs as your user, so it's looking at ~/.config/ntfy/server.yml
instead of /etc/ntfy/server.yml
, so it doesn't know where the auth-file is. You can either sudo -u ntfy ntfy user add ...
or ntfy user --auth-file /Raid/ntfy/user.db add ...
)
Also tried running as the ntfy user, exact same result. I've just joined. What channel should I join, or should I DM you?
Well I did a dumb. My yml was missing a whitespace character before auth-file. Seems to be working now
:lady_beetle: Describe the bug Just installed on Arch by the ntfysh package. My
/etc/ntfy/server.yml
has the following three lines:Now the server does indeed start on port 8082, so I know ntfy is reading the config. The permissions on the directory are
When I attempt to create a new user with
ntfy user add --role=admin Name
I get:The user.db file is also not created at service start.
:computer: Components impacted
ntfy server :bulb: Screenshots and/or logs
:crystal_ball: Additional context
Additionally, the deny-all setting is also ignored and the server is publicly accessible.