openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

error: Unable to create action and dial tcp 172.17.0.1:3233: connect: connection refused

Open thunderZH963 opened this issue 4 years ago • 6 comments

Environment details:

  • ansible/local
  • docker-20.10.12
  • ubuntu-20.04
  • aarch64

Steps to reproduce the issue:

  1. Deploy openwhisk on local(by ansible): refer to https://github.com/apache/openwhisk/tree/master/ansible.
  2. Maybe some modification has been done to make openwhisk suitable to arrch64, but finally, all images were built successfully and related containers were all running.
  3. wsk property set --apihost '172.17.0.1:3233'
  4. wsk property set --auth cat ansible/files/auth.guest
  5. create a simple 'hello.js'
  6. wsk action create hello hello.js
  7. wsk list

Outputs

'wsk action create hello hello.js' shows that,

error: Unable to create action 'hello': Put "http://172.17.0.1:3233/api/v1/namespaces/_/actions/hello?overwrite=false": dial tcp 172.17.0.1:3233: connect: connection refused

'wsk list' shows that,

wsk namespace list
error: Unable to obtain the list of available namespaces: Get "http://172.17.0.1:3233/api/v1/namespaces": dial tcp 172.17.0.1:3233: connect: connection refused

wsk property set --apihost '172.17.0.1', wsk property set --apihost '172.17.0.1:80', wsk property set --apihost '172.17.0.1:443' were all be tried, but failed.

'Docker ps' shows

image

According to my observation, all related containers are running, especially the 'nginx'. I can't find which part of my deployment has gone wrong and caused the failure of the 'wsk action create'.

I also want to know how I should configure ‘--apihost' for 'wsk' and which port to check.

thunderZH963 avatar Oct 17 '22 13:10 thunderZH963

Generally, the 3233 port is for standalone deployment. I think you need to use 80 or 443.

style95 avatar Oct 18 '22 04:10 style95

setting --apihost to local IP directly is ok.

thunderZH963 avatar Oct 22 '22 07:10 thunderZH963

I also meet this problem,could i inquire some questions?I used local ip and 172.17.0.1:3223 are not ok. Is it because I'm not using a docker image?My docker ps is empty。

immortalsman avatar Nov 10 '22 02:11 immortalsman

error: Unable to create action 'hello': The connection failed, or timed out. (HTTP status code 500)

immortalsman avatar Nov 10 '22 05:11 immortalsman

@immortalsman In this issue, he deployed a standard deployment using ansible but he tried to use an endpoint for standalone deployment. Which type of deployment are you using?

style95 avatar Nov 10 '22 06:11 style95

Hello,friends!Thank you for your answer.I use ansible.I changed it to the local ip address so there is no error message, but there is a new problem that I haven't solved yet.

This is my reference blog https://blog.csdn.net/supergxt/article/details/118114893 ------------------ 原始邮件 ------------------ 发件人: "apache/openwhisk" @.>; 发送时间: 2022年11月10日(星期四) 下午2:35 @.>; 抄送: "pony @.@.>; 主题: Re: [apache/openwhisk] error: Unable to create action and dial tcp 172.17.0.1:3233: connect: connection refused (Issue #5336)

@immortalsman In this issue, he deployed a standard deployment using ansible but he tried to use an endpoint for standalone deployment. Which type of deployment are you using?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

immortalsman avatar Nov 10 '22 10:11 immortalsman