Code Monkey home page Code Monkey logo

Comments (2)

dms00 avatar dms00 commented on May 24, 2024

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:
ln: failed to create symbolic link '/home/user-data/ssl/ssl_certificate.pem': File exists

But I can tell you that deleting the .../ssl/ directory after that is incorrect and most certainly caused the "unhandled exception" issue. Basically, the duplicity backup contains your SSL certificates, which is why the instructions are to delete the ssl directory, then restore the backup. You have deleted the directory, restored the backup, then deleted the directory again. So, for starters, you need to get that directory re-populated from the backup. I would advise (1) restoring the backup in a separate location (so what is in there is available), (2) make sure the ssl directory is now empty, then (3) restore the ssl directory (only the ssl directory) from the backup you opened in (1). If you copy it by hand make sure everything in /home/user-data/ssl/ is identical (permissions, ownerships, links, etc) to what is in the backup directory.

Once you're done with that, try running sudo mailinabox again. Also, you didn't post it above, but you need to use sudo (or be root) when you run the duplicity restore.

from mailinabox.

soletan avatar soletan commented on May 24, 2024

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.

from mailinabox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.