reachyunsong commented on issue #4303: Unable to connect to controller0 while 
running openwhisk.yml (local deployment), Connection refused!
URL: 
https://github.com/apache/incubator-openwhisk/issues/4303#issuecomment-505699581
 
 
   hi, I met the same issue when running openwhisk.yml, and removing log file 
of `controller0` doesn't help. How to deal with this issue...
   ```PLAY [zookeepers] 
****************************************************************************************
   
   TASK [Gathering Facts] 
***********************************************************************************
   Tuesday 25 June 2019  21:02:20 -0600 (0:00:00.148)       0:00:00.148 
**********
   ok: [kafka0]
   
   TASK [zookeeper : pull the zookeeper:3.4 image] 
**********************************************************
   Tuesday 25 June 2019  21:02:21 -0600 (0:00:01.321)       0:00:01.469 
**********
   changed: [kafka0]
   
   TASK [zookeeper : (re)start zookeeper] 
*******************************************************************
   Tuesday 25 June 2019  21:02:23 -0600 (0:00:01.597)       0:00:03.067 
**********
   changed: [kafka0]
   
   TASK [zookeeper : wait until the Zookeeper in this host is up and running] 
*******************************
   Tuesday 25 June 2019  21:02:26 -0600 (0:00:03.266)       0:00:06.333 
**********
   FAILED - RETRYING: wait until the Zookeeper in this host is up and running 
(36 retries left).
   changed: [kafka0]
   
   TASK [zookeeper : remove old zookeeper] 
******************************************************************
   Tuesday 25 June 2019  21:02:33 -0600 (0:00:07.504)       0:00:13.837 
**********
   skipping: [kafka0]
   
   TASK [zookeeper : remove zookeeper] 
**********************************************************************
   Tuesday 25 June 2019  21:02:33 -0600 (0:00:00.088)       0:00:13.926 
**********
   skipping: [kafka0]
   
   PLAY [kafkas] 
********************************************************************************************
   
   TASK [Gathering Facts] 
***********************************************************************************
   Tuesday 25 June 2019  21:02:34 -0600 (0:00:00.093)       0:00:14.019 
**********
   ok: [kafka0]
   
   TASK [kafka : create kafka certificate directory] 
********************************************************
   Tuesday 25 June 2019  21:02:35 -0600 (0:00:01.120)       0:00:15.140 
**********
   ok: [kafka0]
   
   TASK [kafka : copy keystore] 
*****************************************************************************
   Tuesday 25 June 2019  21:02:35 -0600 (0:00:00.532)       0:00:15.672 
**********
   skipping: [kafka0]
   
   TASK [kafka : add kafka default env vars] 
****************************************************************
   Tuesday 25 June 2019  21:02:35 -0600 (0:00:00.108)       0:00:15.781 
**********
   ok: [kafka0]
   
   TASK [kafka : add kafka non-ssl vars] 
********************************************************************
   Tuesday 25 June 2019  21:02:36 -0600 (0:00:00.462)       0:00:16.243 
**********
   ok: [kafka0]
   
   TASK [kafka : add kafka ssl env vars] 
********************************************************************
   Tuesday 25 June 2019  21:02:36 -0600 (0:00:00.204)       0:00:16.448 
**********
   skipping: [kafka0]
   
   TASK [kafka : join kafka ssl env vars] 
*******************************************************************
   Tuesday 25 June 2019  21:02:36 -0600 (0:00:00.072)       0:00:16.520 
**********
   skipping: [kafka0]
   
   TASK [kafka : join kafka non-ssl env vars] 
***************************************************************
   Tuesday 25 June 2019  21:02:36 -0600 (0:00:00.069)       0:00:16.589 
**********
   ok: [kafka0]
   
   TASK [kafka : (re)start kafka using 'wurstmeister/kafka:0.11.0.1'] 
***************************************
   Tuesday 25 June 2019  21:02:36 -0600 (0:00:00.187)       0:00:16.776 
**********
   changed: [kafka0]
   
   TASK [kafka : wait until the kafka server started up] 
****************************************************
   Tuesday 25 June 2019  21:02:50 -0600 (0:00:13.513)       0:00:30.289 
**********
   FAILED - RETRYING: wait until the kafka server started up (10 retries left).
   changed: [kafka0]
   
   TASK [kafka : remove old kafka] 
**************************************************************************
   Tuesday 25 June 2019  21:02:58 -0600 (0:00:07.766)       0:00:38.056 
**********
   skipping: [kafka0]
   
   TASK [kafka : remove kafka] 
******************************************************************************
   Tuesday 25 June 2019  21:02:58 -0600 (0:00:00.090)       0:00:38.146 
**********
   skipping: [kafka0]
   
   PLAY [controllers] 
***************************************************************************************
   
   TASK [Gathering Facts] 
***********************************************************************************
   Tuesday 25 June 2019  21:02:58 -0600 (0:00:00.042)       0:00:38.189 
**********
   ok: [controller0]
   
   TASK [controller : docker login] 
*************************************************************************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:01.006)       0:00:39.195 
**********
   skipping: [controller0]
   
   TASK [controller : get controller name and index] 
********************************************************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:00.092)       0:00:39.287 
**********
   ok: [controller0]
   
   TASK [controller : pull the latest image of controller] 
**************************************************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:00.185)       0:00:39.472 
**********
   skipping: [controller0]
   
   TASK [controller : ensure controller log directory is created with 
permissions] **************************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:00.077)       0:00:39.550 
**********
   ok: [controller0]
   
   TASK [controller : ensure controller log file is created with permissions] 
*******************************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:00.361)       0:00:39.911 
**********
   skipping: [controller0]
   
   TASK [controller : ensure controller config directory is created with 
permissions] ***********************
   Tuesday 25 June 2019  21:02:59 -0600 (0:00:00.082)       0:00:39.994 
**********
   ok: [controller0]
   
   TASK [controller : copy jmxremote password file] 
*********************************************************
   Tuesday 25 June 2019  21:03:00 -0600 (0:00:00.643)       0:00:40.637 
**********
   changed: [controller0]
   
   TASK [controller : copy jmxremote access file] 
***********************************************************
   Tuesday 25 June 2019  21:03:01 -0600 (0:00:00.927)       0:00:41.564 
**********
   changed: [controller0]
   
   TASK [controller : copy kafka truststore/keystore] 
*******************************************************
   Tuesday 25 June 2019  21:03:02 -0600 (0:00:00.647)       0:00:42.212 
**********
   skipping: [controller0]
   
   TASK [controller : copy nginx certificate keystore] 
******************************************************
   Tuesday 25 June 2019  21:03:02 -0600 (0:00:00.080)       0:00:42.292 
**********
   ok: [controller0]
   
   TASK [controller : copy certificates] 
********************************************************************
   Tuesday 25 June 2019  21:03:03 -0600 (0:00:00.988)       0:00:43.281 
**********
   ok: [controller0] => (item=controller-openwhisk-server-cert.pem)
   ok: [controller0] => (item=controller-openwhisk-server-key.pem)
   
   TASK [controller : check, that required databases exist] 
*************************************************
   Tuesday 25 June 2019  21:03:04 -0600 (0:00:01.576)       0:00:44.857 
**********
   included: /users/yunsong/openwhisk/ansible/tasks/db/checkDb.yml for 
controller0
   included: /users/yunsong/openwhisk/ansible/tasks/db/checkDb.yml for 
controller0
   included: /users/yunsong/openwhisk/ansible/tasks/db/checkDb.yml for 
controller0
   
   TASK [controller : check if whisk_local_whisks with CouchDB exists] 
**************************************
   Tuesday 25 June 2019  21:03:05 -0600 (0:00:00.282)       0:00:45.140 
**********
   ok: [controller0]
   
   TASK [controller : check if whisk_local_subjects with CouchDB exists] 
************************************
   Tuesday 25 June 2019  21:03:05 -0600 (0:00:00.767)       0:00:45.907 
**********
   ok: [controller0]
   
   TASK [controller : check if whisk_local_activations with CouchDB exists] 
*********************************
   Tuesday 25 June 2019  21:03:06 -0600 (0:00:00.602)       0:00:46.509 
**********
   ok: [controller0]
   
   TASK [controller : prepare controller port] 
**************************************************************
   Tuesday 25 June 2019  21:03:07 -0600 (0:00:00.543)       0:00:47.052 
**********
   ok: [controller0]
   
   TASK [controller : expose additional ports if jmxremote is enabled] 
**************************************
   Tuesday 25 June 2019  21:03:07 -0600 (0:00:00.438)       0:00:47.491 
**********
   ok: [controller0]
   
   TASK [controller : Load config from template] 
************************************************************
   Tuesday 25 June 2019  21:03:07 -0600 (0:00:00.434)       0:00:47.926 
**********
   ok: [controller0]
   
   TASK [controller : populate environment variables for controller] 
****************************************
   Tuesday 25 June 2019  21:03:08 -0600 (0:00:00.174)       0:00:48.100 
**********
   ok: [controller0]
   
   TASK [controller : merge extra env variables] 
************************************************************
   Tuesday 25 June 2019  21:03:08 -0600 (0:00:00.768)       0:00:48.869 
**********
   ok: [controller0]
   
   TASK [controller : populate volumes for controller] 
******************************************************
   Tuesday 25 June 2019  21:03:09 -0600 (0:00:00.407)       0:00:49.276 
**********
   ok: [controller0]
   
   TASK [controller : check if coverage collection is enabled] 
**********************************************
   Tuesday 25 June 2019  21:03:09 -0600 (0:00:00.451)       0:00:49.727 
**********
   skipping: [controller0]
   
   TASK [controller : ensure controller coverage directory is created with 
permissions] *********************
   Tuesday 25 June 2019  21:03:09 -0600 (0:00:00.079)       0:00:49.807 
**********
   skipping: [controller0] => (item=controller)
   skipping: [controller0] => (item=common)
   
   TASK [controller : extend controller volume for coverage] 
************************************************
   Tuesday 25 June 2019  21:03:09 -0600 (0:00:00.103)       0:00:49.910 
**********
   skipping: [controller0]
   
   TASK [controller : include plugins] 
**********************************************************************
   Tuesday 25 June 2019  21:03:09 -0600 (0:00:00.088)       0:00:49.999 
**********
   included: 
/users/yunsong/openwhisk/ansible/roles/controller/tasks/join_akka_cluster.yml 
for controller0
   
   TASK [controller : add akka port to ports_to_expose] 
*****************************************************
   Tuesday 25 June 2019  21:03:10 -0600 (0:00:00.145)       0:00:50.144 
**********
   ok: [controller0]
   
   TASK [controller : add seed nodes to controller environment] 
*********************************************
   Tuesday 25 June 2019  21:03:10 -0600 (0:00:00.413)       0:00:50.558 
**********
   ok: [controller0] => (item=[0, u'172.17.0.1'])
   
   TASK [controller : Add akka environment to controller environment] 
***************************************
   Tuesday 25 June 2019  21:03:11 -0600 (0:00:00.524)       0:00:51.082 
**********
   ok: [controller0]
   
   TASK [controller : lean controller setup] 
****************************************************************
   Tuesday 25 June 2019  21:03:11 -0600 (0:00:00.414)       0:00:51.497 
**********
   skipping: [controller0]
   
   TASK [controller : (re)start controller] 
*****************************************************************
   Tuesday 25 June 2019  21:03:11 -0600 (0:00:00.057)       0:00:51.555 
**********
   changed: [controller0]
   
   TASK [controller : wait until the Controller in this host is up and running] 
*****************************
   Tuesday 25 June 2019  21:03:15 -0600 (0:00:03.465)       0:00:55.020 
**********
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(12 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(11 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(10 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(9 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(8 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(7 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(6 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(5 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(4 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(3 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(2 retries left).
   FAILED - RETRYING: wait until the Controller in this host is up and running 
(1 retries left).
   fatal: [controller0]: FAILED! => {"attempts": 12, "changed": false, 
"content": "", "msg": "Status code was -1 and not [200]: Request failed: 
<urlopen error [Errno 111] Connection refused>", "redirected": false, "status": 
-1, "url": "https://172.17.0.1:10001/ping"}
   
   Status code was -1 and not [200]: Request failed: <urlopen error [Errno
   111] Connection refused>
   
   PLAY RECAP 
***********************************************************************************************
   controller0                : ok=25   changed=3    unreachable=0    failed=1
   kafka0                     : ok=11   changed=5    unreachable=0    failed=0
   
   Tuesday 25 June 2019  21:04:20 -0600 (0:01:05.336)       0:02:00.357 
**********
   
===============================================================================
   controller : wait until the Controller in this host is up and running 
---------------------------- 65.34s
   kafka : (re)start kafka using 'wurstmeister/kafka:0.11.0.1'  
------------------------------------- 13.51s
   kafka : wait until the kafka server started up 
---------------------------------------------------- 7.77s
   zookeeper : wait until the Zookeeper in this host is up and running 
------------------------------- 7.50s
   controller : (re)start controller 
----------------------------------------------------------------- 3.47s
   zookeeper : (re)start zookeeper 
------------------------------------------------------------------- 3.27s
   zookeeper : pull the zookeeper:3.4 image 
---------------------------------------------------------- 1.60s
   controller : copy certificates 
-------------------------------------------------------------------- 1.58s
   Gathering Facts 
-----------------------------------------------------------------------------------
 1.32s
   Gathering Facts 
-----------------------------------------------------------------------------------
 1.12s
   Gathering Facts 
-----------------------------------------------------------------------------------
 1.01s
   controller : copy nginx certificate keystore 
------------------------------------------------------ 0.99s
   controller : copy jmxremote password file 
--------------------------------------------------------- 0.93s
   controller : populate environment variables for controller 
---------------------------------------- 0.77s
   controller : check if whisk_local_whisks with CouchDB exists 
-------------------------------------- 0.77s
   controller : copy jmxremote access file 
----------------------------------------------------------- 0.65s
   controller : ensure controller config directory is created with permissions 
----------------------- 0.64s
   controller : check if whisk_local_subjects with CouchDB exists 
------------------------------------ 0.60s
   controller : check if whisk_local_activations with CouchDB exists 
--------------------------------- 0.54s
   kafka : create kafka certificate directory 
-------------------------------------------------------- 0.53s```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to