Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adverstive the tootctl self-destruct command #340

Open
Tagadda opened this issue Oct 24, 2022 · 2 comments
Open

Adverstive the tootctl self-destruct command #340

Tagadda opened this issue Oct 24, 2022 · 2 comments

Comments

@Tagadda
Copy link
Member

Tagadda commented Oct 24, 2022

Describe the bug

When you want to delete your instance from the federation, you need to run tootctl self-destruct

Erase this server from the federation by broadcasting account Delete activities to all known other servers. This allows a “clean exit” from running a Mastodon server, as it leaves next to no cache behind on other servers. This command is always interactive and requires confirmation twice.

No local data is actually deleted, because emptying the database or deleting the entire VPS is faster. If you run this command then continue to operate the instance anyway, then there will be a state mismatch that might lead to glitches and issues with federation.

https://docs.joinmastodon.org/admin/tootctl/#self-destruct

Expected behavior

TBD

⚠️ We don't want to run this command when the package is removed automagically during a failure.

@lapineige
Copy link
Member

Could that be a config panel option ?
Or a remove script prompt that would ask you to use a special argument to either remove it after failure/for migration stuff, or remove it from federation.

@Tagadda
Copy link
Member Author

Tagadda commented Sep 25, 2023

We can't use the remove script to run the self-destruct command.

A running Sidekiq process is required, so do not shut down the server until the queues are fully cleared.
https://docs.joinmastodon.org/admin/tootctl/#self-destruct

We should advertise this command somewhere in the documentation.

@Tagadda Tagadda changed the title Remove script doesn't call the tootctl self-destruct command Adverstive the tootctl self-destruct command Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants