• Bug
  • Debian 12: grommunio-admin-api should depend on python3-distutils

If the package is missing, the error appears when starting systemctl start grommunio-admin-api:

Jan 03 15:47:38 grommunio uwsgi[2126]: from openapi_core.schema.schemas.util import dicthash
Jan 03 15:47:38 grommunio uwsgi[2126]: File "/usr/lib/python3/dist-packages/openapi_core/schema/schemas/util.py", line 2, in <module>
Jan 03 15:47:38 grommunio uwsgi[2126]: from distutils.util import strtobool
Jan 03 15:47:38 grommunio uwsgi[2126]: ModuleNotFoundError: No module named 'distutils.util'
Jan 03 15:47:38 grommunio uwsgi[2126]: unable to load app 0 (mountpoint='') (callable not found or import error)
Jan 03 15:47:38 grommunio uwsgi[2126]: *** no app loaded. going in full dynamic mode ***
Jan 03 15:47:38 grommunio uwsgi[2126]: *** uWSGI is running in multiple interpreter mode ***
Jan 03 15:47:38 grommunio uwsgi[2126]: spawned uWSGI master process (pid: 2126)
Jan 03 15:47:38 grommunio systemd[1]: Started grommunio-admin-api.service - grommunio admin api.
Jan 03 15:47:38 grommunio uwsgi[2126]: spawned uWSGI worker 1 (pid: 2128, cores: 4)

And the error when trying to login:
Unexpected token 'I', "Internal S"... is not valid JSON

Installing python3-distutils resolves the problem.

In an earlier installation, the required Python modules were in the libvmime-suse5 package. This does not currently exist in the Debian repository, or I no longer know how it was installed.

If you can get the MGMT interface working on Debian, please let me know. I am getting "Permission denied" for whatever I am trying to do there. Thanks. πŸ™‚

    ckd
    Ah, ok. Thanks for the info!
    But instead of an information in the documentation as you suggest, I would rather see it as a dependency, because without the package the Admin API does not work.

    ckd If you can get the MGMT interface working on Debian, please let me know. I am getting "Permission denied" for whatever I am trying to do there. Thanks. πŸ™‚

    The admin interface works for me under Devuan and also tested under Debian.
    I am happy to help with troubleshooting.
    You could reset the password for β€œadmin”, maybe a simple password to avoid errors/bugs with special characters?
    Otherwise the nginx error log for admin-api?
    Or run uwsgi in the foreground and switch on debugging.
    Depending on what you have already tried and know yourself, I will send you the details.

    Β© 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice