Stirling PDF - Crash Loop
Posted by Big_Totoro
Hello, I installed Stirling PDF but it seems to be in some sort of crash loop. Any idea's? — Recent Logs f2026-05-29T04:23:33.743668166Z [init][warn] Using TESSDATAPREFIX=/usr/share/tesseract-ocr/5/tessdata 72026-05-29T04:23:33.801134535Z --- Binary Versions --- G2026-05-29T04:23:33.893600758Z openjdk version "25.0.2" 2026-01-20 LTS 32026-05-29T04:23:33.928402584Z qpdf version 12.3.2 x2026-05-29T04:23:33.947849071Z Version: ImageMagick 7.1.2-13 Q16-HDRI x8664 2fae24192:20260118 https://imagemagick.org /2026-05-29T04:23:37.954150625Z ocrmypdf 17.3.0 A2026-05-29T04:23:38.335142693Z LibreOffice 25.8.5.2 580(Build:2) -2026-05-29T04:23:39.011906751Z unoserver 3.6 /2026-05-29T04:23:39.088035510Z tesseract 5.3.4 32026-05-29T04:23:39.125674548Z Ghostscript 10.06.0 72026-05-29T04:23:39.161363074Z pdfinfo version 24.02.0 V2026-05-29T04:23:39.226056614Z Copyright (c) 2000-2024. See AUTHORS for Contributors. %2026-05-29T04:23:39.309586751Z 7.0.0 =2026-05-29T04:23:39.589705121Z ebook-convert (calibre 9.4.0) 72026-05-29T04:23:39.637811750Z ----------------------- @2026-05-29T04:23:39.660166075Z Detected container memory: 512MB W2026-05-29T04:23:39.660376364Z Dynamic memory: InitialRAM=30%, MaxRAM=55%, MaxMeta=96m <2026-05-29T04:23:39.661297942Z JVM profile: balanced (G1GC) �2026-05-29T04:23:39.785606095Z running with JAVATOOLOPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m m2026-05-29T04:23:39.785692787Z Running Stirling PDF with DISABLEADDITIONALFEATURES= and VERSIONTAG=2.11.0 =2026-05-29T04:23:39.849699835Z XDGRUNTIMEDIR=/tmp/xdg-1001 62026-05-29T04:23:39.996602620Z Setting permissions... 42026-05-29T04:23:41.738481588Z Starting Xvfb on :99 T2026-05-29T04:23:42.784642964Z Starting unoserver on 127.0.0.1:2003 (uno-port 2004) F2026-05-29T04:23:43.186125008Z INFO:unoserver:Starting unoserver 3.6. R2026-05-29T04:23:43.186170496Z INFO:unoserver:Command: /usr/bin/soffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///home/stirlingpdfuser/.libreofficeuno1001/instance2003 --accept=socket,host=127.0.0.1,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext �2026-05-29T04:23:44.819150371Z unoserver pool started (Profile: /home/stirlingpdfuser/.libreofficeuno1001), Java starting in parallel 52026-05-29T04:23:44.819242580Z Starting Stirling PDF \2026-05-29T04:23:44.823451009Z Waiting for unoserver (Java already starting in parallel)... �2026-05-29T04:23:44.925795844Z Picked up JAVATOOLOPTIONS: -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m E2026-05-29T04:23:48.428668882Z INFO:unoserver:Starting UnoConverter. 2026-05-29T04:23:50.225471108Z INFO:unoserver:Server PID: 230 v2026-05-29T04:23:52.248349066Z 21:23:52.242 [main] INFO s.software.SPDF.SPDFApplication - Additional features in jar {2026-05-29T04:23:52.330147577Z 21:23:52.326 [main] INFO s.s.c.c.ConfigInitializer - Current settings file line count: 349 D2026-05-29T04:23:52.544978382Z INFO:unoserver:Starting UnoComparer. 72026-05-29T04:23:52.621174266Z INFO:unoserver:Started. �2026-05-29T04:24:02.054667492Z 21:24:02.050 [main] INFO s.s.c.c.ConfigInitializer - No changes detected; settings file left as-is. �2026-05-29T04:24:02.058951426Z 21:24:02.058 [main] INFO s.software.SPDF.SPDFApplication - Settings file: ./configs/settings.yml �2026-05-29T04:24:02.063828374Z 21:24:02.063 [main] INFO s.software.SPDF.SPDFApplication - Custom settings file: ./configs/customsettings.yml c2026-05-29T04:24:04.765141011Z d2026-05-29T04:24:04.765231227Z / | | | \| | | | \ | |/ | | \| \| | a2026-05-29T04:24:04.765247207Z \ \ | | | || |) | | | || \| | | | |) | | | | | b2026-05-29T04:24:04.765259904Z ) || | | || <| | | || |\ | || || /| || | | 2026-05-29T04:24:04.765272211Z |/ || ||| \\||| \|\| || |/|| <2026-05-29T04:24:04.765283632Z Powered by Spring Boot 4.0.6 �2026-05-29T04:24:05.129027352Z 21:24:05.128 [main] INFO s.software.SPDF.SPDFApplication - Starting SPDFApplication v2.11.0 using Java 25.0.2 with PID 282 (/app/app.jar started by ubuntu in /app) �2026-05-29T04:24:05.132403479Z 21:24:05.131 [main] INFO s.software.SPDF.SPDFApplication - The following 1 profile is active: "security" �2026-05-29T04:24:31.547917676Z 21:24:31.545 [main] INFO s.s.S.config.MultipartConfiguration - Using default multipart file upload limit: 2000MB z2026-05-29T04:24:43.653864186Z 21:24:43.652 [main] INFO s.s.p.s.configuration.DatabaseConfig - Using default H2 database E2026-05-29T04:25:09.401169695Z java.lang.OutOfMemoryError: Metaspace Y2026-05-29T04:25:09.401241470Z Dumping heap to /configs/heapdumps/javapid282.hprof ... c2026-05-29T04:25:09.401255944Z Unable to create /configs/heapdumps/javapid282.hprof: File exists X2026-05-29T04:25:09.401268191Z Terminating due to java.lang.OutOfMemoryError: Metaspace f2026-05-29T04:25:10.377806582Z [init][warn] Using TESSDATAPREFIX=/usr/share/tesseract-ocr/5/tessdata 72026-05-29T04:25:10.420691760Z --- Binary Versions --- G2026-05-29T04:25:10.507802663Z openjdk version "25.0.2" 2026-01-20 LTS 32026-05-29T04:25:10.528743202Z qpdf version 12.3.2 x2026-05-29T04:25:10.544666059Z Version: ImageMagick 7.1.2-13 Q16-HDRI x8664 2fae24192:20260118 https://imagemagick.org /2026-05-29T04:25:12.167295757Z ocrmypdf 17.3.0 A2026-05-29T04:25:12.655428695Z LibreOffice 25.8.5.2 580(Build:2) -2026-05-29T04:25:13.031875831Z unoserver 3.6 /2026-05-29T04:25:13.112312899Z tesseract 5.3.4 32026-05-29T04:25:13.129690745Z Ghostscript 10.06.0 72026-05-29T04:25:13.155408852Z pdfinfo version 24.02.0 V2026-05-29T04:25:13.224702651Z Copyright (c) 2000-2024. See AUTHORS for Contributors. %2026-05-29T04:25:13.321876374Z 7.0.0 =2026-05-29T04:25:13.583043064Z ebook-convert (calibre 9.4.0) 72026-05-29T04:25:13.628781188Z ----------------------- @2026-05-29T04:25:13.651144881Z Detected container memory: 512MB W2026-05-29T04:25:13.651275128Z Dynamic memory: InitialRAM=30%, MaxRAM=55%, MaxMeta=96m <2026-05-29T04:25:13.652097037Z JVM profile: balanced (G1GC) �2026-05-29T04:25:13.763059027Z running with JAVATOOLOPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m m2026-05-29T04:25:13.763150249Z Running Stirling PDF with DISABLEADDITIONALFEATURES= and VERSIONTAG=2.11.0 =2026-05-29T04:25:13.820981731Z XDGRUNTIMEDIR=/tmp/xdg-1000 62026-05-29T04:25:13.846201931Z Setting permissions... 42026-05-29T04:25:14.050536803Z Starting Xvfb on :99 T2026-05-29T04:25:15.074128796Z Starting unoserver on 127.0.0.1:2003 (uno-port 2004) F2026-05-29T04:25:15.524409078Z INFO:unoserver:Starting unoserver 3.6. R2026-05-29T04:25:15.524442205Z INFO:unoserver:Command: /usr/bin/soffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///home/stirlingpdfuser/.libreofficeuno1000/instance2003 --accept=socket,host=127.0.0.1,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext �2026-05-29T04:25:17.106451472Z unoserver pool started (Profile: /home/stirlingpdfuser/.libreofficeuno1000), Java starting in parallel 52026-05-29T04:25:17.106898700Z Starting Stirling PDF \2026-05-29T04:25:17.108531427Z Waiting for unoserver (Java already starting in parallel)... �2026-05-29T04:25:17.196224113Z Picked up JAVATOOLOPTIONS: -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m E2026-05-29T04:25:20.804338806Z INFO:unoserver:Starting UnoConverter. 2026-05-29T04:25:22.613518656Z INFO:unoserver:Server PID: 216 D2026-05-29T04:25:22.920462550Z INFO:unoserver:Starting UnoComparer. 72026-05-29T04:25:22.996180592Z INFO:unoserver:Started. v2026-05-29T04:25:24.297012057Z 21:25:24.291 [main] INFO s.software.SPDF.SPDFApplication - Additional features in jar {2026-05-29T04:25:24.314098832Z 21:25:24.308 [main] INFO s.s.c.c.ConfigInitializer - Current settings file line count: 349 �2026-05-29T04:25:33.430930218Z 21:25:33.427 [main] INFO s.s.c.c.ConfigInitializer - No changes detected; settings file left as-is. �2026-05-29T04:25:33.434031277Z 21:25:33.433 [main] INFO s.software.SPDF.SPDFApplication - Settings file: ./configs/settings.yml �2026-05-29T04:25:33.436575519Z 21:25:33.436 [main] INFO s.software.SPDF.SPDFApplication - Custom settings file: ./configs/customsettings.yml c2026-05-29T04:25:36.116674543Z d2026-05-29T04:25:36.116751362Z / | | | \| | | | \ | |/ | | \| \| | a2026-05-29T04:25:36.116762729Z \ \ | | | || |) | | | || \| | | | |) | | | | | b2026-05-29T04:25:36.116771752Z ) || | | || <| | | || |\ | || || /| || | | 2026-05-29T04:25:36.116780889Z |/ || ||| \\||| \|\| || |/|| <2026-05-29T04:25:36.116789269Z Powered by Spring Boot 4.0.6 �2026-05-29T04:25:36.355102676Z 21:25:36.354 [main] INFO s.software.SPDF.SPDFApplication - Starting SPDFApplication v2.11.0 using Java 25.0.2 with PID 262 (/app/app.jar started by ubuntu in /app) �2026-05-29T04:25:36.392631706Z 21:25:36.392 [main] INFO s.software.SPDF.SPDFApplication - The following 1 profile is active: "security" �2026-05-29T04:26:04.122193702Z 21:26:04.120 [main] INFO s.s.S.config.MultipartConfiguration - Using default multipart file upload limit: 2000MB z2026-05-29T04:26:16.003157044Z 21:26:16.002 [main] INFO s.s.p.s.configuration.DatabaseConfig - Using default H2 database E2026-05-29T04:26:42.617784066Z java.lang.OutOfMemoryError: Metaspace Y2026-05-29T04:26:42.617865715Z Dumping heap to /configs/heapdumps/javapid262.hprof ... c2026-05-29T04:26:42.617880645Z Unable to create /configs/heapdumps/javapid262.hprof: File exists X2026-05-29T04:26:42.617892492Z Terminating due to java.lang.OutOfMemoryError: Metaspace f2026-05-29T04:26:43.909372352Z [init][warn] Using TESSDATAPREFIX=/usr/share/tesseract-ocr/5/tessdata 72026-05-29T04:26:43.951245546Z --- Binary Versions --- G2026-05-29T04:26:44.036110466Z openjdk version "25.0.2" 2026-01-20 LTS 32026-05-29T04:26:44.079412481Z qpdf version 12.3.2 x2026-05-29T04:26:44.096641883Z Version: ImageMagick 7.1.2-13 Q16-HDRI x8664 2fae24192:20260118 https://imagemagick.org /2026-05-29T04:26:45.206674548Z ocrmypdf 17.3.0 A2026-05-29T04:26:45.397480390Z LibreOffice 25.8.5.2 580(Build:2) -2026-05-29T04:26:45.796429214Z unoserver 3.6 /2026-05-29T04:26:45.877199931Z tesseract 5.3.4 32026-05-29T04:26:45.894523949Z Ghostscript 10.06.0 72026-05-29T04:26:45.921378073Z pdfinfo version 24.02.0 V2026-05-29T04:26:45.996324047Z Copyright (c) 2000-2024. See AUTHORS for Contributors. %2026-05-29T04:26:46.094396788Z 7.0.0 =2026-05-29T04:26:46.363284288Z ebook-convert (calibre 9.4.0) 72026-05-29T04:26:46.411155272Z ----------------------- @2026-05-29T04:26:46.433635149Z Detected container memory: 512MB W2026-05-29T04:26:46.433694110Z Dynamic memory: InitialRAM=30%, MaxRAM=55%, MaxMeta=96m <2026-05-29T04:26:46.434626295Z JVM profile: balanced (G1GC) �2026-05-29T04:26:46.549332389Z running with JAVATOOLOPTIONS=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m m2026-05-29T04:26:46.549405845Z Running Stirling PDF with DISABLEADDITIONALFEATURES= and VERSIONTAG=2.11.0 =2026-05-29T04:26:46.608947745Z XDGRUNTIMEDIR=/tmp/xdg-1000 62026-05-29T04:26:46.635223207Z Setting permissions... 42026-05-29T04:26:46.845626628Z Starting Xvfb on :99 T2026-05-29T04:26:47.889374083Z Starting unoserver on 127.0.0.1:2003 (uno-port 2004) F2026-05-29T04:26:48.303369870Z INFO:unoserver:Starting unoserver 3.6. R2026-05-29T04:26:48.303448449Z INFO:unoserver:Command: /usr/bin/soffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///home/stirlingpdfuser/.libreofficeuno1000/instance2003 --accept=socket,host=127.0.0.1,port=2004,tcpNoDelay=1;urp;StarOffice.ComponentContext �2026-05-29T04:26:49.923806826Z unoserver pool started (Profile: /home/stirlingpdfuser/.libreofficeuno1000), Java starting in parallel 52026-05-29T04:26:49.923913018Z Starting Stirling PDF \2026-05-29T04:26:49.925886371Z Waiting for unoserver (Java already starting in parallel)... �2026-05-29T04:26:49.955649266Z Picked up JAVATOOLOPTIONS: -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/configs/heapdumps -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=4m -XX:G1PeriodicGCInterval=60000 -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:+ExplicitGCInvokesConcurrent -Dspring.threads.virtual.enabled=true -Djava.awt.headless=true -XX:InitialRAMPercentage=30 -XX:MaxRAMPercentage=55 -XX:MaxMetaspaceSize=96m E2026-05-29T04:26:53.383631601Z INFO:unoserver:Starting UnoConverter. D2026-05-29T04:26:53.477605002Z INFO:unoserver:Starting UnoComparer. 72026-05-29T04:26:53.489630248Z INFO:unoserver:Started. 2026-05-29T04:26:55.305739029Z INFO:unoserver:Server PID: 210 v2026-05-29T04:26:56.192137462Z 21:26:56.186 [main] INFO s.software.SPDF.SPDFApplication - Additional features in jar {2026-05-29T04:26:56.207618264Z 21:26:56.204 [main] INFO s.s.c.c.ConfigInitializer - Current settings file line count: 349 �2026-05-29T04:27:05.580267202Z 21:27:05.576 [main] INFO s.s.c.c.ConfigInitializer - No changes detected; settings file left as-is. �2026-05-29T04:27:05.582646192Z 21:27:05.582 [main] INFO s.software.SPDF.SPDFApplication - Settings file: ./configs/settings.yml �2026-05-29T04:27:05.586050347Z 21:27:05.585 [main] INFO s.software.SPDF.SPDFApplication - Custom settings file: ./configs/customsettings.yml c2026-05-29T04:27:08.407611999Z d2026-05-29T04:27:08.407711102Z / | | | \| | | | \ | |/ | | \| \| | a2026-05-29T04:27:08.407722929Z \ \ | | | || |) | | | || \| | | | |) | | | | | b2026-05-29T04:27:08.407731846Z ) || | | || <| | | || |\ | || || /| || | | 2026-05-29T04:27:08.407741053Z |/ || ||| \\||| \|\| || |/|| <2026-05-29T04:27:08.407749699Z Powered by Spring Boot 4.0.6 �2026-05-29T04:27:08.618098059Z 21:27:08.617 [main] INFO s.software.SPDF.SPDFApplication - Starting SPDFApplication v2.11.0 using Java 25.0.2 with PID 256 (/app/app.jar started by ubuntu in /app) �2026-05-29T04:27:08.621675792Z 21:27:08.621 [main] INFO s.software.SPDF.SPDFApplication - The following 1 profile is active: "security"
3 replies
tomspark wrote:
Thanks for the full log — that pinned it instantly. It's crash-looping on "OutOfMemoryError: Metaspace," which means we shipped Stirling PDF with too little memory (512MB). Stirling bundles OCR and a full office-conversion engine, and it genuinely needs around 2GB just to start — so it runs out of memory partway through booting and restarts, over and over. That's on us, not anything you did. I'm bumping Stirling's memory to 2GB now, and it'll land with the next sparkbox update. Once you update it'll boot cleanly — just make sure your box has ~2GB to spare for it, since it's a heavy app. If you want it running this minute, you can raise the sb-stirling-pdf container's memory limit to 2GB in your container manager, but the update will take care of it for you.
tomspark wrote:
Quick follow-up — the fix shipped. v1.6.156 is live, and it bumps Stirling PDF's memory so it stops hitting that out-of-memory crash loop. Run sudo sparkbox update, then re-enable Stirling and it should boot and stay up. Thanks again for the clean log that pinned it.
Big_Totoro wrote:
Hey Tom, Everything checks out now. Thanks!