mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-21 03:05:29 -04:00
issue: No clean shutdown & misconfiguration startup hang #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @socket23 on GitHub (Apr 11, 2025).
Check Existing Issues
mcpo Version
0.0.10
Open WebUI Version (if applicable)
v0.6.2
Operating System
Windows 11 Pro Insider Preview 24H2
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Clean shutdown
Actual Behavior
INFO: Started server process [10448]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:52832 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:52835 - "OPTIONS /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:52835 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:52858 - "GET /memory HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:52858 - "GET /memory/ HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:52858 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [10448]
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000002CA5786DEE0>
Traceback (most recent call last):
File "C:\Python312\Lib\asyncio\proactor_events.py", line 116, in del
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
^^^^^^^^
File "C:\Python312\Lib\asyncio\proactor_events.py", line 80, in repr
info.append(f'fd={self._sock.fileno()}')
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Exception ignored in: <function BaseSubprocessTransport.del at 0x000002CA5786C720>
Traceback (most recent call last):
File "C:\Python312\Lib\asyncio\base_subprocess.py", line 125, in del
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
^^^^^^^^
File "C:\Python312\Lib\asyncio\base_subprocess.py", line 78, in repr
info.append(f'stdout={stdout.pipe}')
^^^^^^^^^^^^^
File "C:\Python312\Lib\asyncio\proactor_events.py", line 80, in repr
info.append(f'fd={self._sock.fileno()}')
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Steps to Reproduce
Ctrl + C to shutdown
Logs & Screenshots
Included. tell me what else I need to post.
Additional Information
When tring to setup any mcp server, especially mcp-git via config.json, if the configuration is incorrect, the startup will hang and one cannot ctrl+c to close it.
@tjbck commented on GitHub (Apr 11, 2025):
Unable to reproduce, PR welcome!
@j820301 commented on GitHub (Apr 14, 2025):
I guess socket23 is asking, if an mcp server is started using the mcpo command or fails to start, how to terminate the service started by mcpo
For example, using a method like 'docker run or down', or simply using CTRL+C?
@socket23 commented on GitHub (Apr 16, 2025):
You have to use the PID and terminate manually .. just pointing this out.
Maybe like a failover ?
@taylorwilsdon commented on GitHub (May 11, 2025):
+1 on this, you cannot fully kill & exit the process if started from a command line with cmd + c
Will take a look
@taylorwilsdon commented on GitHub (May 11, 2025):
pr https://github.com/open-webui/mcpo/pull/129 will fix this ^
@socket23 commented on GitHub (May 11, 2025):
Clean shut down would be nice.