Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems after upgrade 2.0.4 to 2.1.0 #3236

Open
antoweb opened this issue Apr 14, 2024 · 11 comments
Open

Problems after upgrade 2.0.4 to 2.1.0 #3236

antoweb opened this issue Apr 14, 2024 · 11 comments

Comments

@antoweb
Copy link

antoweb commented Apr 14, 2024

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)

@tonioo
Copy link
Member

tonioo commented 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)

@antoweb
Copy link
Author

antoweb commented Apr 15, 2024

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

@Spitfireap
Copy link
Member

ModuleNotFoundError: No module named 'modoboa.dmarc'

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

@antoweb
Copy link
Author

antoweb commented Apr 15, 2024

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

@Spitfireap
Copy link
Member

Can you share the MODOBOA_APPS in your settings.py ?

@antoweb
Copy link
Author

antoweb commented 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',

)

@tonioo
Copy link
Member

tonioo commented 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

@antoweb
Copy link
Author

antoweb commented May 13, 2024

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

@antoweb
Copy link
Author

antoweb commented May 13, 2024

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

@antoweb
Copy link
Author

antoweb commented May 13, 2024

The errore was:

No module modoboa.dmarc found

@Spitfireap
Copy link
Member

No module modoboa.dmarc found

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants