apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.5k stars 1.16k forks source link

openwhisk postdeploy.yml error #4721

Closed mehirpandit closed 4 years ago

mehirpandit commented 4 years ago

Environment details:

  1. ansible-playbook initdb.yml
  2. ansible-playbook wipe.yml
  3. ansible-playbook apigateway.yml
  4. ansible-playbook openwhisk.yml
  5. ansible-playbook postdeploy.yml

Provide the actual results and outputs:

The output that i get is as follows:

fatal: [ansible]: FAILED! => {"changed": true, "cmd": "./installCatalogUsingWskdeploy.sh /home/student/openwhisk/ansible/files/auth.whisk.system 172.17.0.1 /home/student/openwhisk/ansible/../bin/wsk", "delta": "0:00:00.448649", "end": "2019-11-10 18:28:41.351221", "msg": "non-zero return code", "rc": 2, "start": "2019-11-10 18:28:40.902572", "stderr": "Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.\nservicedeployer.go [1656]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error. (code 57928fe6e8638af1dcc356ed244d080d): HTTP Response Status: 500 Internal Server Error HTTP Response Body: {\"code\":\"57928fe6e8638af1dcc356ed244d080d\",\"error\":\"There was an internal server error.\"}\n\nError: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.\nservicedeployer.go [1656]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error. (code b989fc3d6f7d47c7beb4db40306c6d29): HTTP Response Status: 500 Internal Server Error HTTP Response Body: {\"code\":\"b989fc3d6f7d47c7beb4db40306c6d29\",\"error\":\"There was an internal server error.\"}", "stderr_lines": ["Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.", "servicedeployer.go [1656]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error. (code 57928fe6e8638af1dcc356ed244d080d): HTTP Response Status: 500 Internal Server Error HTTP Response Body: {\"code\":\"57928fe6e8638af1dcc356ed244d080d\",\"error\":\"There was an internal server error.\"}", "", "Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.", "servicedeployer.go [1656]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error. (code b989fc3d6f7d47c7beb4db40306c6d29): HTTP Response Status: 500 Internal Server Error HTTP Response Body: {\"code\":\"b989fc3d6f7d47c7beb4db40306c6d29\",\"error\":\"There was an internal server error.\"}"], "stdout": "Installing OpenWhisk packages\nDeploying /home/student/openwhisk-catalog/packages/github/ with pid 25724\nDeploying /home/student/openwhisk-catalog/packages/slack/ with pid 25725\nDeploying /home/student/openwhisk-catalog/packages/utils/ with pid 25726\nDeploying /home/student/openwhisk-catalog/packages/weather/ with pid 25727\nDeploying /home/student/openwhisk-catalog/packages/websocket/ with pid 25728\nDeploying /home/student/openwhisk-catalog/packages/samples/ with pid 25729\nSuccess: Deployment completed successfully.\n25724 finished with status 0\nSuccess: Deployment completed successfully.\n25725 finished with status 0\nSuccess: Deployment completed successfully.\nSuccess: Deployment completed successfully.\n25726 finished with status 1\n25727 finished with status 0\n25728 finished with status 0\n25729 finished with status 1\nopen catalog ERRORS = 2", "stdout_lines": ["Installing OpenWhisk packages", "Deploying /home/student/openwhisk-catalog/packages/github/ with pid 25724", "Deploying /home/student/openwhisk-catalog/packages/slack/ with pid 25725", "Deploying /home/student/openwhisk-catalog/packages/utils/ with pid 25726", "Deploying /home/student/openwhisk-catalog/packages/weather/ with pid 25727", "Deploying /home/student/openwhisk-catalog/packages/websocket/ with pid 25728", "Deploying /home/student/openwhisk-catalog/packages/samples/ with pid 25729", "Success: Deployment completed successfully.", "25724 finished with status 0", "Success: Deployment completed successfully.", "25725 finished with status 0", "Success: Deployment completed successfully.", "Success: Deployment completed successfully.", "25726 finished with status 1", "25727 finished with status 0", "25728 finished with status 0", "25729 finished with status 1", "open catalog ERRORS = 2"]}

[FAILED]
> ./installCatalogUsingWskdeploy.sh /home/student/openwhisk/ansible/files/auth.whisk.system 172.17.0.1 /home/student/openwhisk/ansible/../bin/wsk
non-zero return code
Installing OpenWhisk packages Deploying /home/student/openwhisk-
catalog/packages/github/ with pid 25724 Deploying /home/student/openwhisk-
catalog/packages/slack/ with pid 25725 Deploying /home/student/openwhisk-
catalog/packages/utils/ with pid 25726 Deploying /home/student/openwhisk-
catalog/packages/weather/ with pid 25727 Deploying /home/student/openwhisk-
catalog/packages/websocket/ with pid 25728 Deploying /home/student/openwhisk-
catalog/packages/samples/ with pid 25729 Success: Deployment completed
successfully. 25724 finished with status 0 Success: Deployment completed
successfully. 25725 finished with status 0 Success: Deployment completed
successfully. Success: Deployment completed successfully. 25726 finished with
status 1 25727 finished with status 0 25728 finished with status 0 25729
finished with status 1 open catalog ERRORS = 2
Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to
remove partially deployed assets. servicedeployer.go [1656]:
[ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error.
(code 57928fe6e8638af1dcc356ed244d080d): HTTP Response Status: 500 Internal
Server Error HTTP Response Body:
{"code":"57928fe6e8638af1dcc356ed244d080d","error":"There was an internal server
error."}  Error: Deployment did not complete sucessfully. Run `wskdeploy
undeploy` to remove partially deployed assets. servicedeployer.go [1656]:
[ERROR_WHISK_CLIENT_ERROR]: Error code: 244: There was an internal server error.
(code b989fc3d6f7d47c7beb4db40306c6d29): HTTP Response Status: 500 Internal
Server Error HTTP Response Body:
{"code":"b989fc3d6f7d47c7beb4db40306c6d29","error":"There was an internal server
error."}

Additional information you deem important:

nano db_local.ini

[db_creds] db_provider=CouchDB db_username=USERNAME db_password=PASSWORD 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

also, bind_address = 0.0.0.0 in both /etc/couchdb/default.ini and /etc/couchdb/local.ini

Following these 2 tutorials: https://gist.github.com/epiphone/8fe223bbfc375d01f12822e405f6aa54 https://developer.ibm.com/code/2016/05/23/setup-openwhisk-use-local-couchdb/

Please help with the issue.

celery1124 commented 3 years ago

@mehirpandit Hi mehirpandit, I met the exact same error. Did you mange to address it? Thanks!

rabbah commented 3 years ago

@celery1124 check that your couchdb instance is running. If you can share the docker ps output it might help. Also you can look at the controller logs for a clue. bin/wskdev syslog get controller will report the logs assuming you're using ansible.

Did you try the standalone openwhisk - it's easier to set up and get started.

celery1124 commented 3 years ago

@celery1124 check that your couchdb instance is running. If you can share the docker ps output it might help. Also you can look at the controller logs for a clue. bin/wskdev syslog get controller will report the logs assuming you're using ansible.

Did you try the standalone openwhisk - it's easier to set up and get started.

@rabbah Hi Rabbah, thanks for the quick reply! I finally figure it out and run through the hello world demo. The problem seems related to system setup. I switched from ubuntu 16.04 server to 18.04 desktop with the exact same series of setup commands. Now everything work fine. Anyway, I will try to dig more into it.