Closed spattewar closed 7 years ago
Attaching the controller log for additional information. controller0_logs.txt
You failed putting packages in couchdb. Check your couchdb logs first. I guess your database for action(root_guruvirtues-hp-elitebook-8560w-sn717up-aba_whisks) wasn't created. Run 'wipe.yml' again and check whether it makes an error.
thanks devbv for your prompt response. so should I run wipe.yml and then run the openwhisk.yml? The couchdb that I am using is epheremal coucdb instance and not a persistent instance. does that cause any issue? I will also check the couchdb logs and get back. thanks again.
It cleans up all the actions and activations data, but I think you couldn't create any new action also. so nothing really matters(?!)
wipe.yml
openwhisk.yml -e mode=clean
openwhisk.yml
@devbv I will be executing the above commands and will get back. Also will check the couchdb logs.
@devbv There are no couchdb logs, maybe because it is ephemeral instance. But I was able to successfully complete the start by following your 3 commands above wipe.yml openwhisk.yml -e mode=clean openwhisk.yml
appreciate your help! I will try to create action and see if all works
@devbv I was running the wsk command from the openwhisk/bin directory and it was saying that wsk command not found. i came to know that i forgot to run the postdeployement.yml script so i ran it but it failed with the following error.
TASK [install the catalog from the catalog location] **** Saturday 05 August 2017 20:52:49 +0000 (0:00:00.327) 0:00:02.977 *** fatal: [ansible]: FAILED! => {"changed": true, "cmd": "./installCatalog.sh /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system 172.17.0.1 /home/guruvirtues/openwhisk/ansible/../bin/wsk", "delta": "0:00:00.336894", "end": "2017-08-05 20:52:50.225524", "failed": true, "rc": 7, "start": "2017-08-05 20:52:49.888630", "stderr": "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/websocket?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/combinators?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/github?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/samples?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/weather?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/utils?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Unable to create action 'combinators/trycatch': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/trycatch?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'combinators/retry': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/retry?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'websocket/send': Put https://172.17.0.1/api/v1/namespaces/_/actions/websocket/send?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'combinators/forwarder': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/forwarder?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'combinators/eca': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/eca?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/slack?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nerror: Unable to create action 'github/webhook': Put https://172.17.0.1/api/v1/namespaces/_/actions/github/webhook?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/date': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/date?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'watson-textToSpeech/textToSpeech': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-textToSpeech/textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'samples/wordCount': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/wordCount?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/cat': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/cat?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/namespace': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/namespace?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'watson-translator/translator': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/hosturl': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/hosturl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'samples/greeting': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/greeting?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'watson-translator/languageId': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/languageId?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'slack/post': Put https://172.17.0.1/api/v1/namespaces/_/actions/slack/post?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/sort': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/sort?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/split': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/split?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'weather/forecast': Put https://172.17.0.1/api/v1/namespaces/_/actions/weather/forecast?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/smash': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/smash?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'samples/curl': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/curl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'samples/helloWorld': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/helloWorld?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/head': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/head?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'utils/echo': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/echo?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.\nerror: Unable to create action 'watson-speechToText/speechToText': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-speechToText/speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused\nRun 'wsk --help' for usage.", "stderrlines": ["error: Package update failed: Put https://172.17.0.1/api/v1/namespaces//packages/websocket?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/combinators?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/github?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/samples?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/weather?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/utils?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Unable to create action 'combinators/trycatch': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/trycatch?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'combinators/retry': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/retry?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'websocket/send': Put https://172.17.0.1/api/v1/namespaces/_/actions/websocket/send?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'combinators/forwarder': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/forwarder?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'combinators/eca': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/eca?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/slack?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "error: Unable to create action 'github/webhook': Put https://172.17.0.1/api/v1/namespaces/_/actions/github/webhook?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/date': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/date?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'watson-textToSpeech/textToSpeech': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-textToSpeech/textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'samples/wordCount': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/wordCount?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/cat': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/cat?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/namespace': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/namespace?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'watson-translator/translator': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/hosturl': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/hosturl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'samples/greeting': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/greeting?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'watson-translator/languageId': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/languageId?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'slack/post': Put https://172.17.0.1/api/v1/namespaces/_/actions/slack/post?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/sort': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/sort?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/split': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/split?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'weather/forecast': Put https://172.17.0.1/api/v1/namespaces/_/actions/weather/forecast?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/smash': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/smash?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'samples/curl': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/curl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'samples/helloWorld': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/helloWorld?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/head': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/head?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'utils/echo': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/echo?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage.", "error: Unable to create action 'watson-speechToText/speechToText': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-speechToText/speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused", "Run 'wsk --help' for usage."], "stdout": "Installing OpenWhisk packages\nInstalling package installCombinators.sh with pid 14278\nInstalling package installGit.sh with pid 14279\nInstalling package installSlack.sh with pid 14280\nInstalling package installSystem.sh with pid 14281\nInstalling package installWatson.sh with pid 14282\nInstalling package installWeather.sh with pid 14283\nInstalling package installWebSocket.sh with pid 14284\nInstalling Weather package.\nInstalling WebSocket package.\nCreating package websocket with pid 14327\nCreating package weather with pid 14328\nInstalling action combinator package.\nCreating package combinators with pid 14329\nInstalling Watson package.\nCreating package watson-translator with pid 14330\nInstalling Git package.\nCreating package watson-speechToText with pid 14331\nCreating package github with pid 14332\nCreating package watson-textToSpeech with pid 14333\nInstalling whisk.system entities.\nInstalling Slack package.\nCreating package utils with pid 14337\nCreating package slack with pid 14338\nCreating package samples with pid 14339\n14327 finished with status 3\n14329 finished with status 3\nInstalling websocket/send with pid 14387\nInstalling combinators/eca with pid 14388\nInstalling combinators/forwarder with pid 14389\nInstalling combinators/retry with pid 14390\nInstalling combinators/trycatch with pid 14391\n14332 finished with status 3\nInstalling github/webhook with pid 14392\n14337 finished with status 3\n14339 finished with status 3\nInstalling utils/echo with pid 14409\nInstalling utils/cat with pid 14410\nInstalling utils/smash with pid 14415\nInstalling utils/split with pid 14416\nInstalling utils/sort with pid 14417\nInstalling utils/head with pid 14418\nInstalling utils/date with pid 14419\nInstalling utils/namespace with pid 14420\nInstalling utils/hosturl with pid 14421\nInstalling samples/helloWorld with pid 14422\nInstalling samples/greeting with pid 14423\nInstalling samples/wordCount with pid 14424\nInstalling samples/curl with pid 14425\n14328 finished with status 3\nInstalling weather/forecast with pid 14429\n14330 finished with status 3\n14331 finished with status 3\n14333 finished with status 3\nInstalling watson-speechToText/speechToText with pid 14439\nInstalling watson-translator/translator with pid 14443\nInstalling watson-translator/languageId with pid 14445\nInstalling watson-textToSpeech/textToSpeech with pid 14446\n14387 finished with status 3\nWebSocket package ERRORS = 2\n14388 finished with status 3\n14389 finished with status 3\n14390 finished with status 3\n14391 finished with status 3\ncombinator package ERRORS = 5\n14278 finished with status 5\n14338 finished with status 3\nInstalling slack/post with pid 14517\n14392 finished with status 3\nGit package ERRORS = 2\n14279 finished with status 2\n14517 finished with status 3\nSlack package ERRORS = 2\n14280 finished with status 2\n14429 finished with status 3\nWeather package ERRORS = 2\n14409 finished with status 3\n14410 finished with status 3\n14415 finished with status 3\n14416 finished with status 3\n14417 finished with status 3\n14418 finished with status 3\n14439 finished with status 3\n14419 finished with status 3\n14443 finished with status 3\n14445 finished with status 3\n14420 finished with status 3\n14446 finished with status 3\n14421 finished with status 3\nWatson package ERRORS = 7\n14422 finished with status 3\n14423 finished with status 3\n14424 finished with status 3\n14425 finished with status 3\nwhisk.system entities ERRORS = 15\n14281 finished with status 15\n14282 finished with status 7\n14283 finished with status 2\n14284 finished with status 2\nopen catalog ERRORS = 7", "stdout_lines": ["Installing OpenWhisk packages", "Installing package installCombinators.sh with pid 14278", "Installing package installGit.sh with pid 14279", "Installing package installSlack.sh with pid 14280", "Installing package installSystem.sh with pid 14281", "Installing package installWatson.sh with pid 14282", "Installing package installWeather.sh with pid 14283", "Installing package installWebSocket.sh with pid 14284", "Installing Weather package.", "Installing WebSocket package.", "Creating package websocket with pid 14327", "Creating package weather with pid 14328", "Installing action combinator package.", "Creating package combinators with pid 14329", "Installing Watson package.", "Creating package watson-translator with pid 14330", "Installing Git package.", "Creating package watson-speechToText with pid 14331", "Creating package github with pid 14332", "Creating package watson-textToSpeech with pid 14333", "Installing whisk.system entities.", "Installing Slack package.", "Creating package utils with pid 14337", "Creating package slack with pid 14338", "Creating package samples with pid 14339", "14327 finished with status 3", "14329 finished with status 3", "Installing websocket/send with pid 14387", "Installing combinators/eca with pid 14388", "Installing combinators/forwarder with pid 14389", "Installing combinators/retry with pid 14390", "Installing combinators/trycatch with pid 14391", "14332 finished with status 3", "Installing github/webhook with pid 14392", "14337 finished with status 3", "14339 finished with status 3", "Installing utils/echo with pid 14409", "Installing utils/cat with pid 14410", "Installing utils/smash with pid 14415", "Installing utils/split with pid 14416", "Installing utils/sort with pid 14417", "Installing utils/head with pid 14418", "Installing utils/date with pid 14419", "Installing utils/namespace with pid 14420", "Installing utils/hosturl with pid 14421", "Installing samples/helloWorld with pid 14422", "Installing samples/greeting with pid 14423", "Installing samples/wordCount with pid 14424", "Installing samples/curl with pid 14425", "14328 finished with status 3", "Installing weather/forecast with pid 14429", "14330 finished with status 3", "14331 finished with status 3", "14333 finished with status 3", "Installing watson-speechToText/speechToText with pid 14439", "Installing watson-translator/translator with pid 14443", "Installing watson-translator/languageId with pid 14445", "Installing watson-textToSpeech/textToSpeech with pid 14446", "14387 finished with status 3", "WebSocket package ERRORS = 2", "14388 finished with status 3", "14389 finished with status 3", "14390 finished with status 3", "14391 finished with status 3", "combinator package ERRORS = 5", "14278 finished with status 5", "14338 finished with status 3", "Installing slack/post with pid 14517", "14392 finished with status 3", "Git package ERRORS = 2", "14279 finished with status 2", "14517 finished with status 3", "Slack package ERRORS = 2", "14280 finished with status 2", "14429 finished with status 3", "Weather package ERRORS = 2", "14409 finished with status 3", "14410 finished with status 3", "14415 finished with status 3", "14416 finished with status 3", "14417 finished with status 3", "14418 finished with status 3", "14439 finished with status 3", "14419 finished with status 3", "14443 finished with status 3", "14445 finished with status 3", "14420 finished with status 3", "14446 finished with status 3", "14421 finished with status 3", "Watson package ERRORS = 7", "14422 finished with status 3", "14423 finished with status 3", "14424 finished with status 3", "14425 finished with status 3", "whisk.system entities ERRORS = 15", "14281 finished with status 15", "14282 finished with status 7", "14283 finished with status 2", "14284 finished with status 2", "open catalog ERRORS = 7"]} [FAILED]
./installCatalog.sh /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system 172.17.0.1 /home/guruvirtues/openwhisk/ansible/../bin/wsk Installing OpenWhisk packages Installing package installCombinators.sh with pid 14278 Installing package installGit.sh with pid 14279 Installing package installSlack.sh with pid 14280 Installing package installSystem.sh with pid 14281 Installing package installWatson.sh with pid 14282 Installing package installWeather.sh with pid 14283 Installing package installWebSocket.sh with pid 14284 Installing Weather package. Installing WebSocket package. Creating package websocket with pid 14327 Creating package weather with pid 14328 Installing action combinator package. Creating package combinators with pid 14329 Installing Watson package. Creating package watson-translator with pid 14330 Installing Git package. Creating package watson-speechToText with pid 14331 Creating package github with pid 14332 Creating package watson-textToSpeech with pid 14333 Installing whisk.system entities. Installing Slack package. Creating package utils with pid 14337 Creating package slack with pid 14338 Creating package samples with pid 14339 14327 finished with status 3 14329 finished with status 3 Installing websocket/send with pid 14387 Installing combinators/eca with pid 14388 Installing combinators/forwarder with pid 14389 Installing combinators/retry with pid 14390 Installing combinators/trycatch with pid 14391 14332 finished with status 3 Installing github/webhook with pid 14392 14337 finished with status 3 14339 finished with status 3 Installing utils/echo with pid 14409 Installing utils/cat with pid 14410 Installing utils/smash with pid 14415 Installing utils/split with pid 14416 Installing utils/sort with pid 14417 Installing utils/head with pid 14418 Installing utils/date with pid 14419 Installing utils/namespace with pid 14420 Installing utils/hosturl with pid 14421 Installing samples/helloWorld with pid 14422 Installing samples/greeting with pid 14423 Installing samples/wordCount with pid 14424 Installing samples/curl with pid 14425 14328 finished with status 3 Installing weather/forecast with pid 14429 14330 finished with status 3 14331 finished with status 3 14333 finished with status 3 Installing watson-speechToText/speechToText with pid 14439 Installing watson-translator/translator with pid 14443 Installing watson-translator/languageId with pid 14445 Installing watson-textToSpeech/textToSpeech with pid 14446 14387 finished with status 3 WebSocket package ERRORS = 2 14388 finished with status 3 14389 finished with status 3 14390 finished with status 3 14391 finished with status 3 combinator package ERRORS = 5 14278 finished with status 5 14338 finished with status 3 Installing slack/post with pid 14517 14392 finished with status 3 Git package ERRORS = 2 14279 finished with status 2 14517 finished with status 3 Slack package ERRORS = 2 14280 finished with status 2 14429 finished with status 3 Weather package ERRORS = 2 14409 finished with status 3 14410 finished with status 3 14415 finished with status 3 14416 finished with status 3 14417 finished with status 3 14418 finished with status 3 14439 finished with status 3 14419 finished with status 3 14443 finished with status 3 14445 finished with status 3 14420 finished with status 3 14446 finished with status 3 14421 finished with status 3 Watson package ERRORS = 7 14422 finished with status 3 14423 finished with status 3 14424 finished with status 3 14425 finished with status 3 whisk.system entities ERRORS = 15 14281 finished with status 15 14282 finished with status 7 14283 finished with status 2 14284 finished with status 2 open catalog ERRORS = 7 error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/websocket?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/combinators?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/github?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/samples?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/weather?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/utils?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/watson-translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Unable to create action 'combinators/trycatch': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/trycatch?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'combinators/retry': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/retry?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'websocket/send': Put https://172.17.0.1/api/v1/namespaces/_/actions/websocket/send?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'combinators/forwarder': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/forwarder?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'combinators/eca': Put https://172.17.0.1/api/v1/namespaces/_/actions/combinators/eca?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Package update failed: Put https://172.17.0.1/api/v1/namespaces/_/packages/slack?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused error: Unable to create action 'github/webhook': Put https://172.17.0.1/api/v1/namespaces/_/actions/github/webhook?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/date': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/date?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'watson-textToSpeech/textToSpeech': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-textToSpeech/textToSpeech?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'samples/wordCount': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/wordCount?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/cat': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/cat?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/namespace': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/namespace?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'watson-translator/translator': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/translator?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/hosturl': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/hosturl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'samples/greeting': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/greeting?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'watson-translator/languageId': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-translator/languageId?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'slack/post': Put https://172.17.0.1/api/v1/namespaces/_/actions/slack/post?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/sort': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/sort?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/split': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/split?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'weather/forecast': Put https://172.17.0.1/api/v1/namespaces/_/actions/weather/forecast?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/smash': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/smash?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'samples/curl': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/curl?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'samples/helloWorld': Put https://172.17.0.1/api/v1/namespaces/_/actions/samples/helloWorld?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/head': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/head?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'utils/echo': Put https://172.17.0.1/api/v1/namespaces/_/actions/utils/echo?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage. error: Unable to create action 'watson-speechToText/speechToText': Put https://172.17.0.1/api/v1/namespaces/_/actions/watson-speechToText/speechToText?overwrite=true: dial tcp 172.17.0.1:443: getsockopt: connection refused Run 'wsk --help' for usage.
PLAY RECAP ** ansible : ok=9 changed=1 unreachable=0 failed=1
Saturday 05 August 2017 20:52:50 +0000 (0:00:00.620) 0:00:03.597 *** =============================================================================== Gathering Facts --------------------------------------------------------- 0.88s Gathering Facts --------------------------------------------------------- 0.70s install the catalog from the catalog location --------------------------- 0.62s write whisk.properties template to openwhisk_home ----------------------- 0.59s download the catalog repository to the catalog location if necessary ---- 0.33s ensure catalog_location directory exists -------------------------------- 0.29s include ----------------------------------------------------------------- 0.05s set_fact ---------------------------------------------------------------- 0.04s set_fact ---------------------------------------------------------------- 0.04s set_fact ---------------------------------------------------------------- 0.04s
Looks like it is not able to connect and load the action. is it trying to connect to the https?
thanks again for your help. Regards
@devbv @rabbah ..please help. i am not able to understand why it is failing. the controller logs keeps showing the following error lines.
[2017-08-07T01:34:06.970Z] [INFO] [??] [WhiskConfig] reading properties from consul at 172.17.0.1:8500 [2017-08-07T01:34:08.279Z] [WARN] [??] [WhiskConfig] failed to read properties from consul: The http server closed the connection unexpectedly before delivering responses for 1 outstanding requests [2017-08-07T01:34:08.286Z] [ERROR] [??] [Config] required property db.port still not set [2017-08-07T01:34:08.287Z] [ERROR] [??] [Controller] Bad configuration, cannot start.
is the above error in post deployment due to above error. how to fix it?
thank you very for your time and effort
regards
@spattewar Check the logs of consul and find why controller failed in connecting to it. actually, recent versions of openwhisk don't contain consul. so if you keep having problem with consul, pull the latest version and install a whole system again.
@devbv thank you for your quick response. Actually there are no logs under the concul folder under wsklogs folder. So maybe something bad happened with it. To install a whole system again do I just follow the steps I mentioned in my first issue comment. Do I need to clean this install first by running teardown and wipe? thank you again! regards
@devbv does your pr apply here perhaps? https://github.com/apache/incubator-openwhisk/pull/2557
@spattewar Recompilng all modules and deploying openwhisk.yml is sufficient after the pull.
@devbv Thank you for your response. I ran teardown.yml and then deleted the openwhisk folder and then followed all the steps as mentioned in my issue comment. All went well and this time I was also able to run the postdeploy.yml successfully. As you said there is no consul running now. So is there a change in the openwhisk architecture? Who is doing the role of the consul?
Now I need to use wsk to create an action and run it. I am still confused on how to connect to openwhisk now, Does it allow secured connection? Do I need to do any steps to allow the secured connection.
thank you for your time and help. regards
@devbv @rabbah I am trying to create action by giving the command below and it is not creating root@guruvirtues-HP-EliteBook-8560w-SN717UP-ABA:~/openwhisk# bin/wsk action create hello bin/hello.js error: Unable to create action 'hello': Put https://172.17.0.1/api/v1/namespaces/_/actions/hello?overwrite=false: proxyconnect tcp: dial tcp 172.17.0.1:443: getsockopt: connection refused
this is my docker ps command output CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7cfdf9111f5b nginx:1.11 "nginx -g 'daemon off" 13 hours ago Restarting (1) 6 minutes ago 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:8443->8443/tcp nginx 033b2de24deb whisk/invoker:latest "/bin/sh -c 'exec /in" 13 hours ago Up About an hour 0.0.0.0:12001->8080/tcp invoker0 9e53d3bb7804 whisk/controller:latest "/bin/sh -c 'controll" 13 hours ago Up About an hour 0.0.0.0:10001->8080/tcp controller0 3c3e465ce800 ches/kafka:0.10.2.1 "/start.sh" 13 hours ago Up About an hour 7203/tcp, 0.0.0.0:9092->9092/tcp kafka cd9d55150b91 zookeeper:3.4 "/docker-entrypoint.s" 13 hours ago Up About an hour 2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp zookeeper c1b48a3c3d76 openwhisk/apigateway:0.8.2 "/usr/local/bin/dumb-" 13 hours ago Up About an hour 80/tcp, 8423/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->8080/tcp apigateway 2835875673ae redis:3.2 "docker-entrypoint.sh" 13 hours ago Up About an hour 0.0.0.0:6379->6379/tcp redis 5b7549d135bc couchdb:1.6 "tini -- /docker-entr" 13 hours ago Up About an hour 0.0.0.0:5984->5984/tcp couchdb
Is it issue with nginx? I think it is not able to connect or relay. Please help. This seems to be the last step.
thank you again for the time and help regards
@spattewar
consul did 1) store environment variables 2) check health of invokers
but now it is removed and a controller maintains membership of invoker itself.
Openwhisk use https for secure connection and you just failed with that. Check nginx logs by command 'docker logs nginx -f'
@devbv
There are no logs under the nginx folder under wsklogs. Will the above command check the same logs file?
Thank you Regards
check that your /tmp/nginx directory is not owned by root - if it is delete it and redeploy nginx.
@devbv Thanks for your response! There is no output when I run the command docker logs nginx -f
@rabbah Yes the nginx is owned by root. I removed the directory manually and then ran the command bin/wskdev edge from the openwhisk directory. I am running this command under root. This is the error is it getting TASK [nginx : (re)start nginx] ** Wednesday 09 August 2017 10:09:22 +0000 (0:00:00.816) 0:00:04.105 ** fatal: [172.17.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Error removing container 7cfdf9111f5b3933d153af6100c90005a52856092d7e4f69cca5356586860237: 500 Server Error: Internal Server Error (\"Unable to remove filesystem for 7cfdf9111f5b3933d153af6100c90005a52856092d7e4f69cca5356586860237: remove /var/lib/docker/containers/7cfdf9111f5b3933d153af6100c90005a52856092d7e4f69cca5356586860237/shm: device or resource busy\")"}
PLAY RECAP ** 172.17.0.1 : ok=6 changed=4 unreachable=0 failed=1
Wednesday 09 August 2017 10:09:23 +0000 (0:00:00.622) 0:00:04.728 ** =============================================================================== nginx : copy cert files from local to remote in nginx config directory --- 1.39s nginx : pull the nginx:1.11 image --------------------------------------- 0.82s Gathering Facts --------------------------------------------------------- 0.81s nginx : (re)start nginx ------------------------------------------------- 0.62s nginx : copy template from local to remote in nginx config directory ---- 0.53s nginx : ensure nginx config directory exists ---------------------------- 0.31s nginx : ensure nginx log directory is created with permissions ---------- 0.18s nginx : copy password files for cert from local to remote in nginx config directory --- 0.05s command failed
Now if i run my docker ps command there is no nginx container running root@guruvirtues-HP-EliteBook-8560w-SN717UP-ABA:~/openwhisk# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 033b2de24deb whisk/invoker:latest "/bin/sh -c 'exec /in" 22 hours ago Up 28 minutes 0.0.0.0:12001->8080/tcp invoker0 9e53d3bb7804 whisk/controller:latest "/bin/sh -c 'controll" 22 hours ago Up 28 minutes 0.0.0.0:10001->8080/tcp controller0 3c3e465ce800 ches/kafka:0.10.2.1 "/start.sh" 22 hours ago Up 28 minutes 7203/tcp, 0.0.0.0:9092->9092/tcp kafka cd9d55150b91 zookeeper:3.4 "/docker-entrypoint.s" 22 hours ago Up 28 minutes 2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp zookeeper c1b48a3c3d76 openwhisk/apigateway:0.8.2 "/usr/local/bin/dumb-" 22 hours ago Up 28 minutes 80/tcp, 8423/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->8080/tcp apigateway 2835875673ae redis:3.2 "docker-entrypoint.sh" 22 hours ago Up 28 minutes 0.0.0.0:6379->6379/tcp redis 5b7549d135bc couchdb:1.6 "tini -- /docker-entr" 22 hours ago Up 28 minutes 0.0.0.0:5984->5984/tcp couchdb
and if I see my tmp directory then again the nginx folder is owned by root since i have run the wskdev edge command under root root@guruvirtues-HP-EliteBook-8560w-SN717UP-ABA:/tmp# ls -lt total 20 drwxr-xr-x 2 root root 4096 Aug 9 10:09 nginx drwxr-xr-x 2 root root 4096 Aug 9 10:09 hsperfdata_root drwxr-xr-x 2 guruvirtues guruvirtues 4096 Aug 9 10:08 hsperfdata_guruvirtues drwx------ 2 guruvirtues guruvirtues 4096 Aug 9 09:51 firefox_guruvirtues drwxr-xr-x 5 root root 4096 Aug 9 09:48 wsklogs -rw-rw-r-- 1 guruvirtues guruvirtues 0 Aug 9 09:48 unity_support_test.0 -rw------- 1 guruvirtues guruvirtues 0 Aug 9 09:48 config-err-VZIUPn
This is the content of the nginx folder root@guruvirtues-HP-EliteBook-8560w-SN717UP-ABA:/tmp/nginx# ls -lt total 16 -rw-r--r-- 1 root root 1159 Aug 9 10:09 openwhisk-client-ca-cert.pem -rw-r--r-- 1 root root 1679 Aug 9 10:09 openwhisk-server-key.pem -rw-r--r-- 1 root root 1159 Aug 9 10:09 openwhisk-server-cert.pem -rw-r--r-- 1 root root 2833 Aug 9 10:09 nginx.conf
before the edge deploy there were no files in this folder. What can be done to install nginx not under root? What is the failure while deploying edge?
Thank you again for your time and help. it is very much appreciated.
Regards
@devbv @rabbah please help when you get time. I was able to reintall nginx. Then tear down the containers. ran openwhisk with the clean mode and then openwhisk.yml and it seems to work now. But even though I have set the API Host property and the auth certificate I cannot run the wsk command without the -i flag. Can you help me with the steps to make this more secure? I was able to create action and run the action. thank you for your time. Regards
If you dont want to use -i, you can create signed certificate (cerbot?). @ningyougang @style95 might have other suggestions.
@spattewar , @rabbah , @style95
docker inspect controller0
to find the ENV:DB_WHISK_AUTHS
value, it is the auth db name which your controller points to. then, login into http://<couchdb_address>:5984/_utils/
to check whether exist. (i seen in the log , the name is very long: root_guruvirtues-hp-elitebook-8560w-sn717up-aba_whisks
)whisk.system/routemgmt
exist.Anyway, after rebase the codes from master, above question will be lost
thank you fro all you help!!
Hi, Thank you for your time to read my issue. I am detailing the steps that I followed to install OpenWhisk locally on my machine on Ubuntu 14. The installation went through fine but not able to start openwhisk components or create an action. Please bear with me for this lengthy post.
Steps 1) There is no VM installed. I created a new Ubuntu installation and followed the steps mentioned on this page to update the https://github.com/apache/incubator-openwhisk/tree/master/tools/ubuntu-setup to get Git, clone the openwhisk code and install all the required softwares. 2) Set up the ephemeral CouchDB using the instructions mentioned here https://github.com/apache/incubator-openwhisk/blob/master/tools/db/README.md 3) Did the build using the command cd ./gradlew distDocker
4) Ran the following commands
5) while running the last step it fails giving the error while installing the route management package.
My docker ps command shows the following containers running
Please help what would be the issue with installing the route management package.
thank you for your time and help Regards Swapnil