apache / openwhisk-devtools

Development tools for building and deploying Apache OpenWhisk
https://openwhisk.apache.org/
Apache License 2.0
179 stars 126 forks source link

make quick start fails - error in db #276

Closed pepiparaskev30 closed 3 years ago

pepiparaskev30 commented 5 years ago

i tried to install openwhisk with docker compose and i faced the below creating the hello.js function ... invoking the hello-world function ... adding the function to whisk ... ok: created action hello invoking the function ... ok: invoked /_/hello, but the request has not yet finished, with id 993191cf891947d2b191cf891937d23f ok: deleted action hello ==> /home/devops/tmp/openwhisk/invoker/logs/invoker-local_logs.log <== [2019-07-30T06:27:53.018Z] [ERROR] [#tid_sid_invoker] [CouchDbRestStore] Unexpected http response code: 404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} ) [marker:database_queryView_error:5790:745] [2019-07-30T06:27:53.019Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] error on updating the blacklist: Unexpected http response code: 404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} ) [2019-07-30T06:27:53.188Z] [INFO] [#tid_sid_invokerWarmup] [DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 256 --memory 256m --memory-swap 256m --network openwhisk_default -e OW_API_HOST=https://192.168.111.128 --name wsk0_1_prewarm_nodejs6 --cap-drop NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --pids-limit 1024 --log-driver json-file openwhisk/nodejs6action:nightly (timeout: 1 minute) [marker:invoker_docker.run_start:6003] [2019-07-30T06:27:53.189Z] [INFO] [#tid_sid_invokerWarmup] [DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 256 --memory 256m --memory-swap 256m --network openwhisk_default -e OW_API_HOST=https://192.168.111.128 --name wsk0_2_prewarm_nodejs6 --cap-drop NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --pids-limit 1024 --log-driver json-file openwhisk/nodejs6action:nightly (timeout: 1 minute) [marker:invoker_docker.run_start:6005] [2019-07-30T06:27:56.507Z] [INFO] [#tid_sid_invokerWarmup] [DockerClientWithFileAccess] [marker:invoker_docker.run_finish:9323:3319] [2019-07-30T06:27:57.162Z] [INFO] [#tid_sid_invokerHealth] [InvokerReactive] [marker:invoker_activation_start:8713] [2019-07-30T06:27:57.171Z] [WARN] [#tid_sid_invokerHealth] [InvokerReactive] revision was not provided for whisk.system/invokerHealthTestAction0 [2019-07-30T06:27:57.501Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [GET] 'local_whisks' finding document: 'id: whisk.system/invokerHealthTestAction0' [marker:database_getDocument_start:9046] [2019-07-30T06:27:57.507Z] [INFO] [#tid_sid_invokerWarmup] [DockerClientWithFileAccess] [marker:invoker_docker.run_finish:10322:4317] [2019-07-30T06:27:57.532Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [marker:database_getDocument_finish:9082:36] [2019-07-30T06:27:57.594Z] [ERROR] [#tid_sid_invokerHealth] [InvokerReactive] activation event was not sent: java.lang.IllegalStateException: key 'kind' does not exist [2019-07-30T06:27:57.617Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [PUT] 'local_activations' saving document: 'id: whisk.system/6b0bcc1e87cc4c978bcc1e87cc4c9754, rev: null' [marker:database_saveDocument_start:9168] [2019-07-30T06:27:57.621Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore] 'local_activations' saving 1 documents [marker:database_saveDocumentBulk_start:10437] [2019-07-30T06:27:57.707Z] [INFO] [#tid_sid_invokerHealth] [InvokerReactive] posted completion of activation 6b0bcc1e87cc4c978bcc1e87cc4c9754 [2019-07-30T06:27:57.769Z] [INFO] [#tid_sid_invokerHealth] [InvokerReactive] [marker:invoker_activation_start:9319] [2019-07-30T06:27:57.770Z] [WARN] [#tid_sid_invokerHealth] [InvokerReactive] revision was not provided for whisk.system/invokerHealthTestAction0 [2019-07-30T06:27:57.770Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [GET] 'local_whisks' finding document: 'id: whisk.system/invokerHealthTestAction0' [marker:database_getDocument_start:9320] [2019-07-30T06:27:57.797Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [marker:database_getDocument_finish:9347:27] [2019-07-30T06:27:57.804Z] [ERROR] [#tid_sid_invokerHealth] [InvokerReactive] activation event was not sent: java.lang.IllegalStateException: key 'kind' does not exist [2019-07-30T06:27:57.808Z] [INFO] [#tid_sid_invokerHealth] [CouchDbRestStore] [PUT] 'local_activations' saving document: 'id: whisk.system/3c644249e1654c84a44249e1653c8403, rev: null' [marker:database_saveDocument_start:9358] [2019-07-30T06:27:57.808Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore] 'local_activations' saving 1 documents [marker:database_saveDocumentBulk_start:10625] [2019-07-30T06:27:57.817Z] [ERROR] [#tid_sid_dbBatcher] [CouchDbRestStore] 'local_activations' failed to put documents, http status: '404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} )' [marker:database_saveDocumentBulk_error:10631:194] [2019-07-30T06:27:57.817Z] [INFO] [#tid_sid_invokerHealth] [InvokerReactive] posted completion of activation 3c644249e1654c84a44249e1653c8403 [2019-07-30T06:27:57.818Z] [ERROR] [#tid_sid_invokerHealth] [ArtifactActivationStore] failed to record activation 6b0bcc1e87cc4c978bcc1e87cc4c9754 with error Unexpected http response code: 404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} ) [2019-07-30T06:27:57.831Z] [ERROR] [#tid_sid_dbBatcher] [CouchDbRestStore] 'local_activations' failed to put documents, http status: '404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} )' [marker:database_saveDocumentBulk_error:10648:23] [2019-07-30T06:27:57.831Z] [ERROR] [#tid_sid_invokerHealth] [ArtifactActivationStore] failed to record activation 3c644249e1654c84a44249e1653c8403 with error Unexpected http response code: 404 Not Found (details: {"error":"not_found","reason":"Database does not exist."} ) [2019-07-30T06:32:52.237Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:305053] [2019-07-30T06:32:52.389Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:305206:153] [2019-07-30T06:32:52.390Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T06:33:32.128Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [InvokerReactive] [marker:invoker_activation_start:113] [2019-07-30T06:33:32.220Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [WhiskAction] [GET] serving from datastore: CacheKey(guest/hello) [marker:database_cacheMiss_counter:205] [2019-07-30T06:33:32.220Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [CouchDbRestStore] [GET] 'local_whisks' finding document: 'id: guest/hello, rev: 1-c39881c48581641ca181d37e33a91629' [marker:database_getDocument_start:206] [2019-07-30T06:33:32.272Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [CouchDbRestStore] [marker:database_getDocument_finish:257:51] [2019-07-30T06:33:32.336Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [WhiskAction] write initiated on existing cache entry, invalidating CacheKey(guest/hello), tid XXXCqKpkitehykLrLrCNur31cu8HvhKG, state WriteInProgress [2019-07-30T06:33:32.342Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [WhiskAction] write all done, caching CacheKey(guest/hello) Cached [2019-07-30T06:33:32.365Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [DockerClientWithFileAccess] running /usr/bin/docker run -d --cpu-shares 256 --memory 256m --memory-swap 256m --network openwhisk_default -e __OW_API_HOST=https://192.168.111.128 --name wsk0_3_guest_hello --cap-drop NET_RAW --cap-drop NET_ADMIN --ulimit nofile=1024:1024 --pids-limit 1024 --log-driver json-file openwhisk/action-nodejs-v10:nightly (timeout: 1 minute) [marker:invoker_docker.run_start:351] [2019-07-30T06:33:32.367Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [ContainerPool] containerStart containerState: cold container: None activations: 1 of max 1 action: hello namespace: guest activationId: 91b0ea8465e94ce2b0ea8465e94ce2b1 [marker:invoker_containerStart.cold_counter:353] [2019-07-30T06:34:32.395Z] [ERROR] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [DockerClientWithFileAccess] info: command was terminated, took longer than 1 minute, code: 143 (terminated by signal SIGTERM), stdout: , stderr: Unable to find image 'openwhisk/action-nodejs-v10:nightly' locally nightly: Pulling from openwhisk/action-nodejs-v10 c5e155d5a1d1: Pulling fs layer 221d80d00ae9: Pulling fs layer 4250b3117dca: Pulling fs layer 3b7ca19181b2: Pulling fs layer 425d7b2a5bcc: Pulling fs layer 69df12c70287: Pulling fs layer ad53476a61f2: Pulling fs layer 204bb8bac4a1: Pulling fs layer 1891112c52f1: Pulling fs layer fe6b742cd989: Pulling fs layer 4deb689367e0: Pulling fs layer 616c7559716b: Pulling fs layer 45af35197726: Pulling fs layer 204bb8bac4a1: Waiting 1891112c52f1: Waiting fe6b742cd989: Waiting 4deb689367e0: Waiting 616c7559716b: Waiting 45af35197726: Waiting 3b7ca19181b2: Waiting 425d7b2a5bcc: Waiting 69df12c70287: Waiting ad53476a61f2: Waiting 4250b3117dca: Verifying Checksum 4250b3117dca: Download complete 221d80d00ae9: Verifying Checksum 221d80d00ae9: Download complete [marker:invoker_docker.run_error:60381:60030] [2019-07-30T06:34:32.408Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [CouchDbRestStore] [PUT] 'local_activations' saving document: 'id: guest/91b0ea8465e94ce2b0ea8465e94ce2b1, rev: null' [marker:database_saveDocument_start:60394] [2019-07-30T06:34:32.409Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore] 'local_activations' saving 1 documents [marker:database_saveDocumentBulk_start:405225] [2019-07-30T06:34:32.412Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [InvokerReactive] posted completion of activation 91b0ea8465e94ce2b0ea8465e94ce2b1 [2019-07-30T06:34:32.460Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore] [marker:database_saveDocumentBulk_finish:405277:51] [2019-07-30T06:34:32.475Z] [INFO] [#tid_XXXCqKpkitehykLrLrCNur31cu8HvhKG] [CouchDbRestStore] [marker:database_saveDocument_finish:60461:67] [2019-07-30T06:37:52.257Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:605073] [2019-07-30T06:37:52.285Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:605102:29] [2019-07-30T06:37:52.286Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T06:42:52.287Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:905103] [2019-07-30T06:42:52.317Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:905134:31] [2019-07-30T06:42:52.317Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T06:47:52.307Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:1205123] [2019-07-30T06:47:52.350Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:1205167:43] [2019-07-30T06:47:52.350Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T06:52:52.328Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:1505144] [2019-07-30T06:52:52.358Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:1505175:31] [2019-07-30T06:52:52.358Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T06:57:52.347Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:1805163] [2019-07-30T06:57:52.375Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:1805192:29] [2019-07-30T06:57:52.376Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T07:02:52.378Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:2105193] [2019-07-30T07:02:52.476Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [marker:database_queryView_finish:2105293:99] [2019-07-30T07:02:52.477Z] [INFO] [#tid_sid_unknown] [InvokerReactive] updated blacklist to 0 entries [2019-07-30T07:07:52.398Z] [INFO] [#tid_sid_invoker] [CouchDbRestStore] [QUERY] 'local_subjects' searching 'namespaceThrottlings/blockedNamespaces [marker:database_queryView_start:2405214] [2019-07-30T07:07:52.436Z] [INFO] [#tid_sid_invoker] [CouchDb...

cesardraw2 commented 5 years ago

Hello! Could you find the solution?

pepiparaskev30 commented 5 years ago

Yes

On Wed, 28 Aug 2019 at 16:39, cesardraw2 notifications@github.com wrote:

Hello! Could you find the solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apache/openwhisk-devtools/issues/276?email_source=notifications&email_token=ALZANHAYHY2OUKZW5RYLOX3QGZ5Y3A5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5LE2NA#issuecomment-525749556, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHE2Z6HJI62YRBFTWS3QGZ5Y3ANCNFSM4IHZR2FQ .

-- Εστάλη από το Gmail για κινητά

freebirdie123 commented 5 years ago

whats the solution for this? i am getting the same error. thanks

pepiparaskev30 commented 5 years ago

Try this: docker pull openwhisk/action-nodejs-v10:nightly

On 30 Aug 2019, at 22:12, Pepi Paraskevoulakou pepi.paraskevoulakou@gmail.com wrote:

You should pull docker

On Fri, 30 Aug 2019 at 22:08, killgame <notifications@github.com mailto:notifications@github.com> wrote: whats the solution for this? i am getting the same error. thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apache/openwhisk-devtools/issues/276?email_source=notifications&email_token=ALZANHEKIKN6W25J45UHDMTQHFV3JA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SQRXI#issuecomment-526715101, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHEBAGSYAUNEAOWF4CTQHFV3JANCNFSM4IHZR2FQ.

freebirdie123 commented 5 years ago

Try this: docker pull openwhisk/action-nodejs-v10:nightly On 30 Aug 2019, at 22:12, Pepi Paraskevoulakou @.> wrote: You should pull docker On Fri, 30 Aug 2019 at 22:08, killgame @. @.***>> wrote: whats the solution for this? i am getting the same error. thanks — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#276?email_source=notifications&email_token=ALZANHEKIKN6W25J45UHDMTQHFV3JA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SQRXI#issuecomment-526715101>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHEBAGSYAUNEAOWF4CTQHFV3JANCNFSM4IHZR2FQ.

thank you so much, this worked.

pepiparaskev30 commented 5 years ago

Welcome 👍🏽

On Sat, 31 Aug 2019 at 01:39, killgame notifications@github.com wrote:

tha

Try this: docker pull openwhisk/action-nodejs-v10:nightly … <#m1245655232850117109> On 30 Aug 2019, at 22:12, Pepi Paraskevoulakou @.> wrote: You should pull docker On Fri, 30 Aug 2019 at 22:08, killgame @. @.***>> wrote: whats the solution for this? i am getting the same error. thanks — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#276 https://github.com/apache/openwhisk-devtools/issues/276?email_source=notifications&email_token=ALZANHEKIKN6W25J45UHDMTQHFV3JA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SQRXI#issuecomment-526715101>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHEBAGSYAUNEAOWF4CTQHFV3JANCNFSM4IHZR2FQ .

thank you so much, this worked.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apache/openwhisk-devtools/issues/276?email_source=notifications&email_token=ALZANHBRFGIRVSDQ5TEK7Q3QHGOQTA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5S57RY#issuecomment-526770119, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHB3D5XFGURFU5SDIWTQHGOQTANCNFSM4IHZR2FQ .

-- Εστάλη από το Gmail για κινητά

colo76 commented 4 years ago

I pulled the imaged as suggested

docker pull openwhisk/action-nodejs-v10:nightly

and then I run this: make make quick-start

It seems to work but I had to redeploy the hello.js function if not I get the same error.

Am I missing anything?

Thaniks in advance

pepiparaskev30 commented 4 years ago

Hello, the first think you should do is to pull the specific container as you did and then try to run "make quick start" and it supposed it must play. If not, then something else you must configure due to the fact that the apache foundation removed the incubator reference and maybe changed other issues.

Στις Παρ, 15 Νοε 2019 στις 3:29 μ.μ., ο/η Martin notifications@github.com έγραψε:

I pulled the imaged as suggested

docker pull openwhisk/action-nodejs-v10:nightly

and then I run this: make make quick-start

It seems to work but I had to redeploy the hello.js function if not I get the same error.

Am I missing anything?

Thaniks in advance

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apache/openwhisk-devtools/issues/276?email_source=notifications&email_token=ALZANHAWDTJCPGONLNGGHMDQT2P4VA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEFNPNA#issuecomment-554358708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALZANHHN7P6ZHAZWXJE7KWLQT2P4VANCNFSM4IHZR2FQ .

lei-houjyu commented 4 years ago

Try this: docker pull openwhisk/action-nodejs-v10:nightly On 30 Aug 2019, at 22:12, Pepi Paraskevoulakou @.> wrote: You should pull docker On Fri, 30 Aug 2019 at 22:08, killgame @. @.***>> wrote: whats the solution for this? i am getting the same error. thanks — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#276?email_source=notifications&email_token=ALZANHEKIKN6W25J45UHDMTQHFV3JA5CNFSM4IHZR2F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5SQRXI#issuecomment-526715101>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALZANHEBAGSYAUNEAOWF4CTQHFV3JANCNFSM4IHZR2FQ.

Thanks. This works for me!