mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 00:46:03 +03:00
[GH-ISSUE #3722] Modoboa fails after fresh install on brand new Debian 12 machine #1888
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#1888
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 @einheit on GitHub (Sep 10, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3722
Impacted versions
Steps to reproduce: Run modoboa installer on fresh install of Debian 12.
Current behavior:
[2025-09-10 12:49:10 -0700] [199587] [INFO] rights type is 'radicale.rights.from_file'
[2025-09-10 12:49:10 -0700] [199587] [CRITICAL] An exception occurred during server startup: Failed to load rights file '/etc/radicale/rights': [Errno 2] No such file or directory: '/etc/radicale/rights'
Expected behavior: a successful login
Video/Screenshot link (optional)
@tonioo commented on GitHub (Sep 11, 2025):
@einheit Do you see something in the browser console when you try to login?
@einheit commented on GitHub (Sep 11, 2025):
Yes, a circle spinning forever, and the text "attempting to log you in"
@tonioo commented on GitHub (Sep 12, 2025):
I'm talking about the browser console (when you press on F12)
@einheit commented on GitHub (Sep 12, 2025):
Ah so.
The VM where I'd installed it was already removed, so I spun up a new
Debian 12 VM, ran the installer, and it finished successfully.
But accessing the web interface provided a new and different error:
404 Not Found
nginx/1.22.1
I'll keep this VM around in case there are additional questions.
Joe
On Thu, Sep 11, 2025 at 11:21 PM Antoine Nguyen @.***>
wrote:
@bergerc commented on GitHub (Sep 24, 2025):
Hi, I get the same 404 error on a fresh install of Debian 12.12 (installed & updates/upgraded 2025-09-20)
My errors come from python django modules :
when I fix the django.utils.six by puytting a six.py containing import six, another error occurs :
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/srv/modoboa/env/lib/python3.11/site-packages/django/utils/translation/__init__.py)I will try to install a debian 11 environment to check if modoboa is installable.
@tonioo commented on GitHub (Sep 24, 2025):
Looks like some of your python packages were not updated.
@bergerc commented on GitHub (Sep 24, 2025):
For sure, but it's a fresh debian install, fully updated/upgraded from stable repositories.
I tried a (in virtualenv) pip3 install --upgrade modoboa with no effect.
@einheit seems to have the same problem with the 404 error.
@tonioo commented on GitHub (Sep 24, 2025):
Can you show what packages were installed in your virtualenv?
@bergerc commented on GitHub (Sep 24, 2025):
Here are the packages versions :
@tonioo commented on GitHub (Sep 25, 2025):
Ok, those packages are deprecated and should not be there...:
Are you sure it was a fresh install?
@bergerc commented on GitHub (Sep 25, 2025):
Fresh install on a VPS server (Scaleway/Dedibox - debian 12), provider installer and updated/upgraded to the last available debian packages.
@tonioo commented on GitHub (Sep 25, 2025):
@bergerc So, I just did a fresh install on a Debian 12 VM and everything is Ok, I don't have those deprecated extensions installed.
Have you checked if your installer copy is up-to-date?
@bergerc commented on GitHub (Sep 26, 2025):
I'll reinstall this machine next week and check. The installer is the git version, master branch.
Thanks for the support
@bergerc commented on GitHub (Oct 3, 2025):
Hi,
Same problem after a fresh install :
After setting this option : python3 -m pip config set global.break-system-packages true
the pip3 upgrades the modoboa modules but I still have the python import errors.
Under sudo I was not in the virtuelenv, it seems "better" under the root account directly.
Sorry, no idea how to solve this, any advice ? using debian 13 ?
@tonioo commented on GitHub (Nov 25, 2025):
@bergerc You can try with Debian13 but I think there is something wrong in the config file you use for the installer. Can you check the modoboa section to see you're trying to install extensions? (it should be empty to make it work)
@PinaColada7447 commented on GitHub (Jan 8, 2026):
the login page loading endlessly problem is present even on a fresh, virgin Debian 13 installation
i found so many reasons why it was not working that i will not start to list.
Instead i share with you a nuclear cleaning command list to be performed as step 1 if you already had a failed attempt.
Please note, we assume you have NO SERVICES running yet on the system, and anything can be cleaned.
In my case these cleaning steps were required, but not enough, even after this the login was not working, or the installation failed. What brought a breakthrough is the "--force" tag of the last command - see the last line below.
(as a mentioned at the beginning, the '--force' option made it work in my case)