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/02/25 13:07:39 UTC
[GitHub] axiqia opened a new issue #4303: Unable to connect to controller0
while running openwhisk.yml (local deployment), Connection refused!
axiqia opened a new issue #4303: Unable to connect to controller0 while running openwhisk.yml (local deployment), Connection refused!
URL: https://github.com/apache/incubator-openwhisk/issues/4303
<!--
We use the issue tracker for bugs and feature requests. For general questions and discussion please use http://slack.openwhisk.org/ or https://openwhisk.apache.org/contact.html instead.
Do NOT share passwords, credentials or other confidential information.
Before creating a new issue, please check if there is one already open that
fits the defect you are reporting.
If you open an issue and realize later it is a duplicate of a pre-existing
open issue, please close yours and add a comment to the other.
Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
If you are reporting a defect, please edit the issue description to include the
information shown below.
If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
For more information about reporting issues, see
https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues
Use the commands below to provide key information from your environment:
You do not have to include this information if this is a feature request.
-->
## Environment details:
* local deployment
* ubuntu 16.04 LTS; Docker version 18.09.2, build 6247962; couchdb:2.3
## Steps to reproduce the issue:
1. Follow the steps for local development on Ubuntu
2. Use CouchDB as the database
3. The situation will occur while running openwhisk.yml with ansible-playbook.
4. It waits for the controller for all 12 retries and then gives up. The controller container is in restarting status.
## Provide the actual results and outputs:
```
TASK [controller : add seed nodes to controller environment] *********************************************************************************************************************************************************************************
Monday 25 February 2019 20:50:40 +0800 (0:00:00.497) 0:01:01.632 *******
ok: [controller0] => (item=[0, '172.17.0.1'])
TASK [controller : Add akka environment to controller environment] ***************************************************************************************************************************************************************************
Monday 25 February 2019 20:50:40 +0800 (0:00:00.617) 0:01:02.250 *******
ok: [controller0]
TASK [controller : lean controller setup] ****************************************************************************************************************************************************************************************************
Monday 25 February 2019 20:50:41 +0800 (0:00:00.532) 0:01:02.782 *******
skipping: [controller0]
TASK [controller : (re)start controller] *****************************************************************************************************************************************************************************************************
Monday 25 February 2019 20:50:41 +0800 (0:00:00.060) 0:01:02.842 *******
changed: [controller0]
TASK [controller : wait until the Controller in this host is up and running] *****************************************************************************************************************************************************************
Monday 25 February 2019 20:50:43 +0800 (0:00:02.127) 0:01:04.969 *******
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=24 changed=1 unreachable=0 failed=1
kafka0 : ok=11 changed=5 unreachable=0 failed=0
Monday 25 February 2019 20:51:55 +0800 (0:01:11.837) 0:02:16.807 *******
===============================================================================
controller : wait until the Controller in this host is up and running ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 71.84s
kafka : (re)start kafka using 'wurstmeister/kafka:0.11.0.1' ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 14.17s
kafka : wait until the kafka server started up ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.45s
zookeeper : wait until the Zookeeper in this host is up and running ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.14s
zookeeper : (re)start zookeeper ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.60s
controller : copy certificates -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.37s
zookeeper : pull the zookeeper:3.4 image ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.34s
controller : (re)start controller ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.13s
Gathering Facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.05s
controller : copy jmxremote password file --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.94s
controller : copy nginx certificate keystore ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.93s
controller : copy jmxremote access file ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.46s
Gathering Facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.30s
Gathering Facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.25s
controller : check if whisk_local_whisks with CouchDB exists -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.13s
controller : populate environment variables for controller ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.08s
controller : ensure controller config directory is created with permissions ----------------------------------------------------------------------------------------------------------------------------------------------------------- 1.07s
controller : check if whisk_local_subjects with CouchDB exists ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.91s
kafka : create kafka certificate directory -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.83s
controller : check if whisk_local_activations with CouchDB exists --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.79s
```
## Additional information you deem important:
* My problem looks the same as[ issue 3248](https://github.com/apache/incubator-openwhisk/issues/3248#issue-294449914), so I tried to reinstall docker from official docker website, but it didn't work.
```
$ docker version
Client:
Version: 18.09.2
API version: 1.39
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:50 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 03:42:13 2019
OS/Arch: linux/amd64
Experimental: false
```
* Connection refused by command `curl`, either.
```
$ curl https://172.17.0.1:10001/ping
curl: (7) Failed to connect to 172.17.0.1 port 10001: Connection refused
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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