Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed to retrieve APIs: NOAUTH Authentication required #395

Open
SidMorad opened this issue Jul 14, 2022 · 0 comments
Open

Error: Failed to retrieve APIs: NOAUTH Authentication required #395

SidMorad opened this issue Jul 14, 2022 · 0 comments

Comments

@SidMorad
Copy link

SidMorad commented Jul 14, 2022

wsk api list
output:
error: Unable to obtain the API list: Unable to obtain API(s) from the API Gateway (status code 500): {"status":500,"message":"Error: Failed to retrieve APIs: NOAUTH Authentication required."}

logs:

2022/07/14 09:24:17 Executing sync cmd: echo ''
sync stdout | ''
2022/07/14 09:24:17 done
[2022-07-14T09:24:21.790Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] GET /api/v1/web/whisk.system/apimgmt/getApi.http accesstoken=DUMMY+TOKEN&limit=30&skip=0&spaceguid=779c46b1-71f6-4ed5-8c54-816aa4f8c502
[2022-07-14T09:24:21.802Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [BasicAuthenticationDirective] authenticate: 779c46b1-71f6-4ed5-8c54-816aa4f8c502
[2022-07-14T09:24:21.807Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [Identity] [GET] serving from cache: CacheKey(779c46b1-71f6-4ed5-8c54-816aa4f8c502) [marker:database_cacheHit_counter:18]
[2022-07-14T09:24:21.811Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [BasicAuthenticationDirective] authenticate: 779c46b1-71f6-4ed5-8c54-816aa4f8c502
[2022-07-14T09:24:21.818Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [Identity] [GET] serving from cache: CacheKey(779c46b1-71f6-4ed5-8c54-816aa4f8c502) [marker:database_cacheHit_counter:29]
[2022-07-14T09:24:21.834Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [Identity] [GET] serving from cache: CacheKey(whisk.system) [marker:database_cacheHit_counter:43]
[2022-07-14T09:24:21.843Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WhiskPackage] [GET] serving from cache: CacheKey(whisk.system/apimgmt) [marker:database_cacheHit_counter:52]
[2022-07-14T09:24:21.846Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WhiskActionMetaData] [GET] serving from cache: CacheKey(whisk.system/apimgmt/getApi) [marker:database_cacheHit_counter:57]
[2022-07-14T09:24:21.855Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WhiskPackage] [GET] serving from cache: CacheKey(whisk.system/apimgmt) [marker:database_cacheHit_counter:66]
[2022-07-14T09:24:21.867Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WebActionsApi]  [marker:controller_blockingActivation_start:77]
[2022-07-14T09:24:21.872Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WebActionsApi] action activation id: 346efdd9f7274cabaefdd9f727fcabf2 [marker:controller_loadbalancer_start:80]
[2022-07-14T09:24:21.881Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ShardingContainerPoolBalancer] scheduled activation 346efdd9f7274cabaefdd9f727fcabf2, action 'whisk.system/apimgmt/[email protected]' (managed), ns 'whisk.system', mem limit 256 MB (std), time limit 60000 ms (std) to invoker0/wsk-invoker-0
[2022-07-14T09:24:21.884Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ShardingContainerPoolBalancer] posting topic 'invoker0' with activation id '346efdd9f7274cabaefdd9f727fcabf2' [marker:controller_kafka_start:95]
[2022-07-14T09:24:21.915Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ShardingContainerPoolBalancer] posted to invoker0[0][20] [marker:controller_kafka_finish:126:31]
[2022-07-14T09:24:21.920Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WebActionsApi]  [marker:controller_loadbalancer_finish:127:44]
[2022-07-14T09:24:21.935Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [InvokerReactive]  [marker:invoker_activation_start:146]
[2022-07-14T09:24:21.939Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WhiskAction] [GET] serving from cache: CacheKey(whisk.system/apimgmt/getApi) [marker:database_cacheHit_counter:150]
[2022-07-14T09:24:21.948Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ContainerPool] containerStart containerState: warmed container: Some(ContainerId(wskwsk-invoker-00-1-prewarm-nodejs10)) activations: 1 of max 1 action: getApi namespace: whisk.system activationId: 346efdd9f7274cabaefdd9f727fcabf2 [marker:invoker_containerStart.warmed_counter:153]
[2022-07-14T09:24:21.965Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [KubernetesContainer] sending arguments to /whisk.system/apimgmt/getApi at ContainerId(wskwsk-invoker-00-1-prewarm-nodejs10) ContainerAddress(10.1.146.75,8080) [marker:invoker_activationRun_start:174]
[2022-07-14T09:24:22.105Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [KubernetesContainer] running result: ok [marker:invoker_activationRun_finish:316:138]
[2022-07-14T09:24:22.118Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [CouchDbRestStore] [PUT] 'test_activations' saving document: 'id: whisk.system/346efdd9f7274cabaefdd9f727fcabf2, rev: null' [marker:database_saveDocument_start:325]
[2022-07-14T09:24:22.122Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore] 'test_activations' saving 1 documents [marker:database_saveDocumentBulk_start:1545202]
[2022-07-14T09:24:22.141Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [MessagingActiveAck] posted combined of activation 346efdd9f7274cabaefdd9f727fcabf2
[2022-07-14T09:24:22.164Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ShardingContainerPoolBalancer] received completion ack for '346efdd9f7274cabaefdd9f727fcabf2', system error=false
[2022-07-14T09:24:22.169Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [ShardingContainerPoolBalancer] received result ack for '346efdd9f7274cabaefdd9f727fcabf2'
[2022-07-14T09:24:22.178Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [WebActionsApi]  [marker:controller_blockingActivation_finish:387:306]
[2022-07-14T09:24:22.203Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [BasicHttpService] [marker:http_get.502_counter:414:414]
10.1.146.75 - remote_user="-" [14/Jul/2022:09:24:22 +0000] request_method="GET" request_uri="/v2/779c46b1-71f6-4ed5-8c54-816aa4f8c502/apis?limit=30&skip=0" request_protocol="HTTP/1.1" status=500 bbs=102 rl=326 rt=0.020 hr="-" ua="OpenWhisk-apimgmt/1.0.0 OpenWhisk-CLI/1.0 (not set) darwin arm64 OpenWhisk-CLI/1.0 (not set) darwin arm64" xfwdf="-"
[2022-07-14T09:24:22.487Z] [INFO] [#tid_sid_dbBatcher] [CouchDbRestStore]  [marker:database_saveDocumentBulk_finish:1545573:371]
[2022-07-14T09:24:22.494Z] [INFO] [#tid_0eb8560066f575bc18f2c9677a94275b] [CouchDbRestStore]  [marker:database_saveDocument_finish:705:380]

OpenWhisk is installed with helm chart and all other parts seems to work fine, except apigateway.

Please let me know if I could provide more information to narrow down root of the issue?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant