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] Http Alert bug:When an http alarm is triggered, requests other than those on ports 80 cannot be sent #16431

Closed
3 tasks done
3043442162 opened this issue Aug 9, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@3043442162
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

My English is not good, I added the Chinese description

I found the following issues while using the http alarm, the http alarm from dolphinScheduler did not seem to be able to send requests to ports other than 80. I configured port 8008 in the URL attribute of the http alarm, but this configuration did not seem to take effect. I was prompted by dolphinScheduler that port 80 of the host timed out.
我在使用http告警过程中发现如下问题,dolphinScheduler的http告警似乎无法将请求发送到80以外的端口,我在http告警中的URL属性中配置了8008端口,但是这个配置似乎没有生效,dolphinScheduler提示我主机的80端口连接超时。

My dolphinScheduler configuration:
我的dolphinScheduler告警配置
image

My dolphinScheduler3.1.2 alert-server log:
image

My springboot application configuration is used to receive the above dolphinScheduler trigger http alarms
我springboot应用配置,用于接收上述dolphinScheduler触发http告警
image
image

I'm pretty sure I turned off the firewall, and the alarm group and alarm policy configuration are fine, and I'd like the community's help
我很肯定我关闭了防火墙,并且告警组和告警策略配置没有问题,我希望得到社区的帮助

What you expected to happen

My springboot service should have received an http request from the dolphinScheduler, but it did no
我的springboot服务应该接收到来自dolphinScheduler的http请求,但是并没有

How to reproduce

Repeat step: Configure the http alarm, define web port 8008 in the url, start a springboot service with port 8008 and ensure that the url is the same, and use dolphinScheduler to trigger the alarm.
重现步骤:配置http告警,并在url中定义web端口为8008,启动一个端口为8008的springboot服务,并保证二者url相同,用dolphinScheduler触发告警

Anything else

This issue arises every time I trigger the http alarm task on dolphinScheduler 3.1.2
我每次在dolphinScheduler 3.1.2 上触发告http警任务都会出现这个问题

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@3043442162 3043442162 added bug Something isn't working Waiting for reply Waiting for reply labels Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

My English is not good, I added the Chinese description

I found the following issues while using the http alarm, the http alarm from dolphinScheduler did not seem to be able to send requests to ports other than 80. I configured port 8008 in the URL attribute of the http alarm, but this configuration did not seem to take effect. I was prompted by dolphinScheduler that port 80 of the host timed out.
I found the following problem when using http alarms. The http alarm of dolphinScheduler seems to be unable to send requests to ports other than 80. I configured port 8008 in the URL attribute in the http alarm, but this configuration does not seem to take effect. dolphinScheduler prompts me The host's port 80 connection timed out.

My dolphinScheduler configuration:
My dolphinScheduler alarm configuration
image

My dolphinScheduler3.1.2 alert-server log:
image

My springboot application configuration is used to receive the above dolphinScheduler trigger http alarms
My springboot application is configured to receive http alarms triggered by the above dolphinScheduler
image
image

I'm pretty sure I turned off the firewall, and the alarm group and alarm policy configuration are fine, and I'd like the community's help
I'm pretty sure I've turned off the firewall and there's nothing wrong with the alert group and alert policy configuration, I'd love some help from the community

What you expected to happen

My springboot service should have received an http request from the dolphinScheduler, but it did no
My springboot service should receive the http request from dolphinScheduler, but it doesn't

How to reproduce

Repeat step: Configure the http alarm, define web port 8008 in the url, start a springboot service with port 8008 and ensure that the url is the same, and use dolphinScheduler to trigger the alarm.
Steps to reproduce: Configure http alarms, define the web port in the URL as 8008, start a springboot service with port 8008, and ensure that the two URLs are the same, and use dolphinScheduler to trigger the alarm

Anything else

This issue arises every time I trigger the http alarm task on dolphinScheduler 3.1.2
This problem occurs every time I trigger the http alarm task on dolphinScheduler 3.1.2

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@3043442162
Copy link
Author

I tried to change the 8008 for both to 80, and I successfully received the request
我尝试过将二者的8008都换成80,我成功收到了请求

@SbloodyS SbloodyS added need more information and removed Waiting for reply Waiting for reply labels Aug 10, 2024
@SbloodyS
Copy link
Member

Please try using curl in ds alert server's host to check whether the request is successful. @3043442162

@3043442162
Copy link
Author

3043442162 commented Aug 10, 2024 via email

@SbloodyS
Copy link
Member

Just test the url through curl on the alert server's host machine to see if it can be reached properly.

@3043442162
Copy link
Author

3043442162 commented Aug 13, 2024 via email

@SbloodyS SbloodyS changed the title Http Alert bug:When an http alarm is triggered, requests other than those on ports 80 cannot be sent [Bug] Http Alert bug:When an http alarm is triggered, requests other than those on ports 80 cannot be sent Aug 15, 2024
@SbloodyS
Copy link
Member

SbloodyS commented Aug 15, 2024

At present, I have not found the specific reason in 3.1.2, but the current http alarm plugin is not useful, I will reconstruct it in the near future, you can pay attention to the progress of #16469

@3043442162
Copy link
Author

3043442162 commented Aug 16, 2024 via email

@SbloodyS
Copy link
Member

SbloodyS commented Aug 16, 2024

What do you mean by If I want to know about the ds alarm section, where should I look for information?

Do you want to know where the http alarm code is? If so, you can start from here org.apache.dolphinscheduler.plugin.alert.http.HttpSender.

@3043442162
Copy link
Author

3043442162 commented Aug 16, 2024 via email

@SbloodyS
Copy link
Member

Fixed in #16484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants