[GH-ISSUE #3236] Problems after upgrade 2.0.4 to 2.1.0 #1807

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

Originally created by @antoweb on GitHub (Apr 14, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3236

Impacted versions

  • OS Type: Ubuntu 20.04.6 LTS (Focal Fossa)
  • OS Version: 20.04.6 LTS (Focal Fossa)
  • Database Type: PostgreSQL 12
  • Database version: 12
  • Modoboa: 2.1.0
  • installer used: No
  • Webserver: Nginx

Steps to reproduce

Install modoboa==2.1.0
Followed steps here:
https://modoboa.readthedocs.io/en/latest/upgrade.html#id5
Update all modules
immagine

run

python manage.py migrate
python manage.py collectstatic
python manage.py check --deploy

Current behavior

I cannot edit or delete an existing mailbox but i can create a new one, also this created mailbox i cannot delete or editing
i receive internal error
immagine

And when launch python manage.py generate_postfix_maps --destdir /etc/postfix error is:

Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/dist-packages/django/core/management/init.py", line 395, in execute
django.setup()
File "/usr/local/lib/python3.8/dist-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 224, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'modoboa.dmarc'

Expected behavior

I can create and manage old and new mailbox

Video/Screenshot link (optional)

Originally created by @antoweb on GitHub (Apr 14, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3236 # Impacted versions * OS Type: Ubuntu 20.04.6 LTS (Focal Fossa) * OS Version: 20.04.6 LTS (Focal Fossa) * Database Type: PostgreSQL 12 * Database version: 12 * Modoboa: 2.1.0 * installer used: No * Webserver: Nginx # Steps to reproduce Install modoboa==2.1.0 Followed steps here: https://modoboa.readthedocs.io/en/latest/upgrade.html#id5 Update all modules ![immagine](https://github.com/modoboa/modoboa/assets/32364871/4b4e3c7e-dcf5-4ce2-86f8-746eab9fc5d4) run > python manage.py migrate > python manage.py collectstatic > python manage.py check --deploy # Current behavior I cannot edit or delete an existing mailbox but i can create a new one, also this created mailbox i cannot delete or editing i receive internal error ![immagine](https://github.com/modoboa/modoboa/assets/32364871/1ee8b812-cc73-48b3-8d3f-199d966f6732) And when launch python manage.py generate_postfix_maps --destdir /etc/postfix error is: Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 395, in execute django.setup() File "/usr/local/lib/python3.8/dist-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 224, in create import_module(entry) File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'modoboa.dmarc' # Expected behavior I can create and manage old and new mailbox # Video/Screenshot link (optional)
kerem 2026-02-27 11:19:14 +03:00
Author
Owner

@tonioo commented on GitHub (Apr 15, 2024):

@antoweb Can you set DEBUG to True inside settings.py, reload uwsgi and try again? (look at the browser console to get more info
And about the shell command issue, did you launch it using the vitual env of Modoboa? (/srv/modoboa/env)

<!-- gh-comment-id:2055784087 --> @tonioo commented on GitHub (Apr 15, 2024): @antoweb Can you set DEBUG to True inside settings.py, reload uwsgi and try again? (look at the browser console to get more info And about the shell command issue, did you launch it using the vitual env of Modoboa? (/srv/modoboa/env)
Author
Owner

@antoweb commented on GitHub (Apr 15, 2024):

Hello @tonioo i had set debug to true but doesnt appear any message on browser.
The command was launched in venv

<!-- gh-comment-id:2056002975 --> @antoweb commented on GitHub (Apr 15, 2024): Hello @tonioo i had set debug to true but doesnt appear any message on browser. The command was launched in venv
Author
Owner

@Spitfireap commented on GitHub (Apr 15, 2024):

ModuleNotFoundError: No module named 'modoboa.dmarc'

@antoweb can you restart uWSGI? modoboa.dmarc module should be recognized in 2.1.0...

<!-- gh-comment-id:2056061986 --> @Spitfireap commented on GitHub (Apr 15, 2024): > ModuleNotFoundError: No module named 'modoboa.dmarc' @antoweb can you restart uWSGI? modoboa.dmarc module should be recognized in 2.1.0...
Author
Owner

@antoweb commented on GitHub (Apr 15, 2024):

I am already restarted the service after migrate and deploy command.
I have to retart another Time?

<!-- gh-comment-id:2056266662 --> @antoweb commented on GitHub (Apr 15, 2024): I am already restarted the service after migrate and deploy command. I have to retart another Time?
Author
Owner

@Spitfireap commented on GitHub (May 2, 2024):

Can you share the MODOBOA_APPS in your settings.py ?

<!-- gh-comment-id:2091099945 --> @Spitfireap commented on GitHub (May 2, 2024): Can you share the MODOBOA_APPS in your settings.py ?
Author
Owner

@antoweb commented on GitHub (May 2, 2024):

MODOBOA_APPS = (
'modoboa',
'modoboa.core',
'modoboa.lib',
'modoboa.admin',
'modoboa.transport',
'modoboa.relaydomains',
'modoboa.limits',
'modoboa.parameters',
'modoboa.dnstools',
'modoboa.policyd',
'modoboa.maillog',
# Modoboa extensions here.
'modoboa_amavis',
'modoboa_pdfcredentials',
'modoboa_postfix_autoreply',
'modoboa_sievefilters',
'modoboa_webmail',
'modoboa_contacts',
'modoboa_radicale',

)

<!-- gh-comment-id:2091131335 --> @antoweb commented on GitHub (May 2, 2024): MODOBOA_APPS = ( 'modoboa', 'modoboa.core', 'modoboa.lib', 'modoboa.admin', 'modoboa.transport', 'modoboa.relaydomains', 'modoboa.limits', 'modoboa.parameters', 'modoboa.dnstools', 'modoboa.policyd', 'modoboa.maillog', # Modoboa extensions here. 'modoboa_amavis', 'modoboa_pdfcredentials', 'modoboa_postfix_autoreply', 'modoboa_sievefilters', 'modoboa_webmail', 'modoboa_contacts', 'modoboa_radicale', )
Author
Owner

@tonioo commented on GitHub (May 3, 2024):

@antoweb It seems you forgot to follow upgrade instructions for 2.1.0:
https://modoboa.readthedocs.io/en/latest/upgrade.html#id5

<!-- gh-comment-id:2092855269 --> @tonioo commented on GitHub (May 3, 2024): @antoweb It seems you forgot to follow upgrade instructions for 2.1.0: https://modoboa.readthedocs.io/en/latest/upgrade.html#id5
Author
Owner

@antoweb commented on GitHub (May 13, 2024):

Hello,
No i have put the correct items in modoboa_apps. The text i have sent Is a rollback.

<!-- gh-comment-id:2108836857 --> @antoweb commented on GitHub (May 13, 2024): Hello, No i have put the correct items in modoboa_apps. The text i have sent Is a rollback.
Author
Owner

@antoweb commented on GitHub (May 13, 2024):

Hello,
No i have put the correct items in modoboa_apps. T'ha text i have sent Is a rollback.

<!-- gh-comment-id:2108839014 --> @antoweb commented on GitHub (May 13, 2024): Hello, No i have put the correct items in modoboa_apps. T'ha text i have sent Is a rollback.
Author
Owner

@antoweb commented on GitHub (May 13, 2024):

The errore was:

No module modoboa.dmarc found

<!-- gh-comment-id:2108839478 --> @antoweb commented on GitHub (May 13, 2024): The errore was: No module modoboa.dmarc found
Author
Owner

@Spitfireap commented on GitHub (May 23, 2024):

No module modoboa.dmarc found

This means the update did not successfully install modoboa 2.1.0. Can you try again ?

<!-- gh-comment-id:2126387310 --> @Spitfireap commented on GitHub (May 23, 2024): > No module modoboa.dmarc found This means the update did not successfully install modoboa 2.1.0. Can you try again ?
Author
Owner

@Spitfireap commented on GitHub (Jul 15, 2024):

Hi, Have managed to get it working ? @antoweb

<!-- gh-comment-id:2228303461 --> @Spitfireap commented on GitHub (Jul 15, 2024): Hi, Have managed to get it working ? @antoweb
Author
Owner

@antoweb commented on GitHub (Jul 31, 2024):

already tried same error

<!-- gh-comment-id:2261068829 --> @antoweb commented on GitHub (Jul 31, 2024): already tried same error
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:2628548776 --> @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#1807
No description provided.