Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker挂载文件夹启动nacos2.2.3报错 #13037

Closed
BinZl00 opened this issue Jan 14, 2025 · 3 comments
Closed

docker挂载文件夹启动nacos2.2.3报错 #13037

BinZl00 opened this issue Jan 14, 2025 · 3 comments

Comments

@BinZl00
Copy link

BinZl00 commented Jan 14, 2025

Docker 启动nacos2.2.3版本,默认启动docker run -d --name nacos --env MODE=standalone -p 8848:8848 -p 9848:9848 nacos/nacos-server:v2.2.3,是正常的
当挂载到文件夹启动报错,docker run -d --name nacos_t --privileged -e MODE=standalone -e JVM_XMX=512m -e JVM_XMS=300m -p 8848:8848 -p 9848:9848 -v D:\Dev\docker_Image\nacos\conf:/home/nacos/conf -v D:\Dev\docker_Image\nacos\data:/home/nacos/data -v D:\Dev\docker_Image\nacos\logs:/home/nacos/logs nacos/nacos-server:v2.2.3

报错如下:
2025-01-14 08:55:11 2025-01-14 08:55:11,557 ERROR Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'basicAuthenticationFilter' defined in class path resource [com/alibaba/nacos/prometheus/filter/PrometheusAuthFilter.class]: Unsatisfied dependency expressed through method 'basicAuthenticationFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-plugin-default-impl-2.2.3.jar!/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,594 WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,598 INFO Nacos Log files: /home/nacos/logs
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,599 INFO Nacos Log files: /home/nacos/conf
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,600 INFO Nacos Log files: /home/nacos/data
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,601 ERROR Startup errors :
2025-01-14 08:55:11
2025-01-14 08:55:11 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163)
2025-01-14 08:55:11 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:423)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
2025-01-14 08:55:11 at com.alibaba.nacos.Nacos.main(Nacos.java:35)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2025-01-14 08:55:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2025-01-14 08:55:11 at java.lang.reflect.Method.invoke(Method.java:498)
2025-01-14 08:55:11 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
2025-01-14 08:55:11 at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
2025-01-14 08:55:11 at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
2025-01-14 08:55:11 at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
2025-01-14 08:55:11 Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:479)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160)
2025-01-14 08:55:11 ... 16 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'basicAuthenticationFilter' defined in class path resource [com/alibaba/nacos/prometheus/filter/PrometheusAuthFilter.class]: Unsatisfied dependency expressed through method 'basicAuthenticationFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-plugin-default-impl-2.2.3.jar!/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5211)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
2025-01-14 08:55:11 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2025-01-14 08:55:11 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2025-01-14 08:55:11 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
2025-01-14 08:55:11 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2025-01-14 08:55:11 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2025-01-14 08:55:11 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:430)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)
2025-01-14 08:55:11 ... 21 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-plugin-default-impl-2.2.3.jar!/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
2025-01-14 08:55:11 ... 61 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
2025-01-14 08:55:11 ... 84 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
2025-01-14 08:55:02 + exec /usr/lib/jvm/java-1.8.0-openjdk/bin/java -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:-UseParNewGC -Xms300m -Xmx512m -Xmn512m -Dnacos.standalone=true -Dnacos.member.list= -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/home/nacos/plugins,/home/nacos/plugins/health,/home/nacos/plugins/cmdb,/home/nacos/plugins/selector -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar --spring.config.additional-location=file:/home/nacos/conf/ --spring.config.name=application --logging.config=/home/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
2025-01-14 08:55:02 OpenJDK 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
2025-01-14 08:55:02 OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
2025-01-14 08:55:02 OpenJDK 64-Bit Server VM warning: MaxNewSize (524288k) is equal to or greater than the entire heap (524288k). A new max generation size of 524224k will be used.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
2025-01-14 08:55:11 ... 99 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
2025-01-14 08:55:11 ... 113 common frames omitted
2025-01-14 08:55:11 Caused by: java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.DynamicDataSource.getDataSource(DynamicDataSource.java:60)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.repository.embedded.StandaloneDatabaseOperateImpl.init(StandaloneDatabaseOperateImpl.java:60)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2025-01-14 08:55:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2025-01-14 08:55:11 at java.lang.reflect.Method.invoke(Method.java:498)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
2025-01-14 08:55:11 ... 125 common frames omitted
2025-01-14 08:55:11 Caused by: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.reload(LocalDataSourceServiceImpl.java:100)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.initialize(LocalDataSourceServiceImpl.java:167)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.init(LocalDataSourceServiceImpl.java:83)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.DynamicDataSource.getDataSource(DynamicDataSource.java:49)
2025-01-14 08:55:11 ... 133 common frames omitted
2025-01-14 08:55:11 Caused by: java.sql.SQLTimeoutException: Login timeout exceeded.
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.timeLogin(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.EmbeddedDriver.connect(Unknown Source)
2025-01-14 08:55:11 at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:354)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:473)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:554)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115)
2025-01-14 08:55:11 at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.reload(LocalDataSourceServiceImpl.java:95)
2025-01-14 08:55:11 ... 136 common frames omitted
2025-01-14 08:55:11 Caused by: org.apache.derby.iapi.error.StandardException: Login timeout exceeded.
2025-01-14 08:55:11 at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
2025-01-14 08:55:11 ... 152 common frames omitted
2025-01-14 08:55:11 2025-01-14 08:55:11,603 WARN [WatchFileCenter] start close
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,604 WARN [WatchFileCenter] start to shutdown this watcher which is watch : /home/nacos/conf
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,604 WARN [WatchFileCenter] already closed
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,605 WARN [NotifyCenter] Start destroying Publisher
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,605 WARN [NotifyCenter] Destruction of the end
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,607 ERROR Nacos failed to start, please see /home/nacos/logs/nacos.log for more details.
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,621 INFO
2025-01-14 08:55:11
2025-01-14 08:55:11 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,638 ERROR Application run failed
2025-01-14 08:55:11
2025-01-14 08:55:11 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163)
2025-01-14 08:55:11 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:423)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
2025-01-14 08:55:11 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
2025-01-14 08:55:11 at com.alibaba.nacos.Nacos.main(Nacos.java:35)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2025-01-14 08:55:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2025-01-14 08:55:11 at java.lang.reflect.Method.invoke(Method.java:498)
2025-01-14 08:55:11 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
2025-01-14 08:55:11 at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
2025-01-14 08:55:11 at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
2025-01-14 08:55:11 at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
2025-01-14 08:55:11 Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:479)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160)
2025-01-14 08:55:11 ... 16 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'basicAuthenticationFilter' defined in class path resource [com/alibaba/nacos/prometheus/filter/PrometheusAuthFilter.class]: Unsatisfied dependency expressed through method 'basicAuthenticationFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-plugin-default-impl-2.2.3.jar!/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:203)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:97)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:260)
2025-01-14 08:55:11 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5211)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
2025-01-14 08:55:11 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2025-01-14 08:55:11 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2025-01-14 08:55:11 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1383)
2025-01-14 08:55:11 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2025-01-14 08:55:11 at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2025-01-14 08:55:11 at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
2025-01-14 08:55:11 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:430)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
2025-01-14 08:55:11 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2025-01-14 08:55:11 at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)
2025-01-14 08:55:11 at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)
2025-01-14 08:55:11 ... 21 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosAuthConfig' defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-plugin-default-impl-2.2.3.jar!/com/alibaba/nacos/plugin/auth/impl/NacosAuthConfig.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
2025-01-14 08:55:11 ... 61 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nacosUserDetailsServiceImpl': Unsatisfied dependency expressed through field 'userPersistService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
2025-01-14 08:55:11 ... 84 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedUserPersistServiceImpl': Unsatisfied dependency expressed through field 'databaseOperate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
2025-01-14 08:55:11 ... 99 common frames omitted
2025-01-14 08:55:11 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standaloneDatabaseOperateImpl': Invocation of init method failed; nested exception is java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2025-01-14 08:55:11 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
2025-01-14 08:55:11 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
2025-01-14 08:55:11 ... 113 common frames omitted
2025-01-14 08:55:11 Caused by: java.lang.RuntimeException: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.DynamicDataSource.getDataSource(DynamicDataSource.java:60)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.repository.embedded.StandaloneDatabaseOperateImpl.init(StandaloneDatabaseOperateImpl.java:60)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-01-14 08:55:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2025-01-14 08:55:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2025-01-14 08:55:11 at java.lang.reflect.Method.invoke(Method.java:498)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
2025-01-14 08:55:11 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
2025-01-14 08:55:11 ... 125 common frames omitted
2025-01-14 08:55:11 Caused by: com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: errCode: 500, errMsg: load derby-schema.sql error.
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.reload(LocalDataSourceServiceImpl.java:100)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.initialize(LocalDataSourceServiceImpl.java:167)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.init(LocalDataSourceServiceImpl.java:83)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.DynamicDataSource.getDataSource(DynamicDataSource.java:49)
2025-01-14 08:55:11 ... 133 common frames omitted
2025-01-14 08:55:11 Caused by: java.sql.SQLTimeoutException: Login timeout exceeded.
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.timeLogin(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.jdbc.EmbeddedDriver.connect(Unknown Source)
2025-01-14 08:55:11 at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:354)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:473)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:554)
2025-01-14 08:55:11 at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115)
2025-01-14 08:55:11 at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
2025-01-14 08:55:11 at com.alibaba.nacos.config.server.service.datasource.LocalDataSourceServiceImpl.reload(LocalDataSourceServiceImpl.java:95)
2025-01-14 08:55:11 ... 136 common frames omitted
2025-01-14 08:55:11 Caused by: org.apache.derby.iapi.error.StandardException: Login timeout exceeded.
2025-01-14 08:55:11 at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
2025-01-14 08:55:11 at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
2025-01-14 08:55:11 ... 152 common frames omitted
2025-01-14 08:55:11 2025-01-14 08:55:11,640 WARN [ThreadPoolManager] Start destroying ThreadPool
2025-01-14 08:55:11
2025-01-14 08:55:11 2025-01-14 08:55:11,640 WARN [ThreadPoolManager] Destruction of the end
2025-01-14 08:55:11

