收藏
回答

微信云托管SpringBoot,服务部署失败是为什么?

2024-03-26 10:51:00 create_eks_virtual_service : succ,

2024-03-26 10:51:00 check_eks_virtual_service : process, DescribeVersion_user_error_Liveness probe failed: dial tcp 10.15.13.111:80: connect: connection refused

日志:

  • 03/26 11:20:49
  • dc2h-music-013
  • Caused by: java.net.SocketTimeoutException: connect timed out
  • 03/26 11:20:49
  • dc2h-music-013
  • ... 56 common frames omitted
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:949) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.NativeSession.connect(NativeSession.java:120) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]
  • 03/26 11:20:49
  • dc2h-music-013
  • at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • 03/26 11:20:49
  • dc2h-music-013
  • Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[dc2h-music-0.0.1.jar:0.0.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[dc2h-music-0.0.1.jar:0.0.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[dc2h-music-0.0.1.jar:0.0.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[dc2h-music-0.0.1.jar:0.0.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_275]
  • 03/26 11:20:49
  • dc2h-music-013
  • at com.dc2h.dc2hmusic.Dc2hMusicApplication.main(Dc2hMusicApplication.java:10) ~[classes!/:0.0.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.SpringApplication.run(SpringApplication.java:1290) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.1.jar!/:2.6.1]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) ~[spring-context-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) ~[spring-context-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:49
  • dc2h-music-013
  • at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar!/:5.3.13]
  • 03/26 11:20:50
  • dc2h-music-013
  • 2024-03-26 03:20:49.383 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
  • 03/26 11:20:50
  • dc2h-music-013
  • 2024-03-26 03:20:49.066 INFO 1 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}


回答关注问题邀请回答
收藏

2 个回答

  • Alfred Huang
    Alfred Huang
    03-28

    服务启动后探测80端口失败,看是端口配置有问题,还是未正常启动在80端口上的监听

    03-28
    有用
    回复
  • showms
    showms
    03-27

    确认下数据源配置是否正确

    03-27
    有用
    回复 1
    • Uhim
      Uhim
      03-28
      这怎么看是否配置正确
      03-28
      回复
登录 后发表内容
问题标签