You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/08/08 00:49:33 UTC
[GitHub] [openwhisk-devtools] lyuxiaosu opened a new issue #280: Restart
controller/invoker by docker-compose tool does not work
lyuxiaosu opened a new issue #280: Restart controller/invoker by docker-compose tool does not work
URL: https://github.com/apache/openwhisk-devtools/issues/280
Hi Openwhisk team, I tried docker-compose to build, deploy openwhisk locally and it works fine, however, when I tried restarting the controller or invoker by the command:
``` sudo make restart-controller ```
All docker containers are stopped and the cluster ended up with the following information:
```
xiaosuGW@node-0:~/openwhisk-devtools/docker-compose$ sudo make restart-controller
now controller is restarting...
Stopping openwhisk_controller_1 ... done
Stopping openwhisk_apigateway_1 ... done
Stopping openwhisk_kafka-topics-ui_1 ... done
Stopping openwhisk_invoker_1 ...
Stopping openwhisk_kafka-rest_1 ...
Stopping openwhisk_kafka_1 ...
Stopping openwhisk_invoker_1 ... done
Stopping openwhisk_kafka-rest_1 ... done
Stopping openwhisk_redis_1 ...
Stopping openwhisk_minio_1 ...
Going to remove openwhisk_controller_1
Stopping openwhisk_redis_1 ... done
Stopping openwhisk_kafka_1 ... done
Stopping openwhisk_db_1 ... done
Stopping openwhisk_zookeeper_1 ... done
openwhisk_kafka_1 is up-to-date
Creating openwhisk_controller_1 ... done
.............................................................................
```
It stucked here. I checked the Makefile and I cannot find any problems:
```
.PHONY: restart-controller
restart-controller:
$(shell cat $(TMP_HOME)/tmp/openwhisk/local.env) docker-compose --project-name openwhisk stop controller
$(shell cat $(TMP_HOME)/tmp/openwhisk/local.env) docker-compose --project-name openwhisk rm -f controller
$(shell cat $(TMP_HOME)/tmp/openwhisk/local.env) docker-compose --project-name openwhisk up controller 2>&1 >> $(TMP_HOME)/tmp/openwhisk/docker-compose.log &
echo "waiting for the controller to see the invoker is 'up' ... "
until (curl --silent http://$(DOCKER_HOST_IP):8888/invokers | grep "up"); do printf '.'; sleep 5; done
```
Since it is waitting for invoker to start up, but it stopped, so it won't proceed any more. But I still don't understand why ``` docker-compose --project-name openwhisk stop controller ``` stops everything.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services