Spring-boot远程调试问题
来源:10-5 Eclipse远程调试上
慕虎0518913
2019-09-30
老师好,
因为在创建新的product时,网页图片上传不成功,想远程调试,但是不调试成功(报错timeout)。
已按照https://blog.csdn.net/gobravery/article/details/89881745步骤设置好了eclipse(sts)
o2o-0.0.1-SNAPSHOT.war文件权限777
-rwxrwxrwx 1 work work 20378420 Sep 29 13:07 o2o-0.0.1-SNAPSHOT.war
服务器端,使用work账户,在执行 java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888 -Djava.net.preferIPv4Stack=true -jar o2o-0.0.1-SNAPSHOT.war 指令时,遇到权限不足问题
主要报错为
1.catalina.base_IS_UNDEFINED/logs/webapps/debug.log (Permission denied)
2.catalina.base_IS_UNDEFINED/logs/webapps/info.log (Permission denied)
3.catalina.base_IS_UNDEFINED/logs/webapps/erorr.log (Permission denied)
4.Logback configuration error detected
端口在阿里云安全组中开启了8888端口
以下为项目运行时的详细信息:
Listening for transport dt_socket at address: 8888
09:47:51,644 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
09:47:51,657 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
09:47:51,658 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/work/o2o-0.0.1-SNAPSHOT.war!/WEB-INF/classes!/logback.xml]
09:47:51,756 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@8e24743 - URL [jar:file:/home/work/o2o-0.0.1-SNAPSHOT.war!/WEB-INF/classes!/logback.xml] is not of type file
09:47:51,950 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
09:47:51,985 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [jar:file:/home/work/o2o-0.0.1-SNAPSHOT.war!/WEB-INF/classes!/logback.xml]
09:47:51,985 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 1 minutes
09:47:52,006 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
09:47:52,026 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [consoleAppender]
09:47:52,053 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:47:52,214 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:47:52,239 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [debugAppender]
09:47:52,287 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1956710488 - Will use gz compression
09:47:52,289 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1956710488 - Will use the pattern catalina.base_IS_UNDEFINED/logs/webapps/debug/debug.%d{yyyy-MM-dd}.log for the active file
09:47:52,295 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is ‘yyyy-MM-dd’ from file name pattern ‘catalina.base_IS_UNDEFINED/logs/webapps/debug/debug.%d{yyyy-MM-dd}.log.gz’.
09:47:52,295 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
09:47:52,299 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Sep 30 09:26:45 CST 2019
09:47:52,300 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:47:52,319 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debugAppender] - Active log file name: catalina.base_IS_UNDEFINED/logs/webapps/debug.log
09:47:52,319 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[debugAppender] - File property is set to [catalina.base_IS_UNDEFINED/logs/webapps/debug.log]
09:47:52,321 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[debugAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/debug.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/debug.log (Permission denied)
at java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/debug.log (Permission denied)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:26)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at at org.springframework.boot.SpringApplication.(SpringApplication.java:179)
at at com.my.o2o.O2oApplication.main(O2oApplication.java:10)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
09:47:52,321 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:47:52,321 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [infoAppender]
09:47:52,322 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@682376643 - Will use gz compression
09:47:52,322 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@682376643 - Will use the pattern catalina.base_IS_UNDEFINED/logs/webapps/info/info.%d{yyyy-MM-dd}.log for the active file
09:47:52,323 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is ‘yyyy-MM-dd’ from file name pattern ‘catalina.base_IS_UNDEFINED/logs/webapps/info/info.%d{yyyy-MM-dd}.log.gz’.
09:47:52,323 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
09:47:52,323 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Sep 30 09:26:56 CST 2019
09:47:52,323 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:47:52,324 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[infoAppender] - Active log file name: catalina.base_IS_UNDEFINED/logs/webapps/info.log
09:47:52,324 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[infoAppender] - File property is set to [catalina.base_IS_UNDEFINED/logs/webapps/info.log]
09:47:52,324 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[infoAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/info.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/info.log (Permission denied)
at java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/info.log (Permission denied)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:26)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at at org.springframework.boot.SpringApplication.(SpringApplication.java:179)
at at com.my.o2o.O2oApplication.main(O2oApplication.java:10)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
09:47:52,324 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
09:47:52,324 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [errorAppender]
09:47:52,325 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@854507466 - Will use gz compression
09:47:52,325 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@854507466 - Will use the pattern catalina.base_IS_UNDEFINED/logs/webapps/error/error.%d{yyyy-MM-dd}.log for the active file
09:47:52,355 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is ‘yyyy-MM-dd’ from file name pattern ‘catalina.base_IS_UNDEFINED/logs/webapps/error/error.%d{yyyy-MM-dd}.log.gz’.
09:47:52,355 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
09:47:52,355 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Sat Sep 28 13:36:59 CST 2019
09:47:52,356 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
09:47:52,357 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[errorAppender] - Active log file name: catalina.base_IS_UNDEFINED/logs/webapps/erorr.log
09:47:52,357 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[errorAppender] - File property is set to [catalina.base_IS_UNDEFINED/logs/webapps/erorr.log]
09:47:52,357 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[errorAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/erorr.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/erorr.log (Permission denied)
at java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/erorr.log (Permission denied)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
at at java.io.FileOutputStream.(FileOutputStream.java:213)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.(ResilientFileOutputStream.java:26)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at at org.springframework.boot.SpringApplication.(SpringApplication.java:179)
at at com.my.o2o.O2oApplication.main(O2oApplication.java:10)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
09:47:52,358 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.my.o2o] to DEBUG
09:47:52,358 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.my.o2o] to true
09:47:52,358 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [debugAppender] to Logger[com.my.o2o]
09:47:52,359 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [infoAppender] to Logger[com.my.o2o]
09:47:52,359 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [errorAppender] to Logger[com.my.o2o]
09:47:52,359 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
09:47:52,359 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [consoleAppender] to Logger[ROOT]
09:47:52,359 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
09:47:52,361 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4e718207 - Registering current configuration as safe fallback point
2019-09-30 09:47:54.010 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[debugAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/debug.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/debug.log (Permission denied)
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[infoAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/info.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/info.log (Permission denied)
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[errorAppender] - openFile(catalina.base_IS_UNDEFINED/logs/webapps/erorr.log,true) call failed. java.io.FileNotFoundException: catalina.base_IS_UNDEFINED/logs/webapps/erorr.log (Permission denied)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:162)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:208)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:74)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:59)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:115)
at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:303)
at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:276)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:239)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:212)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.my.o2o.O2oApplication.main(O2oApplication.java:10)
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:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
原因我个人觉得应该是logback里面的
没有给${catalina.base}赋值的原因,导致了UNDEFINED
之后我创建了路径
mkdir -p /home/work/logs
赋权限
chmod 777 -R /home/work/logs
在application.properties文件中加入
catalina.base=/home/work/logs
重新上传服务器,再将所属权转给work用户后
chown -R work:1000 ./o2o-0.0.1-SNAPSHOT.war
成功启动 java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888 -Djava.net.preferIPv4Stack=true -jar o2o-0.0.1-SNAPSHOT.war
也设置timeout的时间
但之后我进入到spring-boot中开启远程调试的时候,依然报错timeout
1回答
-
翔仔
2019-10-01
同学好,catalina.base_IS_UNDEFINED/logs/webapps/debug.log (Permission denied)
针对这类权限不足的信息,需要你把catalina.base_IS_UNDEFINED/logs 也就是logs文件夹以及子文件夹的权限放开才可以,可以用root帐号登录,然后去到 catalina.base_IS_UNDEFINED 下面,chmod 777 -R logs赋予权限,然后再试试
022019-10-01
相似问题