首页 > 其他分享 >XXL-JOB手工执行任务报错:msg:xxl-rpc remoting error(Connection refused (Connection refused)), for url

XXL-JOB手工执行任务报错:msg:xxl-rpc remoting error(Connection refused (Connection refused)), for url

时间:2023-06-12 11:56:21浏览次数:40  
标签:-- 端口 refused Connection 报错 xxl

【问题描述】

XXL-JOB手工执行任务报错:msg:xxl-rpc remoting error(Connection refused (Connection refused)), for url 

 

【原因分析】

 在xxl-job服务端所在的服务器上面去telnet xxl-job所在的客户端服务器的9986端口,提示拒绝连接:

对于端口拒绝连接的问题,应该是网络的问题,我们先处理这个网络的问题:

按照下面的命令顺序执行一遍:

#清除之前的规则
rm -rf /etc/firewalld/zones
#重启firewall
systemctl restart firewalld
#开放端口
firewall-cmd --zone=public --permanent --add-port=80-14999/udp
firewall-cmd --zone=public --permanent --add-port=80-14999/tcp
#重启生效
firewall-cmd --reload
#查看当前规则
firewall-cmd --list-all

执行完之后,没有提示端口拒绝连接了,提示的是另外的报错信息:Connection closed by foreign host.

这个问题的根本原因是微服务启动中使用的XXL-JOB客户端的端口为9986,这个端口与Nacos配置文件中配置的客户端注册的端口不一致:

 

 

【解决方法】

在微服务工程中的gitlab-ci.yml配置文件中,修改XXLJOB_PORT的端口,与Nacos配置中心配置的端口号一致!

 

重新执行这个微服务,打包发布后就可以正常执行定时任务了。

 

标签:--,端口,refused,Connection,报错,xxl
From: https://www.cnblogs.com/heyi-77/p/17474653.html

相关文章

  • try……except配合traceback模块,进行不报错异常捕获
    通过try语句去尝试做正确的事,如果中途遭遇了意外情况就引发异常提示try:………………………………………………………………return"成功执行"exceptExceptionase:#Handletheexceptiont......
  • 解决gorm安装报错
    报错:go:modulegrom.io/gorm:Get"https://proxy.golang.org/grom.io/gorm/@v/list":dialtcp142.251.43.17:443:connectex:Aconnectionattemptfailedbecausetheconnectedpartydidnotproperlyrespondafteraperiodoftime,orestablishedconn......
  • Connection reset,Connection rese
    Connectionreset,Connectionresetbypeer,Softwarecausedconnectionabort:socketwriteerror,recvfailedTheBestwaytoChinajava.net.SocketException:Connectionresetbypeer:socketwriteerrorjava.net.SocketException:Connectionresetjava.net.Socket......
  • windows 安装docker desktop 报错
    安装docker时报错:JSON字符串无效。(异常来自HRESULT:0x83750007)在Windows.Data.Json.JsonValue.Parse(Stringinput)在CommunityInstaller.InstallWorkflow.SetupBackendModeAndFeatures-----------------------------------------------------------------------......
  • [GPT] php 报错 Unsupported operand types
     Unsupportedoperandtypes这个错误通常发生在使用了不支持的操作数类型时。例如,当您尝试对两个不同类型的值执行算术运算时,就会出现这个错误。例如,如果您尝试将字符串与数字相加,则会出现此错误: $number=10;$string="20";$result=$number+$string;//Unsuppo......
  • Goland 包导入正常,但是无法解析函数和成员属性,编译不报错
    这段时间Goland突然出现了一个毛病,每次goget依赖后,虽然依赖拉下来了,但是代码里使用了这个module的地方无法引用出他的成员和属性,大片的标红,都提示「Unresolvedreference'xxxxx'」,但是只要把项目关了,重新打开,再次触发module的index索引动作,就恢复正常了。本来想看看有没......
  • SpringCloud启动不了,报错
    初学SpringBootCloud启动遇到以下报错***************************APPLICATIONFAILEDTOSTART***************************Description:Webapplicationcouldnotbestartedastherewasnoorg.springframework.boot.web.servlet.server.ServletWebServerFactoryb......
  • npm run refresh 命令报错 -4048
    Youcanrerunthecommandwith`--loglevel=verbose`toseethelogsinyour我的操作是把C:\Users\{账户}下的.npmrc文件,删除即可 参考文章:npm-install命令报错-4048_第三人格书的博客-CSDN博客......
  • vue报错Invalid VNode type: undefined
    报错项目启动后,部分内容没有显示出来。打开console后,显示[Vuewarn]:InvalidVNodetype:undefined(undefined)处理引入“defineAsyncComponent”实现异步引入。import{defineAsyncComponent}from'vue'。问题解决了。......
  • Qt编译报错error: exception handling disabled, use -fexceptions to enable的解决方
    如题,在Qt中使用了C++标准库中的异常处理机制,即trycatch语句,在编译时报错error:exceptionhandlingdisabled,use-fexceptionstoenablecatch(std::exceptionexcp)解决方法:在Qt的工程文件中添加 CONFIG+=exceptions或者CONFIG-=exceptions_off,然后再重新编译就可以了......