So, how switch your currently existing Mastodon app from Cloudron user management to Mastodon user management?
Short answer - it is impossible, but... You can save settings and create DB dump, then delete the old app, create a new one and apply old settings and dump of DB!
This approach works only if your Mastodone app use external file storage for files (like S3 or else). If you store user files inside Cloudron - you need to download them to your computer before switching!
Prerequisite:
- You need dump of app postgress DB. It can be done through app console and command
PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} pg_dump --no-owner --no-privileges --username=${CLOUDRON_POSTGRESQL_USERNAME} --host=${CLOUDRON_POSTGRESQL_HOST} ${CLOUDRON_POSTGRESQL_DATABASE} > /tmp/pgdump.sql
Your dump will be waiting for you attmp/pgdump.sql
. Just upload it to your local machine by pressing "Upload" button in app terminal (PC, laptop, whatever) - You need to save your custom settings from
.env.production
file. File placed inapp/code
folder - just typels -a
to see it and then use vim to copy file content. - In app settings save to notes your notification email-address (if you change it after installation).
Steps to switching:
0. Turn on RecoveryMode of your old instance
- Save all settings and DB dump (see info above)
- Delete old app
- Install new Mastodon app from Cloudrone AppStore
- !IMPORTANT: during the installation process choice "Leave user management to the app" option!
- After app installation you need just update
.env.production
, re-set email address for notification, and import DB (more info about importing process here https://docs.cloudron.io/guides/import-postgresql/)- IMPORTANT: Do all of the updates in RecoveryMode of app
- Upload old files (if you do not use an external file store like Amazon S3 etc.)
That is it! After these short manipulations (it takes 20-30mins) Mastadon user management will be turned on and your users will be able to reset their passwords without any troubles.