modoboa / modoboa-installer

An installer for Modoboa
MIT License
254 stars 135 forks source link

Internal Server Error after upgrading #542

Closed isven42 closed 5 months ago

isven42 commented 5 months ago

After updgrading i have internal server error in the webgui

Impacted versions

Steps to reproduce

sudo ./run.py --upgrade mydomain.de

Full trace using --debug option or current behaviour

Welcome to Modoboa installer!

Your mail server is about to be upgraded and the following components will be impacted: fail2ban modoboa automx amavis clamav dovecot nginx razor postfix postwhite spamassassin uwsgi radicale opendkim backup Do you confirm? (Y/n) y The process can be long, feel free to take a coffee and come back later ;) Starting... Installing amavis Installing spamassassin Installing razor Installing clamav Installing fail2ban Installing modoboa User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists. Installing automx User automx already exists, skipping creation but please make sure the /srv/automx directory exists. Installing radicale User radicale already exists, skipping creation but please make sure the /srv/radicale directory exists. Installing uwsgi Installing nginx Installing opendkim Installing postfix Installing postwhite Installing dovecot User dovecot already exists, skipping creation but please make sure the /srv/vmail directory exists. User vmail already exists, skipping creation but please make sure the /srv/vmail directory exists. Congratulations! You can enjoy Modoboa at https://mydomain.de (admin:password)

isven42 commented 5 months ago

fixed: go into venv and installed those packages.

cd /srv/modoboa/env/bin/ source activate cd .. cd .. cd instance

Then check the issues with python3 manage.py check

There you will see that django throw some errors... in my case editing the settings.py with insert following lines at the top:

import django from django.utils.translation import gettext django.utils.translation.ugettext = gettext

from django.utils.translation import gettext_lazy django.utils.translation.ugettext_lazy = gettext_lazy