[GH-ISSUE #2997] Wrong upgrade instructions #1726

Closed
opened 2026-02-27 11:18:48 +03:00 by kerem · 1 comment
Owner

Originally created by @yannfill on GitHub (May 6, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2997

I found a typo in 2.1.0 upgrade instructions. The part saying

You need to add 'modoboa_imap_migration.auth_backends.IMAPBackend', at the end of AUTHENTICATION_BACKENDS:

AUTHENTICATION_BACKENDS = (
   'django.contrib.auth.backends.ModelBackend',
   'modoboa_imap_migration.auth_backends.IMAPBackend',
)

should have modoboa.imap_migration instead of modoboa_imap_migration.

If not, an internal error is triggered upon logging:

ModuleNotFoundError at /accounts/login/

No module named 'modoboa_imap_migration'

FYI, following upgrade instructions I get this when renaming app (new venv after python system upgrade to 3.11):

(env) $ python manage.py rename_app modoboa_dmarc dmarc
Renaming modoboa_dmarc to dmarc, please wait...
Nothing to rename. Exiting.
(env) $ python manage.py rename_app modoboa_imap_migration imap_migration
Renaming modoboa_imap_migration to imap_migration, please wait...
Nothing to rename. Exiting.
Originally created by @yannfill on GitHub (May 6, 2023). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2997 I found a typo in 2.1.0 upgrade instructions. The part saying ``` You need to add 'modoboa_imap_migration.auth_backends.IMAPBackend', at the end of AUTHENTICATION_BACKENDS: AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.ModelBackend', 'modoboa_imap_migration.auth_backends.IMAPBackend', ) ``` should have `modoboa.imap_migration` instead of `modoboa_imap_migration`. If not, an internal error is triggered upon logging: ``` ModuleNotFoundError at /accounts/login/ No module named 'modoboa_imap_migration' ``` FYI, following upgrade instructions I get this when renaming app (new venv after python system upgrade to 3.11): ``` (env) $ python manage.py rename_app modoboa_dmarc dmarc Renaming modoboa_dmarc to dmarc, please wait... Nothing to rename. Exiting. (env) $ python manage.py rename_app modoboa_imap_migration imap_migration Renaming modoboa_imap_migration to imap_migration, please wait... Nothing to rename. Exiting. ```
kerem closed this issue 2026-02-27 11:18:48 +03:00
Author
Owner

@Spitfireap commented on GitHub (May 8, 2023):

Thanks for the report. As for the message, it is normal if you weren't using imap_migration or dmarc extension before.

<!-- gh-comment-id:1538110168 --> @Spitfireap commented on GitHub (May 8, 2023): Thanks for the report. As for the message, it is normal if you weren't using imap_migration or dmarc extension before.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1726
No description provided.