mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #2535] Upgrading issue 1.17.0 to 2.0.1 on debian 10 #1625
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HA-TB303 on GitHub (Jun 10, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2535
Impacted versions
Steps to reproduce
Installed modoboa some time ago using the installer as outlined here: https://www.linuxbabe.com/mail-server/debian-10-buster-modoboa
Yesterday I updated Debian 10 (apt update && apt upgrade) and followed upgrade instructions as outlined here: https://modoboa.readthedocs.io/en/latest/upgrade.html#
and after some fiddeling I ended up with:
Current behavior
Expected behavior
The upgrade proces to work similar as the installer proces.
Video/Screenshot link (optional)
Full logs here: https://github.com/modoboa/modoboa/discussions/2534
@tonioo commented on GitHub (Jun 13, 2022):
Looks like you forgot to load the virtualenv before running the upgrade commands.
@HA-TB303 commented on GitHub (Jun 13, 2022):
Hi,
Thanks for taking the time to help!
Ok. Did not know I needed that.
When installed, I just followed instructions as outlined here:
I didn't know this installed a python virtual environment.
I'll try to to load it and run the update again.
@HA-TB303 commented on GitHub (Jun 14, 2022):
Hi, sorry I feel like a complete noob here when it comes to python venv.
Instructions:
The new version you are going to install may need to modify your database. Before you start, make sure to backup everything!
Most of the time, upgrading your installation to a newer Modoboa version only requires a few actions. In every case, you will need to apply the general procedure first and then check if the version you are installing requires specific actions.
In case you use a dedicated user and/or a virtualenv, do not forget to use them:
So I tried:
sudo -u modoboa -iThen:
I'm afraid these instructions do not help me much.
I used the install script, because it was "easy", so I was hoping the upgrade to be "easy" as well ;)
@HA-TB303 commented on GitHub (Jun 14, 2022):
Ok after switching the user I have to use the bash command first.
Then all goes well until:
The upgrade is not for the faint hearted ;)
@HA-TB303 commented on GitHub (Jun 14, 2022):
So googled some and then found these additional instruction which I was initially unable to link to my specific issue:
https://modoboa.readthedocs.io/en/latest/upgrade.html#migration-issue-for-postgres-opendkim-users
First step ok (drop the view).
Migration OK
Then:
I hope some clear instructions could shine some light on this upgrade situation because one would need to be an absolute expert in order to get this upgrade working ;)
@HA-TB303 commented on GitHub (Jun 19, 2022):
Do to lack of community support, migrating to IRedMail. Installing, updating and maintaining Modoboa is obviously not as "simple" as stated on the website.