ERROR Unable to create file

박영준·2024년 5월 21일
0

Troubleshooting

목록 보기
32/43

1. 발생한 문제

2024-05-20 23:27:14,546 main ERROR Unable to create file /home/hso10/hip/data/log/gwweb-appr1.log java.io.IOException: Could not create directory /home/hso10/hip/data/log
        at org.apache.logging.log4j.core.util.FileUtils.mkdir(FileUtils.java:120)
        at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:137)
        at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:732)
        at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:716)
        at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144)
        at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
        at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
        at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
        at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62)
        at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1122)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1047)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1039)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:249)
        at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:295)
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621)
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694)
        at org.apache.logging.log4j.core.LoggerContext.setConfigLocation(LoggerContext.java:679)
        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 bsh.Reflect.invokeOnMethod(Unknown Source

2. 문제 원인

hso100 으로 설정해뒀으나, 변경해주지 않은 부분들에는 hso10 으로 설정되어있음

3. 해결법

grep -nri "hso10" 으로 hso10 문자열을 포함하고 있는 모든 파일들을 검색하고 일일이 들어가서 hso100으로 변경해주기

profile
개발자로 거듭나기!

0개의 댓글