mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #959] Upgrade to 2.8: service can't start, "attempt to write a readonly database" #673
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#673
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 @maxhac03 on GitHub (Nov 24, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/959
🐞 Describe the bug
Upgrade from 2.7 to 2.8 with "apt upgrade ntfy" break the service.
💻 Components impacted
Ubuntu 22.04.3
VM dedicated to NTFY.
💡 Screenshots and/or logs
{"time":"2023-11-24T03:08:01.973Z","level":"INFO","message":"Migrating user database schema: from 4 to 5","tag":"user_manager"}
{"time":"2023-11-24T03:08:01.973Z","level":"FATAL","message":"attempt to write a readonly database","exit_code":1}
{"time":"2023-11-24T03:08:02.304Z","level":"INFO","message":"Migrating user database schema: from 4 to 5","tag":"user_manager"}
{"time":"2023-11-24T03:08:02.306Z","level":"FATAL","message":"attempt to write a readonly database","exit_code":1}
{"time":"2023-11-24T03:08:02.549Z","level":"INFO","message":"Migrating user database schema: from 4 to 5","tag":"user_manager"}
{"time":"2023-11-24T03:08:02.549Z","level":"FATAL","message":"attempt to write a readonly database","exit_code":1}
{"time":"2023-11-24T03:08:02.823Z","level":"INFO","message":"Migrating user database schema: from 4 to 5","tag":"user_manager"}
{"time":"2023-11-24T03:08:02.823Z","level":"FATAL","message":"attempt to write a readonly database","exit_code":1}
{"time":"2023-11-24T03:08:03.055Z","level":"INFO","message":"Migrating user database schema: from 4 to 5","tag":"user_manager"}
{"time":"2023-11-24T03:08:03.055Z","level":"FATAL","message":"attempt to write a readonly database","exit_code":1}
🔮 Additional context
ntfy_comandline.txt
@binwiederhier commented on GitHub (Nov 24, 2023):
That sounds like a permission issue to me: https://matthewsetter.com/sqlite-attempt-to-write-to-readonly-database/
Did you ever change the user database permissions? They should be
ntfy:ntfyif you're running systemd, similar to this:@maxhac03 commented on GitHub (Nov 24, 2023):
-rw-r--r-- 1 root root 77824 Aug 31 14:33 /var/lib/ntfy/user.db
This was indeed the issue. After fixing the permission the upgrade worked.
Thanks!