nacos2.0启动报错Error creating bean with name ‘grpcSdkServer‘

"nacos is starting with standalone"

         ,--.

       ,--.'|

   ,--,:  : |                                           Nacos 2.0.0-ALPHA.1

,`--.'`|  ' :                       ,---.               Running in stand alone mode, All function modules

|   :  :  | |                      '   ,'\   .--.--.    Port: 8848

:   |   \ | :  ,--.--.     ,---.  /   /   | /  /    '   Pid: 7044

|   : '  '; | /       \   /     \.   ; ,. :|  :  /`./   Console: http://192.168.1.6:8848/nacos/index.html

'   ' ;.    ;.--.  .-. | /    / ''   | |: :|  :  ;_

|   | | \   | \__\/: . ..    ' / '   | .; : \  \    `.      https://nacos.io

'   : |  ; .' ," .--.; |'   ; :__|   :    |  `----.   \

|   | '`--'  /  /  ,.  |'   | '.'|\   \  /  /  /`--'  /

'   : |     ;  :   .'   \   :    : `----'  '--'.     /

;   |.'     |  ,     .-./\   \  /            `--'---'

'---'        `--`---'     `----'

2021-09-20 10:42:19,919 INFO Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@2fd953a6' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-09-20 10:42:19,924 INFO Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-09-20 10:42:20,746 INFO Tomcat initialized with port(s): 8848 (http)

2021-09-20 10:42:21,348 INFO Root WebApplicationContext: initialization completed in 11146 ms

2021-09-20 10:42:25,216 WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grpcSdkServer': Invocation of init method failed; nested exception is java.io.IOException: Failed to bind

2021-09-20 10:42:25,249 INFO Nacos Log files: E:\nacosAndRedis\nacos-server-2.0.0-ALPHA.1_YW_ZTDH\logs

2021-09-20 10:42:25,250 INFO Nacos Log files: E:\nacosAndRedis\nacos-server-2.0.0-ALPHA.1_YW_ZTDH\conf

2021-09-20 10:42:25,250 INFO Nacos Log files: E:\nacosAndRedis\nacos-server-2.0.0-ALPHA.1_YW_ZTDH\data

2021-09-20 10:42:25,253 ERROR Startup errors : {}

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grpcSdkServer': Invocation of init method failed; nested exception is java.io.IOException: Failed to bind

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:413)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1761)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)

        at com.alibaba.nacos.Nacos.main(Nacos.java:35)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)

        at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)

Caused by: java.io.IOException: Failed to bind

        at io.grpc.netty.shaded.io.grpc.netty.NettyServer.start(NettyServer.java:246)

        at io.grpc.internal.ServerImpl.start(ServerImpl.java:184)

        at io.grpc.internal.ServerImpl.start(ServerImpl.java:90)

        at com.alibaba.nacos.core.remote.grpc.BaseGrpcServer.startServer(BaseGrpcServer.java:145)

        at com.alibaba.nacos.core.remote.BaseRpcServer.start(BaseRpcServer.java:51)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)

        ... 26 common frames omitted

Caused by: java.net.BindException: Address already in use: bind

        at sun.nio.ch.Net.bind0(Native Method)

        at sun.nio.ch.Net.bind(Net.java:433)

        at sun.nio.ch.Net.bind(Net.java:425)

        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

        at io.grpc.netty.shaded.io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:132)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)

        at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1345)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)

        at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:984)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)

        at io.grpc.netty.shaded.io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:355)

        at io.grpc.netty.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)

        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:416)

        at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:515)

        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)

        at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

        at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

        at java.lang.Thread.run(Thread.java:748)

2021-09-20 10:42:35,793 WARN [WatchFileCenter] start close

2021-09-20 10:42:35,793 WARN [WatchFileCenter] start to shutdown this watcher which is watch : E:\nacosAndRedis\nacos-server-2.0.0-ALPHA.1_YW_ZTDH\conf

2021-09-20 10:42:35,796 WARN [WatchFileCenter] already closed

2021-09-20 10:42:35,796 WARN [NotifyCenter] Start destroying Publisher

2021-09-20 10:42:35,797 WARN [NotifyCenter] Destruction of the end

2021-09-20 10:42:35,798 ERROR Nacos failed to start, please see E:\nacosAndRedis\nacos-server-2.0.0-ALPHA.1_YW_ZTDH\logs\nacos.log for more details.

2021-09-20 10:42:35,811 INFO

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-09-20 10:42:35,812 ERROR Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grpcSdkServer': Invocation of init method failed; nested exception is java.io.IOException: Failed to bind

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:139)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:413)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1761)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)

        at com.alibaba.nacos.Nacos.main(Nacos.java:35)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)

        at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)

        at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)

Caused by: java.io.IOException: Failed to bind

        at io.grpc.netty.shaded.io.grpc.netty.NettyServer.start(NettyServer.java:246)

        at io.grpc.internal.ServerImpl.start(ServerImpl.java:184)

        at io.grpc.internal.ServerImpl.start(ServerImpl.java:90)

        at com.alibaba.nacos.core.remote.grpc.BaseGrpcServer.startServer(BaseGrpcServer.java:145)

        at com.alibaba.nacos.core.remote.BaseRpcServer.start(BaseRpcServer.java:51)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:363)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:307)

        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)

        ... 26 common frames omitted

Caused by: java.net.BindException: Address already in use: bind

        at sun.nio.ch.Net.bind0(Native Method)

        at sun.nio.ch.Net.bind(Net.java:433)

        at sun.nio.ch.Net.bind(Net.java:425)

        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

        at io.grpc.netty.shaded.io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:132)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)

        at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1345)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)

        at io.grpc.netty.shaded.io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:984)

        at io.grpc.netty.shaded.io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)

        at io.grpc.netty.shaded.io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:355)

        at io.grpc.netty.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)

        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:416)

        at io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:515)

        at io.grpc.netty.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)

        at io.grpc.netty.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

        at io.grpc.netty.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

        at java.lang.Thread.run(Thread.java:748)

没有找到原因,重启多次后正常

在网上找到也遇到启动报错问题也没有解决

nacos2.0启动报错??? - SegmentFault 思否icon-default.png?t=L892https://segmentfault.com/q/1010000040167781

nacos启动报错"Error creating bean with name 'memoryMonitor'"可能是由于数据库连接问题导致的。修复方法如下: 1. 打开nacos/conf/文件夹下的application.properties文件。 2. 查找数据库连接地址,确保后面是否有"&serverTimezone=UTC",如果没有则添加上去。 例如:db.url.0=jdbc:mysql:.../lamp_nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&serverTimezone=UTC。 另外,如果遇到其他报错,可以尝试以下方法进行修复: 1. 如果报错为"Unable to start web server",打开启动文件。对于Windows系统,打开startup.cmd;对于其他系统,打开startup.sh。找到set MODE,将其改为standalone模式即可。 2. 如果报错缺少补丁,可以根据报错信息下载所需的补丁文件进行安装。例如对于Windows Server 2021R2版本,缺少的补丁可能包括clearcompressionflag.exe、vc_redist.x64.exe、Windows8.1-KB2919355-x64.msu、Windows8.1-KB2919442-x64.msu、Windows8.1-KB2919442-x86.msu等。 希望以上方法能够帮助您解决nacos启动报错的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [nacos启动报错解决方法](https://blog.csdn.net/qq_43444008/article/details/120767006)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [nacos启动报错缺少的补丁(针对2021R版本的)](https://download.csdn.net/download/woodAstone2008/85708859)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值