단일 노드 조건에서 버전 업그레이드는 매우 간단하다. data와 config 디렉토리만 덮어쓰면 됨. 그런데 'v9.0.3 -> v9.1.0' 업그레이드 과정에서 다음 에러 발생. 'v9.0.1 -> v9.0.3' 과정까지는 문제 없었는데(..)
PS D:\ELK\elasticsearch-9.1.0\bin> .\elasticsearchjava.lang.RuntimeException: starting java failed with [1]output:[0.003s][error][logging] Error opening log file 'logs/gc.log': No such file or directory[0.003s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.error:Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,level,pid,tags:filecount=32,filesize=64m', see error log for details.Error: Could not create the Java Virtual Machine.
확인해보니 JVM 로깅 경로 설정이 바뀌었다.
![]() |
v9.0.3 |
![]() |
v9.1.0 |
v9.1.0에서 jvm.options의 %ES_HOME%\logs 경로를 하드코딩해버린 모양. v9.0.3에서 카피한 파일도 같은 경로로 수정해주면 된다.
댓글 없음:
댓글 쓰기