com.xxl.job.core.log.XxlJobFileAppender : 没有那个文件或目录
异常信息如下:
2023-08-31 19:52:39.627 ERROR 18321 --- [rCallbackThread] com.xxl.job.core.log.XxlJobFileAppender : 没有那个文件或目录
java.io.IOException: 没有那个文件或目录
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1023)
at com.xxl.job.core.log.XxlJobFileAppender.appendLog(XxlJobFileAppender.java:99)
at com.xxl.job.core.context.XxlJobHelper.logDetail(XxlJobHelper.java:164)
at com.xxl.job.core.context.XxlJobHelper.log(XxlJobHelper.java:118)
at com.xxl.job.core.thread.TriggerCallbackThread.callbackLog(TriggerCallbackThread.java:197)
at com.xxl.job.core.thread.TriggerCallbackThread.doCallback(TriggerCallbackThread.java:170)
at com.xxl.job.core.thread.TriggerCallbackThread.access$200(TriggerCallbackThread.java:26)
at com.xxl.job.core.thread.TriggerCallbackThread$1.run(TriggerCallbackThread.java:76)
at java.lang.Thread.run(Thread.java:750)
创建目录:
/data/applogs/xxl-job/jobhandler/gluesource/
然后授权:
chown user:user -R /data/applogs/xxl-job/jobhandler/gluesource/
调整配置信息:
################# XXL-JOB配置 ##################
xxl:
job:
admin:
addresses: http://127.0.0.1:19090/xxl-job-admin
accessToken: ""
executor:
appname: xxl-job-executor-xxx
address: ""
ip: ""
port: 7777
logpath: "/data/applogs/xxl-job/jobhandler/gluesource/"
logretentiondays: 30