[GH-ISSUE #319] [Issue]: Timeout Error on Startup; FastifyError; Status code 500; Timeout #134

Closed
opened 2026-10-20 17:25:30 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @BionSawyer on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/319

Originally assigned to: @SpicyMarinara on GitHub.

Summary

after a windows shutdown, marinara wouldn't start — fastify timeout on @fastify/static. log showed two "Taskbar migration: could not read target" warnings ~5 seconds apart immediately before the crash, with the timeout firing ~7ms after the second one. fix was to delete the broken .lnk files in start menu + desktop. seems like the taskbar migration is blocking the main thread long enough to eat the plugin startup budget.

Expected behavior

When clicking desktop shortcut, Marinara should load and be able to run.

Actual behavior

When clicking desktop shortcut, Marinara starts up a command prompt and proceeds to give following output under the log section.

Steps to reproduce

  1. Download Marinara Engine
  2. Shutdown computer
  3. ???
  4. Suffer.

Environment

  • Marinara Engine version: 1.5.5
  • Install type: Installer
  • OS + version: Windows 11 Home
  • Browser or app shell: PowerShell plus Chrome

Logs, screenshots, or video

+==========================================+
 |       Marinara Engine  -  Launcher        |
 +==========================================+

 [..] Aligning pnpm to 10.30.3 via Corepack...
 [..] Checking for updates...
 [OK] Already up to date
 [OK] Node.js found:
v22.17.0
 [OK] pnpm 10.30.3 ready

 ==========================================
   Starting Marinara Engine on http://127.0.0.1:7860/
   Press Ctrl+C to stop
 ==========================================

{"level":40,"time":1777496430528,"pid":2440,"hostname":"LAPTOP","msg":"Taskbar migration: could not read target for C:\Users\[UserName]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Marinara Engine\Marinara Engine.lnk, skipping"}
{"level":40,"time":1777496435591,"pid":2440,"hostname":"LAPTOP","msg":"Taskbar migration: could not read target for C:\Users\[UserName]\Desktop\Marinara Engine.lnk, skipping"}
{"level":50,"time":1777496435598,"pid":2440,"hostname":"LAPTOP","err":{"type":"FastifyError","message":"Plugin did not start in time: '@fastify/static'. You may have forgotten to call 'done' function or to resolve a Promise","stack":"FastifyError: Plugin did not start in time: '@fastify/static'. You may have forgotten to call 'done' function or to resolve a Promise\n    at Timeout._onTimeout (C:\Users\[UserName]\AppData\Local\MarinaraEngine\node_modules\.pnpm\avvio@9.2.0\node_modules\avvio\lib\plugin.js:114:31)\n    at listOnTimeout (node:internal/timers:588:17)\n    at process.processTimers (node:internal/timers:523:7)","code":"AVV_ERR_PLUGIN_EXEC_TIMEOUT","name":"FastifyError","statusCode":500},"msg":"[startup] Unhandled error during server bootstrap"}

 [ERROR] Server exited unexpectedly. See the error above.

Press any key to continue . . .

Additional context

On Discord, under the questions and help tab, the thread is called 'Timeout Error on Startup?' where the issue was discussed and worked through. Bion_Sawyer and Chai were the main contributors. Bion_Sawyer would like to go on the record to agree with Chai's assessment of this being a 'stupid and rare bug.' The issue was fixed, but it was recommended to paste the logs for reproduction and patching.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @BionSawyer on GitHub (Apr 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/319 Originally assigned to: @SpicyMarinara on GitHub. ## Summary after a windows shutdown, marinara wouldn't start — fastify timeout on @fastify/static. log showed two "Taskbar migration: could not read target" warnings ~5 seconds apart immediately before the crash, with the timeout firing ~7ms after the second one. fix was to delete the broken .lnk files in start menu + desktop. seems like the taskbar migration is blocking the main thread long enough to eat the plugin startup budget. ## Expected behavior When clicking desktop shortcut, Marinara should load and be able to run. ## Actual behavior When clicking desktop shortcut, Marinara starts up a command prompt and proceeds to give following output under the log section. ## Steps to reproduce 1. Download Marinara Engine 2. Shutdown computer 3. ??? 4. Suffer. ## Environment - Marinara Engine version: 1.5.5 - Install type: Installer - OS + version: Windows 11 Home - Browser or app shell: PowerShell plus Chrome ## Logs, screenshots, or video ``` +==========================================+ | Marinara Engine - Launcher | +==========================================+ [..] Aligning pnpm to 10.30.3 via Corepack... [..] Checking for updates... [OK] Already up to date [OK] Node.js found: v22.17.0 [OK] pnpm 10.30.3 ready ========================================== Starting Marinara Engine on http://127.0.0.1:7860/ Press Ctrl+C to stop ========================================== {"level":40,"time":1777496430528,"pid":2440,"hostname":"LAPTOP","msg":"Taskbar migration: could not read target for C:\Users\[UserName]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Marinara Engine\Marinara Engine.lnk, skipping"} {"level":40,"time":1777496435591,"pid":2440,"hostname":"LAPTOP","msg":"Taskbar migration: could not read target for C:\Users\[UserName]\Desktop\Marinara Engine.lnk, skipping"} {"level":50,"time":1777496435598,"pid":2440,"hostname":"LAPTOP","err":{"type":"FastifyError","message":"Plugin did not start in time: '@fastify/static'. You may have forgotten to call 'done' function or to resolve a Promise","stack":"FastifyError: Plugin did not start in time: '@fastify/static'. You may have forgotten to call 'done' function or to resolve a Promise\n at Timeout._onTimeout (C:\Users\[UserName]\AppData\Local\MarinaraEngine\node_modules\.pnpm\avvio@9.2.0\node_modules\avvio\lib\plugin.js:114:31)\n at listOnTimeout (node:internal/timers:588:17)\n at process.processTimers (node:internal/timers:523:7)","code":"AVV_ERR_PLUGIN_EXEC_TIMEOUT","name":"FastifyError","statusCode":500},"msg":"[startup] Unhandled error during server bootstrap"} [ERROR] Server exited unexpectedly. See the error above. Press any key to continue . . . ``` ## Additional context On Discord, under the questions and help tab, the thread is called 'Timeout Error on Startup?' where the issue was discussed and worked through. Bion_Sawyer and Chai were the main contributors. Bion_Sawyer would like to go on the record to agree with Chai's assessment of this being a 'stupid and rare bug.' The issue was fixed, but it was recommended to paste the logs for reproduction and patching. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:30 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kojo3906-ops commented on GitHub (May 1, 2026):

Confirming this bug from a different angle — same @fastify/static timeout, but my .lnk files weren't broken, they were just slow to read (~8 seconds total for both).
Troubleshooting that didn't fix it: deleting/reinstalling Marinara, Defender exclusion on the install folder, downgrading from Node v25 to v22 LTS, wiping node_modules.
What confirmed the cause: ran node packages\server\dist\index.js directly with DEBUG=fastify:,avvio: and LOG_LEVEL=debug. Server actually started successfully, and the debug log showed:
[11:11:06.797] INFO: [storage] DATA_DIR=...
[11:11:11.611] DEBUG: Taskbar migration: ...Start Menu...Marinara Engine.lnk already targets the launcher, skipping
[11:11:14.878] DEBUG: Taskbar migration: ...Desktop\Marinara Engine.lnk already targets the launcher, skipping
[11:11:14.966] INFO: Marinara Engine server listening on http://127.0.0.1:7860/
~5s on the first shortcut, ~3s on the second, ~8s total — well past the fastify plugin budget. Notably, the shortcuts say "already targets the launcher, skipping" — so they're valid, not broken. Just slow.

<!-- gh-comment-id:4358929689 --> @kojo3906-ops commented on GitHub (May 1, 2026): Confirming this bug from a different angle — same @fastify/static timeout, but my .lnk files weren't broken, they were just slow to read (~8 seconds total for both). Troubleshooting that didn't fix it: deleting/reinstalling Marinara, Defender exclusion on the install folder, downgrading from Node v25 to v22 LTS, wiping node_modules. What confirmed the cause: ran node packages\server\dist\index.js directly with DEBUG=fastify:,avvio: and LOG_LEVEL=debug. Server actually started successfully, and the debug log showed: [11:11:06.797] INFO: [storage] DATA_DIR=... [11:11:11.611] DEBUG: Taskbar migration: ...Start Menu...Marinara Engine.lnk already targets the launcher, skipping [11:11:14.878] DEBUG: Taskbar migration: ...Desktop\Marinara Engine.lnk already targets the launcher, skipping [11:11:14.966] INFO: Marinara Engine server listening on http://127.0.0.1:7860/ ~5s on the first shortcut, ~3s on the second, ~8s total — well past the fastify plugin budget. Notably, the shortcuts say "already targets the launcher, skipping" — so they're valid, not broken. Just slow.
Author
Owner

@SpicyMarinara commented on GitHub (May 3, 2026):

v1.5.7.

<!-- gh-comment-id:4366479916 --> @SpicyMarinara commented on GitHub (May 3, 2026): v1.5.7.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#134
No description provided.