Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug] SPDF on Unraid needs log path, otherwise crash

Open TBT-TBT opened this issue 2 years ago • 1 comments

The Unraid app standard Stirling PDF configuration does not include the

- /location/of/logs:/logs/

path. This lets it crash (and switch off) with the error:

Caused by: java.lang.IllegalStateException: Logback configuration error detected: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[AUTHLOG] - Failed to create parent directories for [/logs/invalid-auths.log] ERROR in ch.qos.logback.core.rolling.RollingFileAppender[AUTHLOG] - openFile(logs/invalid-auths.log,true) call failed. java.io.FileNotFoundException: logs/invalid-auths.log (No such file or directory) ERROR in ch.qos.logback.core.rolling.RollingFileAppender[GENERAL] - Failed to create parent directories for [/logs/info.log] ERROR in ch.qos.logback.core.rolling.RollingFileAppender[GENERAL] - openFile(logs/info.log,true) call failed. java.io.FileNotFoundException: logs/info.log (No such file or directory)

Creating a folder at "/mnt/user/appdata/Stirling-PDF/logs/"

and configuring a new Path, with "Container Path" /logs, "Host Path" /mnt/user/appdata/Stirling-PDF/logs/ and "Access Mode "Read/Write" will solve this problem and let SPDF run again.

TBT-TBT avatar Dec 25 '23 14:12 TBT-TBT

Thanks for this, i will update docker app to pre-create logs folder to avoid its access issue.. it should fix the need for logs mount

Frooodle avatar Dec 25 '23 15:12 Frooodle