Skip to content
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

Error on: docker-compose run --rm mq purge-queues.sh #165

Closed
JoshDi opened this issue Jun 10, 2020 · 3 comments
Closed

Error on: docker-compose run --rm mq purge-queues.sh #165

JoshDi opened this issue Jun 10, 2020 · 3 comments

Comments

@JoshDi
Copy link

JoshDi commented Jun 10, 2020

When running docker-compose run --rm mq purge-queues.sh, I get the following error:

root@HTPC-Xeon:/storage/musicbrainz-docker/admin# docker-compose run --rm mq purge-queues.sh

/set-config.sh: Waiting for rabbitmq-server ...
/usr/local/bin/docker-entrypoint.sh: line 424: exec: purge-queues.sh: not found
@yvanzo
Copy link
Contributor

yvanzo commented Jun 10, 2020

Oops, this script has never been committed, you can replace it with the following commands:

docker-compose up -d mq &&
sleep 30 && \
docker-compose exec mq rabbitmqadmin -f bash -u sir -p sir -V /search-index-rebuilder list queues && \
for q in $(docker-compose exec mq rabbitmqadmin -f bash -u sir -p sir -V /search-index-rebuilder list queues name | strings)
do
	echo -n "$q ... "
	docker-compose exec mq rabbitmqadmin -f bash -u sir -p sir -V /search-index-rebuilder purge queue name="$q"
done && \
docker-compose stop mq

@JoshDi
Copy link
Author

JoshDi commented Jun 10, 2020

thank you

@yvanzo yvanzo closed this as completed in 2ad8236 Jun 29, 2020
@yvanzo
Copy link
Contributor

yvanzo commented Jun 29, 2020

Fixed in v-2020-06-29 (with commit 2ad8236).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants