Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug:使用四层代理后,一直报错 [error] 53#53: *2206 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/stream/router/ip_port.lua:46: attempt to index field 'server_addr_matcher' (a nil value) #11259

Closed
dilinliu1116 opened this issue May 16, 2024 · 1 comment · Fixed by #11269

Comments

@dilinliu1116
Copy link

Current Behavior

版本:3.8.0-debian
上游配置:
image
image
同样的配置下版本3.5.6-debian的一切正常可以访问。3.8.0-debian的就一直报这个错

Expected Behavior

No response

Error Logs

stack traceback:
coroutine 0:
/usr/local/apisix/apisix/stream/router/ip_port.lua: in function 'match_addrs'
/usr/local/apisix/apisix/stream/router/ip_port.lua:178: in function 'match'
/usr/local/apisix/apisix/init.lua:1045: in function 'stream_preread_phase'
preread_by_lua(nginx.conf:104):2: in main chunk while prereading client data, client: 192.168.10.130, server: 192.168.10.130:3000
2024/05/16 17:08:31 [error] 53#53: *2206 lua entry thread aborted: runtime error: /usr/local/apisix/apisix/stream/router/ip_port.lua:46: attempt to index field 'server_addr_matcher' (a nil value)

Steps to Reproduce

1.使用docker-compose运行apisix
2.进入配置文件改 proxy_mode: http&stream
stream_proxy: # TCP/UDP L4 proxy
tcp:
- addr: 3000
3.重启apisix容器
4.使用curl将上游代理信息打进apisix
5.访问http,报错

Environment

  • APISIX version :3.8.0-debian
  • docker部署
@hanqingwu
Copy link
Contributor

我使用 3.8.0 的测试没有重现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants