Cannot Backup since Duplicity update

Thanks for this work around. It worked fine for me on an Amazon Lightsail instance. I assume that one needs to leave the changes in the backup.py until another upgrade comes along?
Thanks,
dfowlkes

Worked for me too. Ideally, it gets fixed next release and the file will be naturally updated.

I made the suggested changes in nano (vi was messing with tabs) and then

I found that when I did this I lost access to the box (both web as well as it responding to any mail clients).

I figured I would go and delete the contents of the s3 storage directory and backup caches and re-run the install.

Even on a “fresh” install I still get the error.
not enough values to unpack (expected 2, got 1)

I am happy to make the changes to mailinabox/management/backup.py and just wait if that is the only way to get things going but had thought with my “scorched earth” it would have worked.

EDIT…
Re read backup.py
I hadn’t realised that it completely stopped all system services so that makes sense.

FINAL EDIT…Hopefully helps someone.
Being paranoid, I ended up.

  1. Deleting the caches as suggested
  2. Setting my backup s3 to off
  3. making the changes to the file as noted
  4. reboot
    5.enabling the s3 backup and checking my access keys etc.
  5. backup ran overnight as shows correctly.
1 Like

Hi,

I also have the following problem with my backups on S3 when I go to the backups page:
not enough values to unpack (expected 2, got 1)

When I run in CLI : mailinabox/management/backup.py --full
I get this error : Attempt of list Nr. 1 failed. ModuleNotFoundError: No module named 'boto3

I wanted to make the fix of @makeitgo by editing mailinabox/management/backup.py, but I can’t find the code to replace in my file.

Is this fix made for V0.57 ? or for V0.56 ?

If you have some tracks to correct I’m interested :wink:

@regne the quickhack was for V0.57. (I would’ve updated my previous post to clarify, but seems I can’t edit after a few days.)

The fix was for 0.57 and @makeitgo did great with it.
Its on the line he mentioned (181 from memory) and if you see my post I had to edit with with nano as vi was saving with spaces instead of tabs.

You can verify that you made the change successfully by running the file to either get status or run a backup. (When you try with the broken one it will return an error).

pwd
/home/ubuntu
sudo mailinabox/management/backup.py --status

or if you want to manually run a full backup. Be aware that this will stop mail services while its running.

sudo mailinabox/management/backup.py --full

I let it do its thing overnight and it was happy.

Thank you for your answers.

In fact what happens is that my file /home/ubuntu/mailinabox/management/backup.py was not up to date.

I reinstalled Mail in a box and now I have the right code. I have now succeeded in applying the fix!

Thanks a lot for your help!

Glad its sorted. Thank @makeitgo as he figured out the fix. I just gave you a little more info in the answers. Enjoy.

Same issue. No backups have been done for a month or two.

So you have decided to necro-post on an old thread from a year ago which is highly unlikely to be relevant? Please create a new thread with any relevant information that others can use to assist you such as error messages, logs, etc.