[GH-ISSUE #3279] An internal error occured. #1825

Closed
opened 2026-02-27 11:19:20 +03:00 by kerem · 7 comments
Owner

Originally created by @Jossyboydgenius on GitHub (Jul 30, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3279

Impacted versions

  • OS Type: Ubuntu
  • OS Version: 3.0.13-0ubuntu3.1
  • Database Type: MySQL
  • Database version: 1:2.3.21+dfsg1-2ubuntu5
  • Modoboa: 2.2.4
  • installer used: Yes
  • Webserver: Nginx

Current behavior

Sorry

An internal error occurred.

Expected behavior

I should be able to log in to my dashboard.

Screenshot link (optional)

Screenshot 2024-07-30 at 3 10 42 PM Screenshot 2024-07-30 at 3 05 06 PM
Originally created by @Jossyboydgenius on GitHub (Jul 30, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3279 # Impacted versions * OS Type: Ubuntu * OS Version: 3.0.13-0ubuntu3.1 * Database Type: MySQL * Database version: 1:2.3.21+dfsg1-2ubuntu5 * Modoboa: 2.2.4 * installer used: Yes * Webserver: Nginx # Current behavior Sorry An internal error occurred. <!-- Explain the behavior you're seeing that you think is a bug, and explain how you think things should behave instead. --> # Expected behavior I should be able to log in to my dashboard. # Screenshot link (optional) <img width="682" alt="Screenshot 2024-07-30 at 3 10 42 PM" src="https://github.com/user-attachments/assets/f6ee9477-10c7-4f49-bc98-69927bbd924e"> <img width="1278" alt="Screenshot 2024-07-30 at 3 05 06 PM" src="https://github.com/user-attachments/assets/c89cbd18-3e2d-4d33-aa56-25bcc8418d97">
kerem 2026-02-27 11:19:20 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@jarforce commented on GitHub (Aug 5, 2024):

It should be related to module "'modoboa_postfix_autoreply"
to workaround in case waiting for a fix solutions, we could be disable"
#'modoboa.postfix_autoreply',
#'modoboa_postfix_autoreply',

and manual run migrate again

/srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py migrate
/srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py collectstatic

please noted that installer scripts can not fix this issue automatic until now

SystemCheckError: System check identified some issues:

ERRORS:
modoboa_postfix_autoreply.ARmessage.mbox: (fields.E304) Reverse accessor 'Mailbox.armessage_set' for 'modoboa_postfix_autoreply.ARmessage.mbox' clashes with reverse accessor for 'postfix_autoreply.ARmessage.mbox'.
        HINT: Add or change a related_name argument to the definition for 'modoboa_postfix_autoreply.ARmessage.mbox' or 'postfix_autoreply.ARmessage.mbox'.
postfix_autoreply.ARmessage.mbox: (fields.E304) Reverse accessor 'Mailbox.armessage_set' for 'postfix_autoreply.ARmessage.mbox' clashes with reverse accessor for 'modoboa_postfix_autoreply.ARmessage.mbox'.
        HINT: Add or change a related_name argument to the definition for 'postfix_autoreply.ARmessage.mbox' or 'modoboa_postfix_autoreply.ARmessage.mbox'.

WARNINGS:
?: (ckeditor.W001) django-ckeditor bundles CKEditor 4.22.1 which isn't supported anmyore and which does have unfixed security issues, see for example https://ckeditor.com/cke4/release/CKEditor-4.24.0-LTS . You should consider strongly switching to a different editor (maybe CKEditor 5 respectively django-ckeditor-5 after checking whether the CKEditor 5 license terms work for you) or switch to the non-free CKEditor 4 LTS package. See https://ckeditor.com/ckeditor-4-support/ for more on this. (Note! This notice has been added by the django-ckeditor developers and we are not affiliated with CKSource and were not involved in the licensing change, so please refrain from complaining to us. Thanks.)
postfix_autoreply_arhistoric: (models.W035) db_table 'postfix_autoreply_arhistoric' is used by multiple models: postfix_autoreply.ARhistoric, modoboa_postfix_autoreply.ARhistoric.
        HINT: You have configured settings.DATABASE_ROUTERS. Verify that postfix_autoreply.ARhistoric, modoboa_postfix_autoreply.ARhistoric are correctly routed to separate databases.
postfix_autoreply_armessage: (models.W035) db_table 'postfix_autoreply_armessage' is used by multiple models: postfix_autoreply.ARmessage, modoboa_postfix_autoreply.ARmessage.
        HINT: You have configured settings.DATABASE_ROUTERS. Verify that postfix_autoreply.ARmessage, modoboa_postfix_autoreply.ARmessage are correctly routed to separate databases.

['/srv/modoboa/env/bin/python3.10', 'manage.py', 'migrate', '--noinput'] failed, check your configuration
SystemCheckError: System check identified some issues:

```
<!-- gh-comment-id:2268029979 --> @jarforce commented on GitHub (Aug 5, 2024): It should be related to module "'modoboa_postfix_autoreply" to workaround in case waiting for a fix solutions, we could be disable" #'modoboa.postfix_autoreply', #'modoboa_postfix_autoreply', and manual run migrate again > /srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py migrate > /srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py collectstatic please noted that installer scripts can not fix this issue automatic until now ```` SystemCheckError: System check identified some issues: ERRORS: modoboa_postfix_autoreply.ARmessage.mbox: (fields.E304) Reverse accessor 'Mailbox.armessage_set' for 'modoboa_postfix_autoreply.ARmessage.mbox' clashes with reverse accessor for 'postfix_autoreply.ARmessage.mbox'. HINT: Add or change a related_name argument to the definition for 'modoboa_postfix_autoreply.ARmessage.mbox' or 'postfix_autoreply.ARmessage.mbox'. postfix_autoreply.ARmessage.mbox: (fields.E304) Reverse accessor 'Mailbox.armessage_set' for 'postfix_autoreply.ARmessage.mbox' clashes with reverse accessor for 'modoboa_postfix_autoreply.ARmessage.mbox'. HINT: Add or change a related_name argument to the definition for 'postfix_autoreply.ARmessage.mbox' or 'modoboa_postfix_autoreply.ARmessage.mbox'. WARNINGS: ?: (ckeditor.W001) django-ckeditor bundles CKEditor 4.22.1 which isn't supported anmyore and which does have unfixed security issues, see for example https://ckeditor.com/cke4/release/CKEditor-4.24.0-LTS . You should consider strongly switching to a different editor (maybe CKEditor 5 respectively django-ckeditor-5 after checking whether the CKEditor 5 license terms work for you) or switch to the non-free CKEditor 4 LTS package. See https://ckeditor.com/ckeditor-4-support/ for more on this. (Note! This notice has been added by the django-ckeditor developers and we are not affiliated with CKSource and were not involved in the licensing change, so please refrain from complaining to us. Thanks.) postfix_autoreply_arhistoric: (models.W035) db_table 'postfix_autoreply_arhistoric' is used by multiple models: postfix_autoreply.ARhistoric, modoboa_postfix_autoreply.ARhistoric. HINT: You have configured settings.DATABASE_ROUTERS. Verify that postfix_autoreply.ARhistoric, modoboa_postfix_autoreply.ARhistoric are correctly routed to separate databases. postfix_autoreply_armessage: (models.W035) db_table 'postfix_autoreply_armessage' is used by multiple models: postfix_autoreply.ARmessage, modoboa_postfix_autoreply.ARmessage. HINT: You have configured settings.DATABASE_ROUTERS. Verify that postfix_autoreply.ARmessage, modoboa_postfix_autoreply.ARmessage are correctly routed to separate databases. ['/srv/modoboa/env/bin/python3.10', 'manage.py', 'migrate', '--noinput'] failed, check your configuration SystemCheckError: System check identified some issues: ```
Author
Owner

@VladislavGatsenko commented on GitHub (Aug 10, 2024):

same error

<!-- gh-comment-id:2282283232 --> @VladislavGatsenko commented on GitHub (Aug 10, 2024): same error
Author
Owner

@Jossyboydgenius commented on GitHub (Aug 17, 2024):

Thanks @jarforce

<!-- gh-comment-id:2294602065 --> @Jossyboydgenius commented on GitHub (Aug 17, 2024): Thanks @jarforce
Author
Owner

@pekidi commented on GitHub (Aug 23, 2024):

the exact problem here
upgrade to 2.3.1 i got Server internal error
How to repair it.

<!-- gh-comment-id:2307665582 --> @pekidi commented on GitHub (Aug 23, 2024): the exact problem here upgrade to 2.3.1 i got Server internal error How to repair it.
Author
Owner

@alekso56 commented on GitHub (Aug 25, 2024):

Edit:
Fixed by

sudo -u <modoboa_user> -i bash
source <virtuenv_path>/bin/activate
then going to  /srv/modoboa/instance/instance/settings.py changing modoboa_apps section:
from 'modoboa.postfix_autoreply', to
#'modoboa.postfix_autoreply',
To comment out faulty module, then running
/srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py migrate
/srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py collectstatic

Original message;

Same error, but here with debug:

ProgrammingError at /accounts/login/

column core_user.totp_enabled does not exist
LINE 1: ...r"."phone_number", "core_user"."secondary_email", "core_user...
                                                             ^
HINT:  Perhaps you meant to reference the column "core_user.tfa_enabled".

/srv/modoboa/env/lib/python3.8/site-packages/psycopg/cursor.py, line 732, in execute
<!-- gh-comment-id:2309019614 --> @alekso56 commented on GitHub (Aug 25, 2024): Edit: Fixed by ``` sudo -u <modoboa_user> -i bash source <virtuenv_path>/bin/activate then going to /srv/modoboa/instance/instance/settings.py changing modoboa_apps section: from 'modoboa.postfix_autoreply', to #'modoboa.postfix_autoreply', To comment out faulty module, then running /srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py migrate /srv/modoboa/env/bin/python3 /srv/modoboa/instance/manage.py collectstatic ``` **Original message;** ``` Same error, but here with debug: ProgrammingError at /accounts/login/ column core_user.totp_enabled does not exist LINE 1: ...r"."phone_number", "core_user"."secondary_email", "core_user... ^ HINT: Perhaps you meant to reference the column "core_user.tfa_enabled". /srv/modoboa/env/lib/python3.8/site-packages/psycopg/cursor.py, line 732, in execute ```
Author
Owner

@pekidi commented on GitHub (Aug 26, 2024):

I managed to solve upgrade with:
git clone https://github.com/modoboa/modoboa-installer.git

cp old installer.cfg file to a new one modoboa-installer folder
and run:
./run.py --upgrade "domain"

and now it is fine

<!-- gh-comment-id:2309354561 --> @pekidi commented on GitHub (Aug 26, 2024): I managed to solve upgrade with: git clone https://github.com/modoboa/modoboa-installer.git cp old installer.cfg file to a new one modoboa-installer folder and run: ./run.py --upgrade "domain" and now it is fine
Author
Owner

@stale[bot] commented on GitHub (Jan 31, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:2628548742 --> @stale[bot] commented on GitHub (Jan 31, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
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#1825
No description provided.