question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

See original GitHub issue

Environment details:

  • ubuntu 18
  • Docker version 20.10.20, build 9fdeb9c

Steps to reproduce the issue:

I successfully installed openWhisk based on the tutorial https://github.com/apache/openwhisk/blob/master/tools/ubuntu-setup/README.md

Basically: ansible-playbook -i environments/$ENVIRONMENT setup.yml ansible-playbook -i environments/$ENVIRONMENT prereq.yml cd <openwhisk_home> ./gradlew distDocker 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 openwhisk.yml ansible-playbook -i environments/$ENVIRONMENT postdeploy.yml ansible-playbook -i environments/$ENVIRONMENT apigateway.yml ansible-playbook -i environments/$ENVIRONMENT routemgmt.yml wsk property set --apihost ‘172.17.0.1’ ./bin/wsk property set --auth cat ansible/files/auth.guest

When I frist finished the set up, I can create and invoke the action. However, after I restart my machine, I cannot create the action, and I get the following error:

root@node0: wsk property set --auth ‘23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP’ ok: whisk auth set. Run ‘wsk property get --auth’ to see the new value.

root@node0: wsk property get --auth whisk auth 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP

root@node0: wsk -i action create hello.js error: Unable to create action ‘hello’: The resource requires authentication, which was not supplied with the request (code 9e663012e4ad0b0c4bf04c40211546b6) Run ‘wsk --help’ for usage.

Provide the expected results and outputs:

action created successfully

Provide the actual results and outputs:

error: Unable to create action 'hello': The resource requires authentication, which was not supplied with the request (code 9e663012e4ad0b0c4bf04c40211546b6)
Run 'wsk --help' for usage.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jinlang226commented, Oct 24, 2022

Thanks, this works!

0reactions
jinlang226commented, Oct 26, 2022

Hi, I encountered a new error. I already redirected the log and config_root_dir. Everything was fine. However, when I started my machine again, I got a new error when creating an action, which I have not seen before.

The output is:

root@node0:/users/xxx/openwhisk# wsk -i action create hello4 /users/xxx/openwhisk/hello.js
error: Unable to create action 'hello4': The connection failed, or timed out. (HTTP status code 502)

I already set the api and auth:

root@node0:/users//openwhisk# wsk -i property get 
whisk API host          http://172.17.0.1
whisk auth              23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP
whisk namespace         _
client cert
Client key
whisk API version       v1
whisk CLI version       2021-03-26T01:02:38.401+0000
whisk API build         Unknown
whisk API build number  Unknown
error: Unable to obtain API build information: The connection failed, or timed out. (HTTP status code 502)

docker ps also looks fine

root@node0:/users/xxx/openwhisk# docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS          PORTS                                                                                                 NAMES
06305e942738   openwhisk/action-nodejs-v14:nightly   "docker-entrypoint.s…"   37 seconds ago   Up 31 seconds   8080/tcp                                                                                              wsk00_3_prewarm_nodejs14
80f2aa2aa666   openwhisk/apigateway:nightly          "/usr/bin/dumb-init …"   38 hours ago     Up 11 minutes   80/tcp, 8423/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->8080/tcp                                      apigateway
e2b88c128863   redis:4.0                             "docker-entrypoint.s…"   38 hours ago     Up 11 minutes   0.0.0.0:6379->6379/tcp                                                                                redis
a64794d24ccc   nginx:1.21.1                          "/docker-entrypoint.…"   38 hours ago     Up 11 minutes   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp                                                              nginx
801ab29c99e4   whisk/invoker:latest                  "/bin/sh -c 'exec /i…"   38 hours ago     Up 11 minutes   0.0.0.0:17000->17000/tcp, 0.0.0.0:18000->18000/tcp, 0.0.0.0:12001->8080/tcp                           invoker0
8b39c1e422b5   whisk/controller:latest               "/bin/sh -c 'exec /i…"   38 hours ago     Up 11 minutes   0.0.0.0:15000->15000/tcp, 0.0.0.0:16000->16000/tcp, 0.0.0.0:8000->2551/tcp, 0.0.0.0:10001->8080/tcp   controller0
e8864c6c1dbb   wurstmeister/kafka:2.13-2.7.0         "start-kafka.sh"         38 hours ago     Up 11 minutes   0.0.0.0:9072->9072/tcp, 0.0.0.0:9093->9093/tcp                                                        kafka0
4aa59974472a   zookeeper:3.4                         "/docker-entrypoint.…"   38 hours ago     Up 11 minutes   0.0.0.0:2181->2181/tcp, 0.0.0.0:2888->2888/tcp, 0.0.0.0:3888->3888/tcp                                zookeeper0
Read more comments on GitHub >

github_iconTop Results From Across the Web

Created openwhisk action but shows in guest as private java ...
As you have a local build, guest is your default namespace name. The package is default (aka _ ) as you didn't specify...
Read more >
Chapter 4. Using OpenWhisk Actions - O'Reilly
The first method is the authenticated REST API. Actually, this is what the CLI was doing on your behalf. The REST API allows...
Read more >
How Cloud Functions works - IBM Cloud Docs
Namespaces contain Cloud Functions entities, such as actions and triggers, and belong to a resource group. You can let users access your Cloud...
Read more >
Chapter 7. Configuring identity providers OpenShift Container ...
OpenShift Container Platform user names containing / , : , and % are not supported. ... If none of the listed attribute have...
Read more >
Creating Actions - Adobe Developer
For your code to execute as an action on Adobe I/O Runtime, your code ... you'd get a listing for the names of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found