hawtkey removed a comment on issue #5182:
URL: https://github.com/apache/openwhisk/issues/5182#issuecomment-981403520


   I think this is because couchdb isn't exposed through docker on localhost. 
wskadmin is trying to access a closed port. I am using a kubernetes/helm 
deployment but I needed to replace ie: `127.0.0.1` with the IP address of 
couchdb inside the cluster and exposed as an endpoint by kubernetes. I was able 
to find this using `kubectl get endpoints -n openwhisk` which produced an 
output like:
   ```
   NAME               ENDPOINTS                                            AGE
   ...
   owdev-couchdb      10.42.0.184:5984                                     20h
   ```
   
   so `DB_HOST=10.42.0.184`
   
   then I was able to run wskadmin successfully:
   
   `wskadmin -v user get guest`
   
   ```
   ...
   ========
   REQUEST:
   GET http://10.42.0.184:5984/test_subjects/guest
   Headers sent:
   ...
   --------
   RESPONSE:
   Got response with code 200
   ...
   ```
   
   The procedure should be similar in docker, IE: `docker container inspect 
couchdb-container`.
   
   Although I'm still not sure what WHISK_LOGS_DIR should point at, I was able 
to locate all the other variables by finding them within the helm chart, which 
should also be similar in docker/ansible- 
   
   See: 
    - https://github.com/apache/openwhisk/blob/master/ansible/README.md#setup
    - 
https://github.com/apache/openwhisk/blob/master/ansible/templates/db_local.ini.j2
    - 
https://github.com/apache/openwhisk/blob/af11418df942e8d2cdc4c4ce933645fa723e9e45/ansible/group_vars/all#L250


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to