启动个cloud项目一直报错

启动个cloud项目一直报错

问题描述:

cloud微服务项目,启动了但是一直在刷一个报错信息

相关代码:

[main-SendThread(172.16.2.162:12181)] 08/19 15:45:20.958  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
[main-SendThread(172.16.2.162:12181)] 08/19 15:45:23.004  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
[main-SendThread(172.16.2.162:12181)] 08/19 15:45:20.958  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
[main-SendThread(172.16.2.162:12181)] 08/19 15:45:23.004  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
好帮手慕小脸 2022-08-19 15:59:39

同学你好,

1、根据异常信息提示,猜测同学项目需要使用到redis,这里同学是否启动本地redis呢?如果没有启动之后重启运行项目再试试

2、建议同学下次反馈错误信息时,直接将idea控制台中完整的报错信息进行提交

祝学习愉快~

  • 提问者 慕沐8040588 #1

    redis启动了也不行


    [main] 08/19 16:04:26.255  INFO  [c.d.a.remote.config.RemoteConfig   :55] - account.msg.over:esb
    [main] 08/19 16:04:26.353  INFO  [c.d.a.c.c.ThreadPoolTaskConfig     :83] - 创建公共线程池 corePoolSize:32 maxPoolSize:200 queue:2147483647
    [main] 08/19 16:04:26.386  INFO  [o.s.s.c.ThreadPoolTaskExecutor     :171] - Initializing ExecutorService 'taskExecutor'
    [main] 08/19 16:04:31.313  INFO  [c.d.a.r.c.HttpClientFactoryConfig  :70] - 创建公共HttpClient
    [main] 08/19 16:04:31.864  INFO  [o.a.curator.utils.Compatibility    :41] - Running in ZooKeeper 3.4.x compatibility mode
    [main] 08/19 16:04:31.896  INFO  [o.a.c.f.imps.CuratorFrameworkImpl  :290] - Starting
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:host.name=guoyang
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.version=1.8.0_162
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.vendor=Oracle Corporation
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.home=D:\donghua\jdk\jdk1.8.0_162\jre
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.class.path=C:\Users\huang\AppData\Local\Temp\classpath1644119992.jar;D:\idea\lib\idea_rt.jar
    [main] 08/19 16:04:31.896  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.library.path=D:\donghua\jdk\jdk1.8.0_162\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;"D:\donghua\jdk\jdk1.8.0_162\bin;D:\donghua\jdk\jdk1.8.0_162\jre\bin;";C:\Program Files\TortoiseGit\bin;D:\apache-maven-3.6.3\apache-maven-3.6.3\bin;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Users\huang\AppData\Local\Microsoft\WindowsApps;;D:\idea\bin;;.
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.io.tmpdir=C:\Users\huang\AppData\Local\Temp\
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:java.compiler=<NA>
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:os.name=Windows 10
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:os.arch=amd64
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:os.version=10.0
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:user.name=huang
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:user.home=C:\Users\huang
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :100] - Client environment:user.dir=D:\daima\mars-new-update
    [main] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ZooKeeper     :438] - Initiating client connection, connectString=172.16.2.162:12181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@4e3ee82f
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:31.911  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
    [main] 08/19 16:04:31.928  INFO  [o.a.c.f.imps.CuratorFrameworkImpl  :332] - Default schema
    [main] 08/19 16:04:32.054  INFO  [o.a.c.f.imps.CuratorFrameworkImpl  :290] - Starting
    [main] 08/19 16:04:32.054  INFO  [org.apache.zookeeper.ZooKeeper     :438] - Initiating client connection, connectString=172.16.2.162:12181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@6ffae7f9
    [main] 08/19 16:04:32.054  INFO  [o.a.c.f.imps.CuratorFrameworkImpl  :332] - Default schema
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:32.054  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:34.186  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
    java.net.ConnectException: Connection refused: no further information
    	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:34.236  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
    java.net.ConnectException: Connection refused: no further information
    	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:35.303  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:35.353  INFO  [org.apache.zookeeper.ClientCnxn    :975] - Opening socket connection to server 172.16.2.162/172.16.2.162:12181. Will not attempt to authenticate using SASL (unknown error)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:37.466  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
    java.net.ConnectException: Connection refused: no further information
    	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
    [main-SendThread(172.16.2.162:12181)] 08/19 16:04:37.530  WARN  [org.apache.zookeeper.ClientCnxn    :1102] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
    java.net.ConnectException: Connection refused: no further information
    	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)


    2022-08-19 16:10:32
  • 好帮手慕小脸 回复 提问者 慕沐8040588 #2

    同学你好,

    1、问一下同学要启动的项目是否涉及到zookeeper呢?根据上述提示信息是需要启动的

    2、这里同学运行的是自己的项目还是课程中涉及的项目呢?建议同学指名一下

    祝学习愉快~

    2022-08-19 17:25:23
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师