apisix icon indicating copy to clipboard operation
apisix copied to clipboard

stream_proxy report error

Open purekeeper opened this issue 3 years ago • 3 comments

Issue description

Hi , I enable stream_proxy and listen addr set to 5061, but api6 report error :

nginx: [emerg] host not found in "map[addr:5061" of the "listen" directive in /usr/local/apisix/conf/nginx.conf:74

I think it not need host for "listen" directive,but why it need host ?

when i set a host listen 0.0.0.0:5061, and it report error

nginx: [emerg] invalid port in "map[addr:0.0.0.0:5061" of the "listen" directive in /usr/local/apisix/conf/nginx.conf:74

So what should i do for it ?

Environment

  • apisix version (cmd: apisix version): latest version
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:
  • the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
  • luarocks version, if the issue is about installation (cmd: luarocks --version):

purekeeper avatar Feb 16 '22 01:02 purekeeper

Hello there, could you please post your conf.yaml and generated nginx.conf here ?

More detail in needed.

leslie-tsang avatar Feb 16 '22 09:02 leslie-tsang

I have the same problem, and the stream proxy function cannot be used. apisix version is 2.12.1.:q when I used helm to install apisix-ingress-controller ,I got this in configmap named apisix:

stream_proxy:  
    only: false
    tcp: 
    - map[addr:127.0.0.1:13101]

It looks like the configmap generated from the helm configuration isn't right

dantegarden avatar Sep 13 '22 09:09 dantegarden

stream_proxy:
only: false tcp: - map[addr:127.0.0.1:13101]

It looks like the wrong format, and again, you need to give the reproduction steps.

tzssangglass avatar Sep 13 '22 10:09 tzssangglass

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Aug 30 '23 10:08 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Sep 13 '23 10:09 github-actions[bot]