time=2019-01-10T10:16:36.108+0800`appName=oms`hostName=docker-20`logLevel=INFO `msg=No active profile set, falling back to default profiles: default
time=2019-01-10T10:16:38.373+0800`appName=oms`hostName=docker-20`logLevel=WARN `msg=Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.
time=2019-01-10T10:16:39.821+0800`appName=oms`hostName=docker-20`logLevel=WARN `msg=Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalStateException: Unable to create the directory [/tmp/tomcat.6537183852719985821.8881] to use as the base directory
time=2019-01-10T10:16:39.839+0800`appName=oms`hostName=docker-20`logLevel=INFO `msg=
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
time=2019-01-10T10:16:39.842+0800`appName=oms`hostName=docker-20`logLevel=ERROR`msg=Application run failed org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalStateException: Unable to create the directory [/tmp/tomcat.6537183852719985821.8881] to use as the base directory
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.yushi.Application.main(Application.java:18)
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.JarLauncher.main(JarLauncher.java:51)
Caused by: java.lang.IllegalStateException: Unable to create the directory [/tmp/tomcat.6537183852719985821.8881] to use as the base directory
at org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:724)
at org.apache.catalina.startup.Tomcat.getServer(Tomcat.java:539)
at org.apache.catalina.startup.Tomcat.getService(Tomcat.java:472)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:165)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152)
... 16 more
解决办法:
在 java ${java_arg} -jar 其中的java参数增加 -Djava.io.tmpdir=/data/tmp
网友评论