生产环境无法加载日志

Blade 未结 1 21

一、该问题的重现步骤是什么?

1. INFO 2024-12-24 14:46:31.913 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-kafka-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.913 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-logback-1.x-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.913 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-trace-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.914 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-opentracing-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.914 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-micrometer-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.914 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-log4j-1.x-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:31.914 main PluginResourcesResolver : find skywalking plugin define in jar:file:/www/wwwroot/skywalking-agent/activations/apm-toolkit-meter-activation-9.3.0.jar!/skywalking-plugin.def INFO 2024-12-24 14:46:33.032 main SkyWalkingAgent : Skywalking agent begin to install transformer ... Logging system failed to initialize using configuration from 'classpath:log/logback-product.xml' java.io.FileNotFoundException: class path resource [log/logback-product.xml] cannot be resolved to URL because it does not exist at org.springframework.util.ResourceUtils.getURL(ResourceUtils.java:140) at org.springframework.boot.logging.logback.LogbackLoggingSystem.lambda$loadConfiguration$1(LogbackLoggingSystem.java:249) at org.springframework.boot.logging.logback.LogbackLoggingSystem.withLoggingSuppressed(LogbackLoggingSystem.java:467) at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:244) at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:67) at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:58) at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:189) at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:335) at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:298) at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:246) at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:223) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136) at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81) at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112) at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63) at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:370) at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149) at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:195) at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:114) at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:77) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) at org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:136) at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:81) at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:64) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118) at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:112) at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:63) at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:370) at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149) at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59) at org.springblade.system.SystemApplication.main(SystemApplication.java:40) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53) at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58)

2. 环境变量切换为product后,启动无法加载日志,test环境没问题

3.


二、你期待的结果是什么?实际看到的又是什么?

正常加载日志


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

商业版4.0

四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  • 生产环境启动命令用prod,不要用product

    0 讨论(0)
提交回复