@BinZl00 BinZl00 changed the title doker挂载文件夹启动nacos2.2.3报错 docker挂载文件夹启动nacos2.2.3报错 Jan 14, 2025
@fuhouyu
Copy link
Contributor

fuhouyu commented Jan 14, 2025

因为你挂载了conf目录,容器中,在该目录下,存在derby-schema.sql文件等,nacos启动需要这些文件,确认你的本地目录中存在这些文件。
不存在的话可以取消挂载,或者下载nacos,将这些配置文件放到本地再进行挂载

@KomachiSion
Copy link
Collaborator

上述可能是一个原因, 也有可能是另一个原因:

nacos如果使用derby数据库启动, derby数据库需要在本地创建文件以实际存储数据及变更log,如果使用挂载目录的方式,必须要保证nacos进程对此目录有读取和写入文件的操作权限,否则derby数据库无法正常启动, 你的报错也是

Caused by: org.apache.derby.iapi.error.StandardException: Login timeout exceeded.

这意味着连接derby数据库失败, 由于derby数据库本身是进程级别的数据库,jdbc在连接时自动创建,derby并没有将具体失败原因直接通过异常给出,而是写在了对应日志里(一般在nacos/data/下),如果此时文件系统有问题,无法写入文件,那么只能看到Login 超时。

@KomachiSion KomachiSion closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@KomachiSion
Copy link
Collaborator

No more response from author for a long time, and this problem seems env problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants