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
upgrading 57a to 65: unhandled exception in mailinabox run when upgrading nextcloud #2331
Comments
As an aside, this conversation probably belongs in the mailinabox.email user forum so others can learn from it, but here goes. I'm not sure why this happened, based on the info you've provided: But I can tell you that deleting the Once you're done with that, try running |
I was aware of the fact that re-running removal of ssl folder isn't in compliance with the upgrading instructions. However, I was expecting duplicity to properly restore the folder in the first place and somehow this didn't seem to happen either. There are no extra steps I might have forgotten to mention here. Hence, I'm not sure if manually copying ssl folder and restoring its permissions will make any difference for that's what I'd expect duplicity to do, too. But I'll give it a try just to be sure ... And FWIW all commands have been run as root. I see the slight benefit of not working as root by default, but quite often (not just with regards to MIAB in particular) I have to log in as non-root just so that I can use sudo which isn't mitigating any security risks that much and still requires me to always proceed with great care. |
Basically, trying upgrading a 57a MIAB server upgraded to 65 again. Procedure is like this:
ssh into old server (set up with locally backing up into /storage/backup which is an attached volume of hosting provider with ext4 fs)
run
mailinabox
limit ufw to TCP 22
run
mailinabox/management/backup.py
shut down old server
use hosting provider to create a snapshot of old server
remove old server while keeping IP addresses
create new server with Ubuntu 22.04 LTS using same IP addresses as old one
re-attach the volume at /storage/backup
SSH into new server
run
curl -s https://mailinabox.email/setup.sh | sudo bash
run
rm -rf /home/user-data/ssl/*
run
export PASSPHRASE="$(cat /storage/backup/secret_key.txt)"
run
duplicity restore --force file:///storage/backup/encrypted /home/user-data/
see a lot of index-related warnings oddly assigning different files with each other, but only files of users' owncloud folders
(can't attach this one here due to privacy concerns in listed filenames)
run
mailinabox
run into an issue with ssl certificate already existing
run
rm -rf /home/user-data/ssl/*
againrun
mailinabox
againended up with an exception
The text was updated successfully, but these errors were encountered: