You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/10/24 04:16:23 UTC

[GitHub] [openwhisk] jinlang226 opened a new issue, #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

jinlang226 opened a new issue, #5341:
URL: https://github.com/apache/openwhisk/issues/5341

   ## 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:
   
   ```
   action created successfully
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] jinlang226 commented on issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
jinlang226 commented on issue #5341:
URL: https://github.com/apache/openwhisk/issues/5341#issuecomment-1291619550

   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)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] jinlang226 commented on issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
jinlang226 commented on issue #5341:
URL: https://github.com/apache/openwhisk/issues/5341#issuecomment-1289415936

   Thanks, this works!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] style95 commented on issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #5341:
URL: https://github.com/apache/openwhisk/issues/5341#issuecomment-1288454533

   You can change the `config_root_dir` and `whisk_logs_dir` if you want to keep logs as well.
   https://github.com/apache/openwhisk/blob/master/ansible/environments/local/group_vars/all#L19


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] jinlang226 closed issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
jinlang226 closed issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)
URL: https://github.com/apache/openwhisk/issues/5341


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] jinlang226 commented on issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
jinlang226 commented on issue #5341:
URL: https://github.com/apache/openwhisk/issues/5341#issuecomment-1288433889

   I removed all containers and went through all ansible setup processes, then I can create the action. 
   
   Then, I restart the machine again, I cannot create the action...
   
   But, all container is still here: 
   
   ```
   jinlang@node0:~$ docker ps
   CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS         PORTS                                                                                                 NAMES
   dba52727de9d   openwhisk/action-nodejs-v14:nightly   "docker-entrypoint.s…"   4 minutes ago    Up 4 minutes   8080/tcp                                                                                              wsk00_1_prewarm_nodejs14
   8833f910983a   openwhisk/action-nodejs-v14:nightly   "docker-entrypoint.s…"   4 minutes ago    Up 4 minutes   8080/tcp                                                                                              wsk00_2_prewarm_nodejs14
   cb72edfea73f   openwhisk/apigateway:nightly          "/usr/bin/dumb-init …"   14 minutes ago   Up 5 minutes   80/tcp, 8423/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:9001->8080/tcp                                      apigateway
   760fbea0a925   redis:4.0                             "docker-entrypoint.s…"   15 minutes ago   Up 5 minutes   0.0.0.0:6379->6379/tcp                                                                                redis
   c7d50ddd6f79   nginx:1.21.1                          "/docker-entrypoint.…"   16 minutes ago   Up 5 minutes   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp                                                              nginx
   3b3d32d34a84   whisk/invoker:latest                  "/bin/sh -c 'exec /i…"   16 minutes ago   Up 5 minutes   0.0.0.0:17000->17000/tcp, 0.0.0.0:18000->18000/tcp, 0.0.0.0:12001->8080/tcp                           invoker0
   7723f0c88291   whisk/controller:latest               "/bin/sh -c 'exec /i…"   25 minutes ago   Up 5 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
   e2a346f0c3e9   wurstmeister/kafka:2.13-2.7.0         "start-kafka.sh"         25 minutes ago   Up 4 minutes   0.0.0.0:9072->9072/tcp, 0.0.0.0:9093->9093/tcp                                                        kafka0
   a799380f4f4d   zookeeper:3.4                         "/docker-entrypoint.…"   26 minutes ago   Up 5 minutes   0.0.0.0:2181->2181/tcp, 0.0.0.0:2888->2888/tcp, 0.0.0.0:3888->3888/tcp           
   ```
   
   @node0:~$ docker restart $(docker ps -q)
   dba52727de9d
   8833f910983a
   cb72edfea73f
   760fbea0a925
   c7d50ddd6f79
   3b3d32d34a84
   7723f0c88291
   e2a346f0c3e9
   a799380f4f4d
   
   @node0:~$ wsk -i action create hello /users/jinlang/openwhisk/hello.js
   error: Unable to create action 'hello': The connection failed, or timed out. (HTTP status code 502)
   Run 'wsk --help' for usage.
   
   Is there an easy way to create an action after restarting the machine?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] style95 commented on issue #5341: Unable to obtain the list of entities for namespace 'default': The resource requires authentication, which was not supplied with the request (code d465c13bac106c2d6e895b6b67e168d0)

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #5341:
URL: https://github.com/apache/openwhisk/issues/5341#issuecomment-1288414708

   Are all containers running?
   Generally, if you restart the machine, the configuration directory is removed with the default setup(as the default setup uses the `/tmp` directory) and it hinders some containers from running.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org