Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if db credentials are valid for CouchDB: fatal: [172.17.0.1] ==> FAILED! The conditional check 'db.provider != "CouchDB"' failed #5521

Open
LMiaoH opened this issue Dec 11, 2024 · 0 comments

Comments

@LMiaoH
Copy link

LMiaoH commented Dec 11, 2024

I got error when I tried to build openwhisk on both my server,Can someone help me? Thank you very much.

Environment details:

miao@miao-virtual-machine:~/openwhisk/ansible$ uname -a
Linux miao-virtual-machine 5.15.0-122-generic #132~20.04.1-Ubuntu SMP Fri Aug 30 15:50:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
miao@miao-virtual-machine:~/openwhisk/ansible$ docker --version
Docker version 27.4.0, build bde2b89

Steps to reproduce the issue:

ansible-playbook -i environments/local couchdb.ym

Provide the actual results and outputs:

(owvenv) lmiao@lmiao-virtual-machine:~/openwhisk/ansible$ ansible-playbook -i environments/local couchdb.yml 

PLAY [db] ********************************************************************************************************************************************************************************************************************************
[WARNING]: While constructing a mapping from /home/lmiao/openwhisk/ansible/group_vars/all, line 506, column 3, found a duplicate dict key (dataManagementService). Using last defined value only.

TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:36 +0800 (0:00:00.015)       0:00:00.015 **** 
ok: [172.17.0.1]

TASK [couchdb : set the coordinator to the first node] ***********************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.565)       0:00:00.580 **** 
ok: [172.17.0.1]

TASK [couchdb : Set the volumes] *********************************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.021)       0:00:00.601 **** 
ok: [172.17.0.1]

TASK [couchdb : Set the nodes] ***********************************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.026)       0:00:00.628 **** 
ok: [172.17.0.1]

TASK [couchdb : check if db credentials are valid for CouchDB] ***************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.029)       0:00:00.657 **** 
skipping: [172.17.0.1]

TASK [couchdb : ensure directory for persisting db exists] *******************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.050)       0:00:00.708 **** 
skipping: [172.17.0.1]

TASK [couchdb : fail if path to persist db does not exist] *******************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.048)       0:00:00.757 **** 
skipping: [172.17.0.1]

TASK [couchdb : mount directory for persisting dbs] **************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.047)       0:00:00.804 **** 
skipping: [172.17.0.1]

TASK [couchdb : include_tasks] ***********************************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.045)       0:00:00.849 **** 
skipping: [172.17.0.1]

TASK [couchdb : set the erlang cookie volume] ********************************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.050)       0:00:00.900 **** 
skipping: [172.17.0.1]

TASK [couchdb : (re)start CouchDB from 'apache/couchdb:2.3 '] ****************************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:37 +0800 (0:00:00.056)       0:00:00.957 **** 
changed: [172.17.0.1]

TASK [couchdb : wait until CouchDB in this host is up and running] ***********************************************************************************************************************************************************************
Wednesday 18 December 2024  16:50:56 +0800 (0:00:18.838)       0:00:19.795 **** 
FAILED - RETRYING: wait until CouchDB in this host is up and running (12 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (11 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (10 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (9 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (8 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (7 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (6 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (5 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (4 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (3 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (2 retries left).
FAILED - RETRYING: wait until CouchDB in this host is up and running (1 retries left).
fatal: [172.17.0.1]: FAILED! => {"attempts": 12, "changed": false, "connection": "close", "content": "", "content_length": "0", "elapsed": 0, "msg": "Status code was 502 and not [200]: HTTP Error 502: Bad Gateway", "redirected": false, "status": 502, "url": "http://172.17.0.1:5984/_utils/"}

Status code was 502 and not [200]: HTTP Error 502: Bad Gateway

PLAY RECAP *******************************************************************************************************************************************************************************************************************************
172.17.0.1                 : ok=5    changed=1    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0   

Wednesday 18 December 2024  16:52:02 +0800 (0:01:05.850)       0:01:25.646 **** 
=============================================================================== 
couchdb : wait until CouchDB in this host is up and running ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 65.85s
couchdb : (re)start CouchDB from 'apache/couchdb:2.3 '  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 18.84s
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.57s
couchdb : set the erlang cookie volume -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.06s
couchdb : check if db credentials are valid for CouchDB --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
couchdb : include_tasks ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
couchdb : ensure directory for persisting db exists ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
couchdb : fail if path to persist db does not exist ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
couchdb : mount directory for persisting dbs -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
couchdb : Set the nodes ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.03s
couchdb : Set the volumes --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.03s
couchdb : set the coordinator to the first node ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.02s

Additional information you deem important:

Contents of db_local.ini:

[db_creds]
db_provider=CouchDB
db_username=openwhisk
db_password=openwhisk
db_protocol=http
db_host=172.17.0.1
db_port=5984

[controller]
db_username=whisk_local_controller0
db_password=some_controller_passw0rd

[invoker]
db_username=whisk_local_invoker0
db_password=some_invoker_passw0rd

[scheduler]
db_username=whisk_local_scheduler0
db_password=some_scheduler_passw0rd

@LMiaoH LMiaoH closed this as completed Dec 15, 2024
@LMiaoH LMiaoH reopened this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant