-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
[BUG] Manual configuration requires including zulip.conf
too.
#343
Comments
FYI anyone who is facing this issue, I was able to make some progress by COPYING all files from the container's etc directory to your host machine at /opt/docker/zulip/zulip/settings/etc-zulip. The files which I copied were nginx_sharding.conf, sharding.json, zulip.conf, settings.py, uwsgi.ini, zulip-secrets.conf I suggest updating the documentation for docker zulip with this information so others dont face this. |
I know this is old but I just ran into this issue today and just wanted to contribute my solution. I discovered the following issues: The README says to place the files in The second issue is that the README makes no mention of including The third issue that I ran into is that despite setting both
So what I ended up doing was just set I'm honestly surprised that this hasn't been addressed since the OP created this issue 2 years ago and the solution to this issue seems relatively easy to fix. The README just needs to be updated to reference to correct path and the entry script just needs to initialize I hope this helps others. EDIT: Added |
lost several hours of effort to this today |
zulip.conf
too.
Face the same issue. It seems I have Device or resource busy error when mount zulip.conf, etc. to /data/settings/etc-zulip/zulip.conf. Any thoughts? Logs: |
I've abandoned the use of zulip and switched to Mattermost, so I don't know how to help. Zulip is pretty fragmented and cumbersome in comparison to Mattermost. Not to mention, it doesn't handle Markdown correctly, and gave me nothing but problems. Maybe someone else will be able to answer your question. Good luck. |
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:
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
zulip_s1.log
zulip_s2.log
zulip_bug_report_files.zip
The text was updated successfully, but these errors were encountered: