Description
Short version -
I am trying to use docker zulip with manual config as described at https://github.com/zulip/docker-zulip#manual-configuration but zulip fails to start giving one of the following errors:
- ModuleNotFoundError: No module named 'zproject.dev_settings'. "Zulip migration failed with exit code 1"
- INFO exited: zulip-django (exit status 1; not expected) INFO gave up: zulip-django entered FATAL state, too many start retries too quickly
Long version -
I am trying to use zulip in docker mode by using docker zulip with my own settings and secret files as described in
https://github.com/zulip/docker-zulip#manual-configuration
The purpose is to inject a settings.py middleware so that I can use a sso by letting zulip parse my jwt auth token
so far the experience has not been easy.
I am using the default code from above and editing the docker-compose.yml and adding the line MANUAL_CONFIGURATION: "True" and LINK_SETTINGS_TO_DATA: "True" as instructed in the docker-zulip documentation.
I have tried the below scenarios.
Zulip logs and my files for each scenario are attached here.
Scenario 1:
My Settings file and secret files are present in host at /opt/docker/zulip/zulip/settings/etc-zulip/, Root user owns them.
Zulip does not start and in the console says ModuleNotFoundError: No module named 'zproject.dev_settings'. "Zulip migration failed with exit code 1".
Scenario 2:
I run zulip without the manual config, it runs successfully, I copy the secrets.conf, settings.py and zulip.conf over from the container to
/opt/docker/zulip/zulip/settings/etc-zulip/. I then kill zulip, set manual config and link settings to true in the docker-compose.yml, delete all the files except these from /opt/docker/zulip and run zulip again.
Zulip does not start but gives a different error this time as shown below.
INFO exited: zulip-django (exit status 1; not expected) INFO gave up: zulip-django entered FATAL state, too many start retries too quickly
If i comment out MANUAL_CONFIGURATION in docker-compose.yml then everything runs file.
I am running the latest docker-zulip cloned from github on Linux mint cinnamon 20.02 , docker compose 1.25.0-1