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 issueEnvironment 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Thanks, this works!
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:
I already set the api and auth:
docker ps also looks fine