purging conduwuit after installing continuwuity using the debian specific guide will wipe the database #2148
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#2148
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?
The purge script currently wipes the database when ran, and installing continuwuity will remove conduwuit, so…
The preferred way to do package transitions in the Debian world is to make the old package virtual instead of replacing it.
https://wiki.debian.org/PackageTransition
#awesome
PS. i dont even agree with the purge script wiping the database instead of just configuration. seems like a massive footgun which i have now shot myself with
...oops
actually, this part in the service definition saved the database from being deleted:
it caused the actual database to reside in /var/lib/private/conduwuit, and made /var/lib/conduwuit just a mount point in conduwuit's mount namespace. so the purge script doesnt even delete the database..?
here's an excerpt from
systemd.exec(5):the /var/lib/conduwuit directory will get recreated by systemd on next restart. yall should still move to a virtual package, though
@slonk Would adding
Provides: conduwuitto our package fulfill your proposed solution? Otherwise, I’m not sure if this is within our control as a project. Assuming the oldconduwuitpackage was provided by the project of that name, that project has been archived for over a year.@julian45 wrote in #2148 (comment):
im not a debian packaging expert but i assume no, it wouldnt. however, you do require users to add a repository in which you could easily provide a virtual
conduwuitpackage with version last release + 1 (or just 999), which is how other repos do it afaikfurthermore, e-mail replies are broken (or just extremely delayed?)