ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
168 stars 31 forks source link

Backup script failing with current PMIAB version (v60.5) #133

Open mikochem opened 8 months ago

mikochem commented 8 months ago

Hello,

The backup script (backup.py) is failing with the error below

root@box:/home/m# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye root@box:/home/m# duplicity --version duplicity 2.1.4 root@box:/home/m# /root/mailinabox/management/backup.py CommandLineError: argument --gpg-options: expected one argument Something is wrong with the backup: ERROR 23 CommandLineError . CommandLineError: argument --gpg-options: expected one argument

Looks like a known problem caused by Duplicity

https://discourse.mailinabox.email/t/backup-script-failing/10734

Since power mail in a box is a fork from MIAB, I'm not sure what would be the best course of action as I haven't yet compared the backup.py code from the latest MIAB with PMIAB.

Has anyone dealt with that issue already ?

Thanks,

Michael

mikochem commented 8 months ago

Hi,

I was able to fix this using the latest backup script from MIAB.

The only change to be made was the systemd php-fpm unit name to point to the older version being used in PMIAB.

Cheers,

Michael

capitancurt commented 8 months ago

Backup Error

Something is wrong with the backup: ERROR 23 CommandLineError . CommandLineError: argument --gpg-options: expected one argument

SOLUTION

in the /root/mailinabox/management/backup.py find the two referenced to the --cipher-algo=AES256, and simply replace the = sign with a space. save file reboot server

Backups should work now

After a hell of a lot of reading it seems that the semantics of the language changed. What used to be "--cipher-algo=AES256" is now " --cipher-algo AES256"

12-11-2023 Corrected my typo

Lebang2 commented 8 months ago

Sorry, but I think the correct way is : "--cipher-algo AES256"