openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

postdeploy internal server error

Open saj9191 opened this issue 7 years ago • 5 comments

Environment details:

AWS Ubuntu Server 16.04 LTS (HVM), SSD Volume Type

Steps to reproduce the issue:

I was trying to follow these instructions

https://gist.github.com/epiphone/8fe223bbfc375d01f12822e405f6aa54

to setup couchdb. When I get to the ansible-playbook postdeploy.yml step, I get the error

> ./installCatalogUsingWskdeploy.sh /home/ubuntu/openwhisk/ansible/files/auth.whisk.system 172.17.0.1
 /home/ubuntu/openwhisk/bin/wsk
non-zero return code
Installing OpenWhisk packages Deploying /home/ubuntu/openwhisk-
catalog/packages/combinators/ with pid 18977 Deploying /home/ubuntu/openwhisk-
catalog/packages/github/ with pid 18978 Deploying /home/ubuntu/openwhisk-
catalog/packages/slack/ with pid 18979 Deploying /home/ubuntu/openwhisk-
catalog/packages/utils/ with pid 18980 Deploying /home/ubuntu/openwhisk-
catalog/packages/watson-speechToText/ with pid 18981 Deploying /home/ubuntu
/openwhisk-catalog/packages/watson-textToSpeech/ with pid 18984 Deploying
/home/ubuntu/openwhisk-catalog/packages/weather/ with pid 18991 Deploying
/home/ubuntu/openwhisk-catalog/packages/websocket/ with pid 18996 Deploying
/home/ubuntu/openwhisk-catalog/packages/samples/ with pid 18999 Success:
Deployment completed successfully. Success: Deployment completed successfully.
Success: Deployment completed successfully. Success: Deployment completed
successfully. Success: Deployment completed successfully. Success: Deployment
completed successfully. 18977 finished with status 1 18978 finished with status
0 18979 finished with status 0 18980 finished with status 1 18981 finished with
status 0 18984 finished with status 0 18991 finished with status 0 18996
finished with status 0 18999 finished with status 1 open catalog ERRORS = 3
Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to
remove partially deployed assets. 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 21df2624bcedb62a82389cc73521d4f8): HTTP
Response Status: 500 Internal Server Error HTTP Response Body:
{"code":"21df2624bcedb62a82389cc73521d4f8","error":"There was an internal server
error."}  servicedeployer.go [1656]: [ERROR_WHISK_CLIENT_ERROR]: Error code:
244: There was an internal server error. (code
a13e9725a2b6b6c48be3253577eeb3f9): HTTP Response Status: 500 Internal Server
Error HTTP Response Body:
{"code":"a13e9725a2b6b6c48be3253577eeb3f9","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 90cd7136872f57f16a713396bdfbf4ad): HTTP Response Status: 500 Internal
Server Error HTTP Response Body:
{"code":"90cd7136872f57f16a713396bdfbf4ad","error":"There was an internal server
error."}

I tried wskdeploy undeploy, but it says the manifest file is not found in the openwhisk/ansible directory.

Does anyone know how to fix this issue? Thank you!

saj9191 avatar Apr 27 '19 22:04 saj9191

I have the same issue, have you fixed it?

I have these ERRORS in "controller0_logs.log"


[2019-05-25T09:05:48.478Z] [ERROR] [#tid_bc978410a2d4d24c830a129f4808d33a] [CouchDbRestStore] [GET] 'whisk_local_whisks' internal error, doc: 'id: whisk.system/utils/head', failure: 'Substream Source cannot be materialized more than once' [marker:database_getDocument_error:58:43]
[2019-05-25T09:05:48.478Z] [ERROR] [#tid_bc978410a2d4d24c830a129f4808d33a] [ActionsApi] [PUT] entity failed: Substream Source cannot be materialized more than once
[2019-05-25T09:05:48.479Z] [ERROR] [#tid_c82dbc6eb667053fc70727d9a7173063] [CouchDbRestStore] [GET] 'whisk_local_whisks' internal error, doc: 'id: whisk.system/samples/greeting', failure: 'Substream Source cannot be materialized more than once' [marker:database_getDocument_error:49:41]
[2019-05-25T09:05:48.481Z] [ERROR] [#tid_c82dbc6eb667053fc70727d9a7173063] [ActionsApi] [PUT] entity failed: Substream Source cannot be materialized more than once

alibanaei avatar May 25 '19 06:05 alibanaei

@saj9191 do you have the controller logs?

wskadmin syslog get -g 21df2624bcedb62a82389cc73521d4f8

where 21df2624bcedb62a82389cc73521d4f8 is the error code from your catalog deploy logs in this case would show the logs from the controller.

this usually means the database is not ready or not accessible.

rabbah avatar May 28 '19 13:05 rabbah

@alibanaei are you deploying with ansible? what is your git hash?

rabbah avatar May 28 '19 13:05 rabbah

@rabbah

yes. ansible local deploying

git hash = 9d37fadcf4ba17d1056d2a58c6c7bf942c1dcfcc

alibanaei avatar Jun 01 '19 03:06 alibanaei

Closing as stale - hopefully you figured this out. It looks like a couch connectivity issue.

rabbah avatar Dec 20 '19 13:12 rabbah