spattewar opened a new issue #2567: Openwhisk Local Installation on Ubuntu 14 Failed !!! Please help URL: https://github.com/apache/incubator-openwhisk/issues/2567 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 <home_openwhisk> ./gradlew distDocker 4) Ran the following commands cd ansible ansible-playbook -i environments/<environment> couchdb.yml ansible-playbook -i environments/<environment> initdb.yml ansible-playbook -i environments/<environment> wipe.yml ansible-playbook -i environments/<environment> apigateway.yml ansible-playbook -i environments/<environment> openwhisk.yml 5) while running the last step it fails giving the error while installing the route management package. TASK [routemgmt : install route management actions] fatal: [ansible]: FAILED! => {"changed": true, "cmd": "./installRouteMgmt.sh /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system 172.17.0.1 /whisk.system /home/guruvirtues/openwhisk/ansible/../bin/wsk", "delta": "0:00:09.832682", "end": "2017-08-03 10:41:37.887475", "failed": true, "rc": 244, "start": "2017-08-03 10:41:28.054793", "stderr": "+ '[' 4 -eq 0 ']'\n+ AUTH=/home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system\n+ APIHOST=172.17.0.1\n+ NAMESPACE=/whisk.system\n+ WSK_CLI=/home/guruvirtues/openwhisk/ansible/../bin/wsk\n+ WHISKPROPS_FILE=/home/guruvirtues/openwhisk/ansible/../whisk.properties\n++ fgrep apigw.auth.user= /home/guruvirtues/openwhisk/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_USER=\n++ fgrep apigw.auth.pwd= /home/guruvirtues/openwhisk/ansible/../whisk.properties\n++ cut -d= -f2-\n+ GW_PWD=\n++ fgrep apigw.host= /home/guruvirtues/openwhisk/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_HOST=http://172.17.0.1:9000/v1\n ++ fgrep apigw.host.v2= /home/guruvirtues/openwhisk/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_HOST_V2=http://172.17.0.1:9000/v2\n+ '[' -f /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system ']'\n++ cat /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system\n+ AUTH=789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP\n+ export WSK_CONFIG_FILE=\n+ WSK_CONFIG_FILE=\n+ echo Installing routemgmt package.\n+ /home/guruvirtues/openwhisk/ansible/../bin/wsk -i --apihost 172.17.0.1 package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl http://172.17.0.1:9000/v1 -p gwUrlV2 http://172.17.0.1:9000/v2\nerror: Package update failed: There was an internal server error. (code 7)", "stderr_lin es": ["+ '[' 4 -eq 0 ']'", "+ AUTH=/home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system", "+ APIHOST=172.17.0.1", "+ NAMESPACE=/whisk.system", "+ WSK_CLI=/home/guruvirtues/openwhisk/ansible/../bin/wsk", "+ WHISKPROPS_FILE=/home/guruvirtues/openwhisk/ansible/../whisk.properties", "++ fgrep apigw.auth.user= /home/guruvirtues/openwhisk/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_USER=", "++ fgrep apigw.auth.pwd= /home/guruvirtues/openwhisk/ansible/../whisk.properties", "++ cut -d= -f2-", "+ GW_PWD=", "++ fgrep apigw.host= /home/guruvirtues/openwhisk/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_HOST=http://172.17.0.1:9000/v1", "++ fgrep apigw.host.v2= /home/guruvirtues/openwhisk/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_HOST_V2=http://172.17.0.1:9000/v2", "+ '[' -f /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system ']'", "++ cat /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system", "+ AUTH=789c46b1-7 1f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP", "+ export WSK_CONFIG_FILE=", "+ WSK_CONFIG_FILE=", "+ echo Installing routemgmt package.", "+ /home/guruvirtues/openwhisk/ansible/../bin/wsk -i --apihost 172.17.0.1 package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl http://172.17.0.1:9000/v1 -p gwUrlV2 http://172.17.0.1:9000/v2", "error: Package update failed: There was an internal server error. (code 7)"], "stdout": "Installing routemgmt package.", "stdout_lines": ["Installing routemgmt package."]} [FAILED] > ./installRouteMgmt.sh /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system 172.17.0.1 /whisk.system /home/guruvirtues/openwhisk/ansible/../bin/wsk Installing routemgmt package. + '[' 4 -eq 0 ']' + AUTH=/home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system + APIHOST=172.17.0.1 + NAMESPACE=/whisk.system + WSK_CLI=/home/guruvirtues/openwhisk/ansible/../bin/wsk + WHISKPROPS_FILE=/home/guruvirtues/openwhisk/ansible/../whisk.properties ++ fgrep apigw.auth.user= /home/guruvirtues/openwhisk/ansible/../whisk.properties ++ cut -d= -f2 + GW_USER= ++ fgrep apigw.auth.pwd= /home/guruvirtues/openwhisk/ansible/../whisk.properties ++ cut -d= -f2- + GW_PWD= ++ fgrep apigw.host= /home/guruvirtues/openwhisk/ansible/../whisk.properties ++ cut -d= -f2 + GW_HOST=http://172.17.0.1:9000/v1 ++ fgrep apigw.host.v2= /home/guruvirtues/openwhisk/ansible/../whisk.properties ++ cut -d= -f2 + GW_HOST_V2=http://172.17.0.1:9000/v2 + '[' -f /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system ']' ++ cat /home/guruvirtues/openwhisk/ansible/../ansible/files/auth.whisk.system + AUTH=789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP + export WSK_CONFIG_FILE= + WSK_CONFIG_FILE= + echo Installing routemgmt package. + /home/guruvirtues/openwhisk/ansible/../bin/wsk -i --apihost 172.17.0.1 package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl http://172.17.0.1:9000/v1 -p gwUrlV2 http://172.17.0.1:9000/v2 error: Package update failed: There was an internal server error. (code 7) PLAY RECAP ***************************************************************************************************************************************************************************************** 172.17.0.1 : ok=59 changed=34 unreachable=0 failed=0 ansible : ok=5 changed=2 unreachable=0 failed=1 Thursday 03 August 2017 10:41:37 +0000 (0:00:10.010) 0:02:50.342 ******* =============================================================================== invoker : wait until Invoker is up and running ------------------------- 44.68s nginx : pull the nginx:1.11 image -------------------------------------- 28.32s controller : wait until the Controller in this host is up and running -- 11.47s routemgmt : install route management actions --------------------------- 10.01s consul : fill consul kv ------------------------------------------------- 7.68s consul : wait until the Consul Server/Agent in this host is up and running --- 7.43s kafka : wait until the Zookeeper in this host is up and running --------- 7.38s kafka : wait until the kafka server started up -------------------------- 5.35s cli : copy the local binaries from a local directory to Nginx directory --- 4.52s kafka : create the health topic ----------------------------------------- 2.76s kafka : create the active-ack topics ------------------------------------ 2.51s kafka : create the invoker topics --------------------------------------- 2.46s invoker : start invoker using docker cli -------------------------------- 2.28s nginx : (re)start nginx ------------------------------------------------- 2.27s kafka : (re)start kafka ------------------------------------------------- 2.18s consul : (re)start consul server/agent ---------------------------------- 2.15s kafka : (re)start zookeeper --------------------------------------------- 2.09s cli : download cli (linux) to openwhisk home at /home/guruvirtues/openwhisk/ansible/.. --- 1.85s controller : (re)start controller --------------------------------------- 1.85s consul : start registrator using docker cli ----------------------------- 1.59s My docker ps command shows the following containers running CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2bdc1f1ecbc1 whisk/nodejs6action:latest "/bin/sh -c 'node --e" 5 minutes ago Up 5 minutes wsk0_4_warmJsContainer_20170803T105034412Z e3ec88a1b1f2 whisk/nodejs6action:latest "/bin/sh -c 'node --e" 5 minutes ago Up 5 minutes wsk0_3_warmJsContainer_20170803T105030424Z d405aa62afd5 nginx:1.11 "nginx -g 'daemon off" 14 minutes ago Up 14 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:8443->8443/tcp nginx 3b7c59d50ffb whisk/invoker:latest "/bin/sh -c 'exec /in" 16 minutes ago Up 15 minutes 0.0.0.0:12001->8080/tcp invoker0 1e8adc1230e0 whisk/controller:latest "/bin/sh -c 'controll" 16 minutes ago Up 16 minutes 0.0.0.0:10001->8080/tcp controller0 7222c849546b ches/kafka:0.10.2.1 "/start.sh" 16 minutes ago Up 16 minutes 7203/tcp, 0.0.0.0:9092->9092/tcp kafka 77223a819933 zookeeper:3.4 "/docker-entrypoint.s" 16 minutes ago Up 16 minutes 2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp zookeeper 62ab8b54a420 gliderlabs/registrator "/bin/registrator -ip" 16 minutes ago Up 16 minutes registrator b9960d2dbf5e consul:0.7.0 "docker-entrypoint.sh" 17 minutes ago Up 17 minutes 0.0.0.0:8300-8302->8300-8302/tcp, 0.0.0.0:8400->8400/tcp, 0.0.0.0:8301-8302->8301-8302/udp, 0.0.0.0:8500->8500/tcp, 0.0.0.0:8600->8600/udp, 8600/tcp consul ba0778b4a1d3 openwhisk/apigateway:0.8.2 "/usr/local/bin/dumb-" 17 minutes ago Up 17 minutes 80/tcp, 8423/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->8080/tcp apigateway 743891b552b7 redis:3.2 "docker-entrypoint.sh" 17 minutes ago Up 17 minutes 0.0.0.0:6379->6379/tcp redis 49e1e0f05b68 couchdb:1.6 "tini -- /docker-entr" 18 minutes ago Up 18 minutes 0.0.0.0:5984->5984/tcp couchdb Please help what would be the issue with installing the route management package. thank you for your time and help Regards Swapnil ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
