Hi,

I am trying to install Grommunio in a Docker environment and I keep getting stuck. Perhaps someone can point me in the right direction. I am using Ubuntu 22.04 LTS as a base system. Docker is working fine.

I understand grommunio container installation is split in three containers, db, core and admin.

I followed these instructions: https://github.com/grommunio/gromox-container/tree/master/examples

All three start fine and I can log in. My problem is the admin web interface can't seem to connect to core. I found this in the admin log:

--
examples-admin-1 | [admin] [WARNING] (flask.app) GET /api/v1/system/antispam/stat? from 192.168.178.51 -> 503 '{"message":"Failed to connect to antispam"}\n'
examples-admin-1 | [admin] System has not been booted with systemd as init system (PID 1). Can't operate.
examples-admin-1 | [admin] Failed to connect to bus: Host is down
examples-admin-1 | [admin] [ERROR] (flask.app) Traceback (most recent call last):
examples-admin-1 | [admin] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1838, in full_dispatch_request
examples-admin-1 | [admin] rv = self.dispatch_request()
examples-admin-1 | [admin] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1824, in dispatch_request
examples-admin-1 | [admin] return self.view_functionsrule.endpoint
examples-admin-1 | [admin] File "./api/core.py", line 179, in wrapper
examples-admin-1 | [admin] return call()
examples-admin-1 | [admin] File "./api/core.py", line 144, in call
examples-admin-1 | [admin] ret = func(args, **kwargs)
examples-admin-1 | [admin] File "./endpoints/system/misc.py", line 71, in getDashboardServices
examples-admin-1 | [admin] units = sysd.getServices(
(service["unit"] for service in known))
examples-admin-1 | [admin] File "./services/systemd.py", line 44, in getServices
examples-admin-1 | [admin] unit["unit"] = unit["unit"].split(" ")[0]
examples-admin-1 | [admin] KeyError: 'unit'
examples-admin-1 | [admin]
examples-admin-1 [admin] [WARNING] (flask.app) GET /api/v1/system/dashboard/services? from 192.168.178.51 -> 500 '{"message":"The server encountered an error while processing the request."}\n'

--

Would anyone know where to start looking? I am new to docker so it might be a docker setting on my side.

Best, Chris

You should format the logs as code, for better readability.

Sorry 🙂

examples-admin-1  | [admin] [ERROR] (flask.app) ConnectionError: HTTPConnectionPool(host='core', port=11334): Max retries exceeded with url: /stat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f36c003a630>: Failed to establish a new connection: [Errno 111] Connection refused',))
examples-admin-1  | [admin] [WARNING] (flask.app) GET /api/v1/system/antispam/stat? from 192.168.178.51 -> 503 '{"message":"Failed to connect to antispam"}\n'
examples-admin-1  | [admin] System has not been booted with systemd as init system (PID 1). Can't operate.
examples-admin-1  | [admin] Failed to connect to bus: Host is down
examples-admin-1  | [admin] [ERROR] (flask.app) Traceback (most recent call last):
examples-admin-1  | [admin]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1838, in full_dispatch_request
examples-admin-1  | [admin]     rv = self.dispatch_request()
examples-admin-1  | [admin]   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1824, in dispatch_request
examples-admin-1  | [admin]     return self.view_functions[rule.endpoint](**req.view_args)
examples-admin-1  | [admin]   File "./api/core.py", line 179, in wrapper
examples-admin-1  | [admin]     return call()
examples-admin-1  | [admin]   File "./api/core.py", line 144, in call
examples-admin-1  | [admin]     ret = func(*args, **kwargs)
examples-admin-1  | [admin]   File "./endpoints/system/misc.py", line 71, in getDashboardServices
examples-admin-1  | [admin]     units = sysd.getServices(*(service["unit"] for service in known))
examples-admin-1  | [admin]   File "./services/systemd.py", line 44, in getServices
examples-admin-1  | [admin]     unit["unit"] = unit["unit"].split(" ")[0]
examples-admin-1  | [admin] KeyError: 'unit'
examples-admin-1  | [admin]
examples-admin-1  | [admin] [WARNING] (flask.app) GET /api/v1/system/dashboard/services? from 192.168.178.51 -> 500 '{"message":"The server encountered an error while processing the request."}\n'
examples-core-1   | [antispam] #701(controller) <q6ecuh>; monitored; rspamd_monitored_dns_cb: DNS reply returned 'no error' for dwl.dnswl.org while 'no records with this name' was expected when query
9 days later

ya,
things not working in current docker gromox-core release:

  • public folders

  • eas (not installed)

  • chat (not installed)

  • archive (not installed)

  • antispam not working properly

  • rspamd 11334 not possible to access from outside even with correct routes and opened ports

things not working with latest gromox-admin:

  • flask broken
  • redis not working , though it is installed
  • log view not working
  • server/process view not working
  • view of mailqueue broken

installation of chat or sync breaks the entire nginx with 502 error

lot to do here xD

8 days later

Due to recent package updates, the docker installation currently has problems. We are working on a different architecture to ensure that this doesn't happen anymore. The new system will be out in the near future.

    oomolola I'll sit tight then and use the normal image on a Vserver in the mean time. Thank you!

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