ERROR]-[2019-04-16 21:24:20]-[org.b3log.symphony.util.Symphonys:340]: Init upload dir failed
java.io.IOException: Can't create: ./upload
at jodd.io.FileUtil.checkCreateDirectory(FileUtil.java:1614)
at jodd.io.FileUtil.mkdirs(FileUtil.java:196)
at jodd.io.FileUtil.mkdirs(FileUtil.java:182)
at org.b3log.symphony.util.Symphonys.<clinit>(Symphonys.java:338)
at org.b3log.symphony.SymphonyServletListener.contextInitialized(SymphonyServletListener.java:81)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4744)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5206)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1439)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1439)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
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.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Service exit with a return value of 255
相关帖子
-
- 其他回帖
-
lybing •
在做了下面四个步骤后,问题已然存在
1:创建了目录:home/bing/sym/upload
2:修改 sym.props(src/main/resources/symphony.properties) 中的 uploadlocal.dir 为绝对路径:upload.local.dir=/home/bing/sym/upload
3:给了 sym/upload 777 的所有权限
4: 重新 mvn clean install 生成 war,放到 jetty 的 webapps 文件中具体异常:
[ERROR]-[2019-08-17 17:49:43]-[org.b3log.symphony.util.Symphonys:342]: Init upload dir failed
java.io.IOException: Can't create: /home/bing/sym/upload
at jodd.io.FileUtil.checkCreateDirectory(FileUtil.java:1614)
at jodd.io.FileUtil.mkdirs(FileUtil.java:196)1 回复 - 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于