dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [alert server] alert plugin Email show type attachment causes the alert service to fail.

Open Arnu- opened this issue 4 years ago • 13 comments

Search before asking

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

What happened

在配置alert plugin的时候,选择Email时,显示方式(show_type)不能选择 attachment(附件)。一旦选择此方式,alert server就进入假死状态,不输入任何错误日志。也不再工作。只要t_ds_alert_plugin_instance表中存有配置了attachment的plugin信息,不管怎么重启都无效。即使删除了alert-plugin配置,不重启alert server,依然不会恢复。

What you expected to happen

在配置alert plugin的时候,选择Email时,显示方式(show_type)不能选择 attachment(附件)。一旦选择此方式,alert server就进入假死状态,不输入任何错误日志。也不再工作。只要t_ds_alert_plugin_instance表中存有配置了attachment的plugin信息,不管怎么重启都无效。即使删除了alert-plugin配置,不重启alert server,依然不会恢复。

How to reproduce

设置告警插件Email选show type :attachment 或者 table attachment

Anything else

No response

Version

2.0.1

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

Arnu- avatar Jan 07 '22 07:01 Arnu-

Search before asking

-[X] I had searched in the issues and found no similar issues.

What happened

When configuring the alert plugin, when selecting Email, the display mode (show_type) cannot be selected as attachment. Once this method is selected, the alert server enters a suspended animation state without entering any error log. Doesn't work anymore. As long as the plugin information configured with attachment is stored in the t_ds_alert_plugin_instance table, no matter how you restart it, it will be invalid. Even if the alert-plugin configuration is deleted and the alert server is not restarted, it will not be restored.

What you expected to happen

When configuring the alert plugin, when selecting Email, the display mode (show_type) cannot be selected as attachment. Once this method is selected, the alert server enters a suspended animation state without entering any error log. Doesn't work anymore. As long as the plugin information configured with attachment is stored in the t_ds_alert_plugin_instance table, no matter how you restart it, it will be invalid. Even if the alert-plugin configuration is deleted and the alert server is not restarted, it will not be restored.

How to reproduce

Set the alarm plug-in Email to choose show type: attachment or table attachment

Anything else

No response

Version

2.0.1

Are you willing to submit PR?

-[] Yes I am willing to submit a PR!

Code of Conduct

-[X] I agree to follow this project's Code of Conduct

github-actions[bot] avatar Jan 07 '22 07:01 github-actions[bot]

Hi:

  • Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to [email protected].

github-actions[bot] avatar Jan 07 '22 07:01 github-actions[bot]

I will check this issue.

SbloodyS avatar Jan 12 '22 08:01 SbloodyS

Is this bug solved?

ltcaxx avatar Mar 17 '22 07:03 ltcaxx

Is this bug solved?

Currently you can avoid this problem without selecting attachment or table attachment.

SbloodyS avatar Mar 17 '22 07:03 SbloodyS

我要用附件这个功能

爱数据的开发狗 @.***

大数据开发/分析

 

------------------ 原始邮件 ------------------ 发件人: "apache/dolphinscheduler" @.>; 发送时间: 2022年3月17日(星期四) 下午3:41 @.>; @.@.>; 主题: Re: [apache/dolphinscheduler] [Bug] [alert server] alert plugin Email show type attachment causes the alert service to fail. (Issue #7874)

Is this bug solved?

Currently you can avoid this problem without selecting attachment or table attachment.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

ltcaxx avatar Mar 17 '22 07:03 ltcaxx

associate issue: #8691

caishunfeng avatar Mar 17 '22 09:03 caishunfeng

will check it out

Tianqi-Dotes avatar Apr 11 '22 10:04 Tianqi-Dotes

Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.

Tianqi-Dotes avatar Apr 12 '22 08:04 Tianqi-Dotes

I encountered the same problem. When I chose to send an attachment or attachment form, I did not send an email. When I looked at the log file, there was a timeout task, which meant that attachment sending was not supported. I need to send an attachment. When can I fix this bug? Now I use DS version: 2.0.5 release.

jay-col avatar Apr 15 '22 06:04 jay-col

i deploy 2.0.3, docker also met this problem, only docker recurrent; share:

  1. found hang on Sheet sheet = wb.createSheet();may miss font, fix: sudo apt-get update sudo apt-get install fontconfig link:https://stackoverflow.com/questions/48989348/sxssf-workbook-createsheet-fails-on-linux-environments

  2. hang on wb.write(fos);, have no plan to fix, maybe related to docker images

now i use plan B to fix problem : rewrite export attachment, replace XLSX with CSV, avoid use poi this plan only rebuild and replace dolphinscheduler-alter-email-2.0.3.jar

AuroraV avatar May 08 '22 04:05 AuroraV

Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.

Got it, I will add the milestone to 2.0.6

zhongjiajie avatar May 09 '22 06:05 zhongjiajie

Have tested this in dev, the function is okay but failed to send excel in 2.0.5. Will tell the code differences between 'em.

Got it, I will add the milestone to 2.0.6

Its caused by common-compress-1.4.1 and common-compress-1.19 version conflict, and the project maven package just has common-compress-1.4.1.

Wilson-BT avatar May 14 '22 16:05 Wilson-BT