Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 759  / 1 Year ago, mon, april 3, 2023, 4:33:39

I installed a lab of openstack through juju, deployed rabbitmq-server on the same node that holds mysql. but I found that rabbitmq-server gives unsolvable hook failed error.



So I tried to destroy the service to deploy it again but it doesn't.
I tried destroy service from juju-gui and juju destroy-service rabbitmq-server and it still there. only the unit rabbitmq-server/0 were gone.



Now the service "life" is stuck on "dying"



rabbitmq-server:
charm: cs:precise/rabbitmq-server-16
exposed: true
life: dying
relations:
cluster:
- rabbitmq-server



I connected to the node and didn't find any logs related to rabbitmq at the logs directory. but I found this logs:



/var/log/juju/unit-rabbitmq-server-0.log
2013-12-12 11:16:33 INFO juju.worker.uniter uniter.go:363 committing "stop" hook
2013-12-12 11:16:33 INFO juju.worker.uniter uniter.go:381 committed "stop" hook
2013-12-12 11:16:33 INFO juju.worker.uniter modes.go:421 ModeContinue starting
2013-12-12 11:16:33 INFO juju.worker.uniter modes.go:84 continuing after "stop" hook
2013-12-12 11:16:33 INFO juju.worker.uniter modes.go:421 ModeTerminating starting
2013-12-12 11:16:33 INFO juju.worker.uniter uniter.go:105 unit "rabbitmq-server/0" shutting down: agent should be terminated
2013-12-12 11:16:33 ERROR juju.worker.uniter.filter filter.go:117 tomb: dying
2013-12-12 11:16:33 ERROR juju runner.go:200 worker: fatal "uniter": agent should be terminated
2013-12-12 11:16:33 ERROR juju runner.go:200 worker: fatal "api": agent should be terminated
2013-12-12 11:16:33 INFO juju supercommand.go:286 command finished


Is there anyway to force it to be destroyed completely?


More From » juju

 Answers
2

You can't remove that service, but you can deploy a new service with the same charm:



juju deploy rabbitmq-server rabbitmq


...and you can even put it on the same machine if you want:



juju deploy rabbitmq-server rabbitmq --to <machine-id>


...but you may wish to update your client, and run:



juju upgrade-juju


...to get your environment running 1.16.5, in which that bug is resolved. It won't fix an environment that's already in that situation, but it will prevent it from happening again with the new service.


[#28026] Monday, April 3, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionavocad

Total Points: 189
Total Questions: 101
Total Answers: 118

Location: Liechtenstein
Member since Wed, Dec 8, 2021
2 Years ago
;