mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1519] Can't create a user and its token with config #1070
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1070
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @furkan-guvenc on GitHub (Dec 21, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1519
🐞 Describe the bug
I used docker compose to self host Ntfy and used the Private Instance example. It didn't work and as I understand the error happens because of the order of operations in ntfy's startup sequence. Ntfy tries to process the NTFY_AUTH_TOKENS before it has finished creating the user defined in NTFY_AUTH_USERS. Since the user "phil" doesn't exist yet in the database, the token assignment fails.
💻 Components impacted
ntfy server
💡 Screenshots and/or logs
Logs:
🔮 Additional context
Config:
@binwiederhier commented on GitHub (Jan 18, 2026):
Sorry I didn't see this before, but pretty sure the variables should be
var: value. See example here: https://docs.ntfy.sh/config/#example-configI just tested and it works just fine. Ask on Discord/Matrix if you still have questions.