-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
rabbitmq-container may fail to start before migrations run, causing failures for rare migrations that use RabbitMQ #233
Comments
I haven't seen an error in this migration before, but it's clearly an issue with the Zulip container being unable to connect to the rabbitmq container while this migration (which writes to rabbitmq) is running. Was the rabbitmq container up and running at the time migrations were being run? Can you try logging into the upgraded system and running |
Thanks for the answer! That’s it. |
OK. That means the issue here is that we'd ideally have code to wait for the rabbitmq container to be up before the Zulip container runs migrations (to run this particular migration; other migrations won't have this issue as they don't access RabbitMQ). I'm not sure if there's an easy way to add such a wait, but it seems like it might be a good general patch to add. |
Encountered this today, trying to upgrade from v4 to v5. After it failed, I started rabbitmq: |
It's hard to have individual migrations wait for their dependencies. I think ideally we'd have some way to have the Docker image wait until RabbitMQ is confirmed up before starting running the Probably very low priority, in that we've only used RabbitMQ in migrations a couple times. |
Hi there,
I use Zulip with docker-compose on a centOS (centos-release-7-6.1810.2.el7.centos.x86_64) host machine. Today I want to update Zulip from 2.0.4-1 to 2.1.1, so I only change the version numbers (docker image version and git version) in the docker-compose.yml file und start docker-compose again. But during the migration, there is an “AMQP Connector” error, again and again. The zulip container doesn't start with this error. I haven’t found any information about this matter during now. Any ideas? Thx!
The text was updated successfully, but these errors were encountered: