You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/05/19 02:53:13 UTC
[GitHub] [dolphinscheduler] gaomiup20 opened a new issue #5523: Unable to receive enterprise wechat alarm normally
gaomiup20 opened a new issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523
**Which version of DolphinScheduler:**
-1.3.6
Configure wechat alarm, add the following key, value to
kind: configmap, name:dolphinscheduler-alert In the middle,
ENTERPRISE_WECHAT_ENABLE: "true"
ENTERPRISE_WECHAT_CORP_ID: "xxxdfdfde43613c3xxxx"
ENTERPRISE_WECHAT_SECRET: "xxxxxzpKCWPw-IqDS9daosPRzUHvxxxxxU"
ENTERPRISE_WECHAT_AGENT_ID: "xxx0046"
ENTERPRISE_WECHAT_USERS: "G1702949,G1703177"
However, there is no menu to configure wechat alarm on the interface, and no enterprise wechat alarm has been received. It is feasible to send email according to the document method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] BoYiZhang commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
BoYiZhang commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-844742754
Please check the configuration[alert.properties]:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] BoYiZhang removed a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
BoYiZhang removed a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-844742754
Please check the configuration[alert.properties]:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] linux0x5c commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
linux0x5c commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-846757112
@gaomiup20 I modified docker build configuration tpl solved it .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 edited a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 edited a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843849862
When the alarm push is triggered, the email can be received normally at this time, but the enterprise wechat alarm is not good, and there is a suspected error log in alter
![Uploading image.png…]()
```
[INFO] 2021-05-19 11:13:38.030 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[60] - start to load jar files in /Users/xx/your/path/to/plugin/dir
[ERROR] 2021-05-19 11:13:38.230 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[67] - not a valid path - /Users/xx/your/path/to/plugin/dir
[INFO] 2021-05-19 11:13:38.232 org.apache.dolphinscheduler.alert.AlertServer:[72] - alert server ready start
[INFO] 2021-05-19 11:13:43.373 ru.yandex.clickhouse.ClickHouseDriver:[42] - Driver registered
[INFO] 2021-05-19 11:13:43.760 com.alibaba.druid.pool.DruidDataSource:[991] - {dataSource-1} inited
[INFO] 2021-05-19 15:37:52.607 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[114] - alert send success
[INFO] 2021-05-19 15:37:52.638 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[117] - Enterprise WeChat is enable!
[ERROR] 2021-05-19 15:37:55.230 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[122] - null
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.alert.utils.EnterpriseWeChatUtils.getToken(EnterpriseWeChatUtils.java:105)
at org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin.process(EmailAlertPlugin.java:119)
at org.apache.dolphinscheduler.alert.runner.AlertSender.run(AlertSender.java:84)
at org.apache.dolphinscheduler.alert.AlertServer.start(AlertServer.java:82)
at org.apache.dolphinscheduler.alert.AlertServer.main(AlertServer.java:89)
[INFO] 2021-05-19 15:37:55.353 org.apache.dolphinscheduler.alert.runner.AlertSender:[94] - alert send success
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847687011
@linux0x5c ,
Thank you for your reply! According to the template you gave, can receive the enterprise wechat alarm by adding the escape character "\" to the variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-846712499
> @gaomiup20 Hi,how did you solved it?
This problem has not been solved. According to the official reply, it should be a bug. Another problem is that there is no wechat alarm related configuration on the interface, only SMS and email
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 removed a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 removed a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847687011
@linux0x5c ,
Thank you for your reply! According to the template you gave, can receive the enterprise wechat alarm by adding the escape character "\" to the variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 removed a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 removed a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847665875
> ```
> #
> # Licensed to the Apache Software Foundation (ASF) under one or more
> # contributor license agreements. See the NOTICE file distributed with
> # this work for additional information regarding copyright ownership.
> # The ASF licenses this file to You under the Apache License, Version 2.0
> # (the "License"); you may not use this file except in compliance with
> # the License. You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> #
>
> #alert type is EMAIL/SMS
> alert.type=EMAIL
>
> # mail server configuration
> mail.protocol=SMTP
> mail.server.host=${MAIL_SERVER_HOST}
> mail.server.port=${MAIL_SERVER_PORT}
> mail.sender=${MAIL_SENDER}
> mail.user=${MAIL_USER}
> mail.passwd=${MAIL_PASSWD}
> # TLS
> mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS_ENABLE}
> # SSL
> mail.smtp.ssl.enable=${MAIL_SMTP_SSL_ENABLE}
> mail.smtp.ssl.trust=${MAIL_SMTP_SSL_TRUST}
>
> #xls file path,need create if not exist
> xls.file.path=${XLS_FILE_PATH}
>
> # Enterprise WeChat configuration
> enterprise.wechat.enable=${ENTERPRISE_WECHAT_ENABLE}
> enterprise.wechat.corp.id=${ENTERPRISE_WECHAT_CORP_ID}
> enterprise.wechat.secret=${ENTERPRISE_WECHAT_SECRET}
> enterprise.wechat.agent.id=${ENTERPRISE_WECHAT_AGENT_ID}
> enterprise.wechat.users=${ENTERPRISE_WECHAT_USERS}
> enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=\$corpId&corpsecret=\$secret
> enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=\$token
> enterprise.wechat.team.send.msg={\"toparty\":\"\$toParty\",\"agentid\":\"\$agentId\",\"msgtype\":\"text\",\"text\":{\"content\":\"\$msg\"},\"safe\":\"0\"}
> enterprise.wechat.user.send.msg={\"touser\":\"\$toUser\",\"agentid\":\"\$agentId\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\$msg\"}}
>
> plugin.dir=/Users/xx/your/path/to/plugin/dir
> ```
Thank you for your reply. Just add the escape character "\" to the variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843711211
container exec:
root@dolphinscheduler-prd-alert-67b784ff9d-bs4kr:/opt/apache-dolphinscheduler-1.3.6-bin# cat conf/alert.properties | grep wechat
enterprise.wechat.enable=true
enterprise.wechat.corp.id=ww7xxxxxxxxxxxxx
enterprise.wechat.secret=v9oadLERU_zpKCWPw-IqDS9daosPRxxxxxxxxxx
enterprise.wechat.agent.id=1000xxxx
enterprise.wechat.users=G1702949,G1703177
enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=&corpsecret=
enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=
enterprise.wechat.team.send.msg={\"toparty\":\"\",\"agentid\":\"\",\"msgtype\":\"text\",\"text\":{\"content\":\"\"},\"safe\":\"0\"}
enterprise.wechat.user.send.msg={\"touser\":\"\",\"agentid\":\"\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\"}}
root@dolphinscheduler-prd-alert-67b784ff9d-bs4kr:/opt/apache-dolphinscheduler-1.3.6-bin#
container of log:
[INFO] 2021-05-19 11:13:38.030 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[60] - start to load jar files in /Users/xx/your/path/to/plugin/dir
[ERROR] 2021-05-19 11:13:38.230 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[67] - not a valid path - /Users/xx/your/path/to/plugin/dir
[INFO] 2021-05-19 11:13:38.232 org.apache.dolphinscheduler.alert.AlertServer:[72] - alert server ready start
[INFO] 2021-05-19 11:13:43.373 ru.yandex.clickhouse.ClickHouseDriver:[42] - Driver registered
[INFO] 2021-05-19 11:13:43.760 com.alibaba.druid.pool.DruidDataSource:[991] - {dataSource-1} inited
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847670526
@linux0x5c ,
Thank you for your reply! According to the template you gave, can receive the enterprise wechat alarm by adding the escape character "\" to the variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] linux0x5c commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
linux0x5c commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847629653
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#alert type is EMAIL/SMS
alert.type=EMAIL
# mail server configuration
mail.protocol=SMTP
mail.server.host=${MAIL_SERVER_HOST}
mail.server.port=${MAIL_SERVER_PORT}
mail.sender=${MAIL_SENDER}
mail.user=${MAIL_USER}
mail.passwd=${MAIL_PASSWD}
# TLS
mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS_ENABLE}
# SSL
mail.smtp.ssl.enable=${MAIL_SMTP_SSL_ENABLE}
mail.smtp.ssl.trust=${MAIL_SMTP_SSL_TRUST}
#xls file path,need create if not exist
xls.file.path=${XLS_FILE_PATH}
# Enterprise WeChat configuration
enterprise.wechat.enable=${ENTERPRISE_WECHAT_ENABLE}
enterprise.wechat.corp.id=${ENTERPRISE_WECHAT_CORP_ID}
enterprise.wechat.secret=${ENTERPRISE_WECHAT_SECRET}
enterprise.wechat.agent.id=${ENTERPRISE_WECHAT_AGENT_ID}
enterprise.wechat.users=${ENTERPRISE_WECHAT_USERS}
enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=\$corpId&corpsecret=\$secret
enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=\$token
enterprise.wechat.team.send.msg={\"toparty\":\"\$toParty\",\"agentid\":\"\$agentId\",\"msgtype\":\"text\",\"text\":{\"content\":\"\$msg\"},\"safe\":\"0\"}
enterprise.wechat.user.send.msg={\"touser\":\"\$toUser\",\"agentid\":\"\$agentId\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\$msg\"}}
plugin.dir=/Users/xx/your/path/to/plugin/dir
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] CalvinKirs commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-844400829
It seems that NPE occurs when the token is obtained. Can you solve this problem. We did not judge the results of the response.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] linux0x5c commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
linux0x5c commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-844671163
@gaomiup20 Hi,how did you solved it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] linux0x5c commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
linux0x5c commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-844656496
I use 1.3.6 in K8S,have same problem,how to solve it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843704387
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/zh-cn/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] linux0x5c edited a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
linux0x5c edited a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847629653
```
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#alert type is EMAIL/SMS
alert.type=EMAIL
# mail server configuration
mail.protocol=SMTP
mail.server.host=${MAIL_SERVER_HOST}
mail.server.port=${MAIL_SERVER_PORT}
mail.sender=${MAIL_SENDER}
mail.user=${MAIL_USER}
mail.passwd=${MAIL_PASSWD}
# TLS
mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS_ENABLE}
# SSL
mail.smtp.ssl.enable=${MAIL_SMTP_SSL_ENABLE}
mail.smtp.ssl.trust=${MAIL_SMTP_SSL_TRUST}
#xls file path,need create if not exist
xls.file.path=${XLS_FILE_PATH}
# Enterprise WeChat configuration
enterprise.wechat.enable=${ENTERPRISE_WECHAT_ENABLE}
enterprise.wechat.corp.id=${ENTERPRISE_WECHAT_CORP_ID}
enterprise.wechat.secret=${ENTERPRISE_WECHAT_SECRET}
enterprise.wechat.agent.id=${ENTERPRISE_WECHAT_AGENT_ID}
enterprise.wechat.users=${ENTERPRISE_WECHAT_USERS}
enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=\$corpId&corpsecret=\$secret
enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=\$token
enterprise.wechat.team.send.msg={\"toparty\":\"\$toParty\",\"agentid\":\"\$agentId\",\"msgtype\":\"text\",\"text\":{\"content\":\"\$msg\"},\"safe\":\"0\"}
enterprise.wechat.user.send.msg={\"touser\":\"\$toUser\",\"agentid\":\"\$agentId\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\$msg\"}}
plugin.dir=/Users/xx/your/path/to/plugin/dir
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847665875
> ```
> #
> # Licensed to the Apache Software Foundation (ASF) under one or more
> # contributor license agreements. See the NOTICE file distributed with
> # this work for additional information regarding copyright ownership.
> # The ASF licenses this file to You under the Apache License, Version 2.0
> # (the "License"); you may not use this file except in compliance with
> # the License. You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> #
>
> #alert type is EMAIL/SMS
> alert.type=EMAIL
>
> # mail server configuration
> mail.protocol=SMTP
> mail.server.host=${MAIL_SERVER_HOST}
> mail.server.port=${MAIL_SERVER_PORT}
> mail.sender=${MAIL_SENDER}
> mail.user=${MAIL_USER}
> mail.passwd=${MAIL_PASSWD}
> # TLS
> mail.smtp.starttls.enable=${MAIL_SMTP_STARTTLS_ENABLE}
> # SSL
> mail.smtp.ssl.enable=${MAIL_SMTP_SSL_ENABLE}
> mail.smtp.ssl.trust=${MAIL_SMTP_SSL_TRUST}
>
> #xls file path,need create if not exist
> xls.file.path=${XLS_FILE_PATH}
>
> # Enterprise WeChat configuration
> enterprise.wechat.enable=${ENTERPRISE_WECHAT_ENABLE}
> enterprise.wechat.corp.id=${ENTERPRISE_WECHAT_CORP_ID}
> enterprise.wechat.secret=${ENTERPRISE_WECHAT_SECRET}
> enterprise.wechat.agent.id=${ENTERPRISE_WECHAT_AGENT_ID}
> enterprise.wechat.users=${ENTERPRISE_WECHAT_USERS}
> enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=\$corpId&corpsecret=\$secret
> enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=\$token
> enterprise.wechat.team.send.msg={\"toparty\":\"\$toParty\",\"agentid\":\"\$agentId\",\"msgtype\":\"text\",\"text\":{\"content\":\"\$msg\"},\"safe\":\"0\"}
> enterprise.wechat.user.send.msg={\"touser\":\"\$toUser\",\"agentid\":\"\$agentId\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\$msg\"}}
>
> plugin.dir=/Users/xx/your/path/to/plugin/dir
> ```
Thank you for your reply. Just add the escape character "\" to the variable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 edited a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 edited a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843711211
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
chengshiwen commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-890667225
Closed by #5898
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] chengshiwen closed issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
chengshiwen closed issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-847482493
@linux0x5c For the deployment of dolphin-scheduler-alert, there is a path
/The template file of /opt/dolphinscheduler/conf/alert.properties.tpl will be rendered into the file of / /opt/dolphinscheduler/conf/alert.properties according to our configured values
Which key of alert.properties.tpl has been changed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 commented on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 commented on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843849862
When the alarm push is triggered, the email can be received normally at this time, but the enterprise wechat alarm is not good, and there is a suspected error log in alter
![Uploading image.png…]()
[INFO] 2021-05-19 11:13:38.030 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[60] - start to load jar files in /Users/xx/your/path/to/plugin/dir
[ERROR] 2021-05-19 11:13:38.230 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[67] - not a valid path - /Users/xx/your/path/to/plugin/dir
[INFO] 2021-05-19 11:13:38.232 org.apache.dolphinscheduler.alert.AlertServer:[72] - alert server ready start
[INFO] 2021-05-19 11:13:43.373 ru.yandex.clickhouse.ClickHouseDriver:[42] - Driver registered
[INFO] 2021-05-19 11:13:43.760 com.alibaba.druid.pool.DruidDataSource:[991] - {dataSource-1} inited
[INFO] 2021-05-19 15:37:52.607 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[114] - alert send success
[INFO] 2021-05-19 15:37:52.638 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[117] - Enterprise WeChat is enable!
[ERROR] 2021-05-19 15:37:55.230 org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin:[122] - null
java.lang.NullPointerException: null
at org.apache.dolphinscheduler.alert.utils.EnterpriseWeChatUtils.getToken(EnterpriseWeChatUtils.java:105)
at org.apache.dolphinscheduler.alert.plugin.EmailAlertPlugin.process(EmailAlertPlugin.java:119)
at org.apache.dolphinscheduler.alert.runner.AlertSender.run(AlertSender.java:84)
at org.apache.dolphinscheduler.alert.AlertServer.start(AlertServer.java:82)
at org.apache.dolphinscheduler.alert.AlertServer.main(AlertServer.java:89)
[INFO] 2021-05-19 15:37:55.353 org.apache.dolphinscheduler.alert.runner.AlertSender:[94] - alert send success
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] gaomiup20 edited a comment on issue #5523: Unable to receive enterprise wechat alarm normally
Posted by GitBox <gi...@apache.org>.
gaomiup20 edited a comment on issue #5523:
URL: https://github.com/apache/dolphinscheduler/issues/5523#issuecomment-843711211
container exec:
```
root@dolphinscheduler-prd-alert-67b784ff9d-bs4kr:/opt/apache-dolphinscheduler-1.3.6-bin# cat conf/alert.properties | grep wechat
enterprise.wechat.enable=true
enterprise.wechat.corp.id=ww7xxxxxxxxxxxxx
enterprise.wechat.secret=v9oadLERU_zpKCWPw-IqDS9daosPRxxxxxxxxxx
enterprise.wechat.agent.id=1000xxxx
enterprise.wechat.users=G1702949,G1703177
enterprise.wechat.token.url=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=&corpsecret=
enterprise.wechat.push.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=
enterprise.wechat.team.send.msg={\"toparty\":\"\",\"agentid\":\"\",\"msgtype\":\"text\",\"text\":{\"content\":\"\"},\"safe\":\"0\"}
enterprise.wechat.user.send.msg={\"touser\":\"\",\"agentid\":\"\",\"msgtype\":\"markdown\",\"markdown\":{\"content\":\"\"}}
root@dolphinscheduler-prd-alert-67b784ff9d-bs4kr:/opt/apache-dolphinscheduler-1.3.6-bin#
```
container of log:
```
[INFO] 2021-05-19 11:13:38.030 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[60] - start to load jar files in /Users/xx/your/path/to/plugin/dir
[ERROR] 2021-05-19 11:13:38.230 org.apache.dolphinscheduler.common.plugin.FilePluginManager:[67] - not a valid path - /Users/xx/your/path/to/plugin/dir
[INFO] 2021-05-19 11:13:38.232 org.apache.dolphinscheduler.alert.AlertServer:[72] - alert server ready start
[INFO] 2021-05-19 11:13:43.373 ru.yandex.clickhouse.ClickHouseDriver:[42] - Driver registered
[INFO] 2021-05-19 11:13:43.760 com.alibaba.druid.pool.DruidDataSource:[991] - {dataSource-1} inited
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org