-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
BugSomething isn't workingSomething isn't working
Description
Bug Description
The unhealthy mcp mcp-fetch-1757591427
caused an error during the shutdown process, this cause an issue within the installation of the new electron app.
The root of the issue could be the time passed from a dirty internal state of AutoUpdater caused by the shutdown timeout. We should retry the quitAndInstall
for this specific use case, after a more robust cleanup.

Logs
[2025-09-16 10:38:40.090] [info] update-not-available
[2025-09-16 10:38:40.091] [warn] [update] update became unavailable during download - ignoring
[2025-09-16 10:48:39.346] [info] checking-for-update
[2025-09-16 10:48:39.347] [info] [update] checking for updates...
[2025-09-16 10:48:39.729] [info] update-available; downloading...
[2025-09-16 10:48:40.103] [info] update-not-available
[2025-09-16 10:48:40.104] [warn] [update] update became unavailable during download - ignoring
[2025-09-16 10:48:51.713] [info] [update] installing update to version: v0.6.0
[2025-09-16 10:48:51.714] [info] [update] removing quit listeners to avoid interference
[2025-09-16 10:48:51.715] [info] [update] starting graceful shutdown before update...
[2025-09-16 10:48:51.722] [info] [beforeLoad] Skipping health API check - update in progress
[2025-09-16 10:48:52.277] [info] Found 5 running servers: [
'github-cli',
'github-ui-3',
'fetch-ui-2',
'mcp-fetch-1757591427',
'fetch-test-api'
]
[2025-09-16 10:48:52.290] [info] Stopping 5 servers...
[2025-09-16 10:48:52.311] [info] Still waiting for 5 servers to reach final state: fetch-test-api(stopping), github-ui-3(stopping), github-cli(stopping), fetch-ui-2(stopping), mcp-fetch-1757591427(stopping)
[2025-09-16 10:48:54.333] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:48:56.352] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:48:58.367] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:00.384] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:02.403] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:04.422] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:06.438] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:08.458] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:10.476] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:12.491] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:14.504] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:16.522] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:18.539] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:20.556] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:22.569] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:24.583] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:26.601] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:28.619] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:30.639] [info] Still waiting for 1 servers to reach final state: mcp-fetch-1757591427(stopping)
[2025-09-16 10:49:30.640] [error] Some servers failed to stop within timeout
[2025-09-16 10:49:30.640] [error] [update] Server shutdown failed: Error: Some servers failed to stop within timeout
at lN (/Applications/ToolHive.app/Contents/Resources/app.asar/.vite/build/main-DrgTIoqV.js:59:11593)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async _oe (/Applications/ToolHive.app/Contents/Resources/app.asar/.vite/build/main-DrgTIoqV.js:59:21855)
at async wU (/Applications/ToolHive.app/Contents/Resources/app.asar/.vite/build/main-DrgTIoqV.js:59:22579)
at async AutoUpdater.<anonymous> (/Applications/ToolHive.app/Contents/Resources/app.asar/.vite/build/main-DrgTIoqV.js:61:136)
[2025-09-16 10:49:30.641] [warn] [update] Server shutdown failed, proceeding with update anyway
[2025-09-16 10:49:30.642] [info] Stopping ToolHive process...
[2025-09-16 10:49:30.643] [info] [stopToolhive] Process stopped and reset
[2025-09-16 10:49:30.643] [info] [update] ToolHive stopped
[2025-09-16 10:49:30.644] [info] [tray] Tray destroyed successfully
[2025-09-16 10:49:30.645] [info] [update] all cleaned up, calling autoUpdater.quitAndInstall()...
[2025-09-16 10:49:30.759] [warn] ToolHive process exited with code: null
[2025-09-16 10:49:30.765] [info] updater error
[2025-09-16 10:49:30.765] [info] Error: No update available, can't quit and install
[2025-09-16 10:49:30.765] [error] [update] there was a problem updating the application: Error: No update available, can't quit and install
[2025-09-16 10:49:30.765] [info] [update] update state: installing
[2025-09-16 10:49:30.765] [info] [update] toolhive binary is running: false
[2025-09-16 10:51:17.576] [error] ToolHive is not running
[2025-09-16 10:51:17.994] [error] Error: TypeError: Failed to fetch (localhost:64624)
at Object.beforeLoad (file:///Applications/ToolHive.app/Contents/Resources/app.asar/.vite/renderer/main_window/assets/index-G11VElAX.js:428:23602)
at async ZT (file:///Applications/ToolHive.app/Contents/Resources/app.asar/.vite/renderer/main_window/assets/index-G11VElAX.js:50:65651)
at async file:///Applications/ToolHive.app/Contents/Resources/app.asar/.vite/renderer/main_window/assets/index-G11VElAX.js:50:75398
[2025-09-16 10:51:18.177] [warn] No container engines detected
[2025-09-16 10:51:47.326] [warn] No container engines detected
[2025-09-16 10:51:50.405] [warn] No container engines detected
Steps to Reproduce
No response
Expected Behavior
No response
Actual Behavior
No response
Priority
Medium
Environment
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working