[ https://issues.apache.org/jira/browse/MEECROWAVE-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554111#comment-16554111 ]
Romain Manni-Bucau edited comment on MEECROWAVE-130 at 7/24/18 11:18 AM: ------------------------------------------------------------------------- This is weird, initBaseDir is not supposed to create logs/ bu tjust ensure base/home exist. Can you try to force -Dcatalina.base=$MEECROWAVE_BASE and -Dcatalina.home=$MEECROWAVE_HOME? We can need to enforce them in meecrowave.sh/bat. Romain was (Author: romain.manni-bucau): This is weird, initBaseDir is not supposed to create logs/ bu tjust ensure base/home exist. Can you try to force -Dcatalina.base and -Dcatalina.home? We can need to enforce them in meecrowave.sh/bat. Romain > IOException if MEECROWAVE_OUT is different than MEECROWAVE_HOME > --------------------------------------------------------------- > > Key: MEECROWAVE-130 > URL: https://issues.apache.org/jira/browse/MEECROWAVE-130 > Project: Meecrowave > Issue Type: Bug > Affects Versions: 1.2.3 > Reporter: Mark Struberg > Assignee: Mark Struberg > Priority: Major > Fix For: 1.2.4 > > > In my project I have the MEECROWAVE_OUT and MEECROWAVE_BASE is set to > separated places. > MEECROWAVE_BASE is in /opt/myapp > and > MEECROWAVE_OUT is in /var/log/myapp.log > Since mw-1.2.2 I now get the following Exception: > {noformat} > Exception in thread "main" java.lang.IllegalStateException: /opt/myapp/logs > can't be created > at org.apache.meecrowave.io.IO.mkdirs(IO.java:89) > at > org.apache.meecrowave.Meecrowave.createDirectory(Meecrowave.java:1047) > at org.apache.meecrowave.Meecrowave.start(Meecrowave.java:469) > at org.apache.meecrowave.runner.Cli.run(Cli.java:80) > at org.apache.meecrowave.runner.Cli.main(Cli.java:109) > Suppressed: java.lang.IllegalStateException: Unable to create the > directory [/tomcat.8080] to use as the base directory > at > org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:725) > at > org.apache.catalina.startup.Tomcat.getServer(Tomcat.java:540) > at org.apache.meecrowave.Meecrowave.close(Meecrowave.java:941) > at org.apache.meecrowave.runner.Cli.run(Cli.java:87) > {noformat} > Likely due to /opt/myapp is mounted as readonly filesystem. -- This message was sent by Atlassian JIRA (v7.6.3#76005)