docker-stack-wait icon indicating copy to clipboard operation
docker-stack-wait copied to clipboard

"Service not found" after upgrade

Open brunocascio opened this issue 3 years ago • 3 comments

Hi there,

I get a "Service not found" error in some cases (and deployment was performed successfully)

I think it's related to this PR https://github.com/sudo-bmitch/docker-stack-wait/pull/18/files

image

brunocascio avatar Sep 20 '22 13:09 brunocascio

I think it could be a race condition with get_service_ids function

brunocascio avatar Sep 20 '22 13:09 brunocascio

Are you running docker stack deploy in the foreground? The services should exist after that command exits since there's no other place in docker where that's tracked (stacks don't exist in docker, it's just a label on a service).

If you can provide a reproducible example, that would help to debug.

sudo-bmitch avatar Sep 21 '22 10:09 sudo-bmitch

Are you running docker stack deploy in the foreground? The services should exist after that command exits since there's no other place in docker where that's tracked (stacks don't exist in docker, it's just a label on a service).

If you can provide a reproducible example, that would help to debug.

Hey, sorry for the delayed response.

I'm running docker stack deploy -c <file> <stack_name> and then the docker wait command. I think it's a race condition because the services eventually appear.

brunocascio avatar Oct 04 '22 21:10 brunocascio