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

和nginx_upstream_check_module冲突 #298

Open
hiqumin opened this issue Jul 29, 2024 · 1 comment
Open

和nginx_upstream_check_module冲突 #298

hiqumin opened this issue Jul 29, 2024 · 1 comment

Comments

@hiqumin
Copy link

hiqumin commented Jul 29, 2024

nginx1.20.1 添加添加nginx-module-vts和nginx_upstream_check_module时,nginx-module-vts报错会报错:
nginx-module-vts-0.2.1/src/ngx_http_vhost_traffic_status_display_json.c: In function ‘ngx_http_vhost_traffic_status_display_set_upstream_group’:
nginx-module-vts-0.2.1/src/ngx_http_vhost_traffic_status_display_json.c:604:59: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’
if (ngx_http_upstream_check_peer_down(peer->check_index)) {

nginx-module-vts版本:0.2.1和0.2.2;
nginx_upstream_check_module版本:0.3.2和0.4.0

@u5surf
Copy link
Collaborator

u5surf commented Oct 28, 2024

@hiqumin Hi, Sorry for late, Have you patched following that?
I encountered the same error without patching that. please try this.

- name: 'patch upstream_check'
working-directory: nginx
run: |
patch -p1 < /home/runner/work/nginx-module-vts/nginx-module-vts/nginx_upstream_check/check_1.20.1+.patch

cd nginx
patch -p1 < nginx_upstream_check/check_1.20.1+.patch 

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

No branches or pull requests

2 participants