原错误日志如下
2021-10-12 17:54:42.041 ERROR 29267 --- [cTaskExecutor-3] c.d.i.handle.ElectricTaxCodeHandler 92 : (电票附码)线程ID:90-->流水号: 607842188601282560001 调用dubbo接口出现异常:
com.alibaba.dubbo.rpc.RpcException: No provider available from registry 10.1.1.93:21810 for service com.dxhy.invoice.service.fm.TaggingService on consumer 10.1.1.173 use dubbo version 2.6.2, please check statu
s of providers(disabled, not registered or in blacklist). at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:575)
at com.alibaba.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:74)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:271)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:232)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy3.uniqueIdCode(proxy3.java)
at com.dxhy.invoice.handle.ElectricTaxCodeHandler.taxCode(ElectricTaxCodeHandler.java:75)
at com.dxhy.invoice.handle.ElectricTaxCodeHandler.onMessage(ElectricTaxCodeHandler.java:50)
at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1457)
问题是没找到dubbo注册的服务,但是我服务器内启动的项目都运行了,也没报错,看zookeeper的日志也没找到问题,随后重启该报错类..fm.TaggingService对应的服务发现启动过程中没报错问题,但是启动日志很少,启动很快,也没有注册服务,随后发现原来是本人使用的用户权限是非root权限,它之前打包启动的是root权限,本人再次重启时未全部执行导致启动不通。
3facf7b28b59b0e254e7920af605eaa.png
网友评论