Skip to content

linux上运行mcp脚本,报了这个错误,是什么问题? #14

@cjp257

Description

@cjp257

[root@HTNICE mcp]# python mcp_pipe.py device_control.py
2025-07-04 10:37:37,849 - MCP_PIPE - INFO - Connecting to WebSocket server...
2025-07-04 10:37:38,495 - MCP_PIPE - INFO - Successfully connected to WebSocket server
2025-07-04 10:37:38,502 - MCP_PIPE - INFO - Started device_control.py process
2025-07-04 10:37:48,515 - MCP_PIPE - ERROR - Error in WebSocket to process pipe: received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error
2025-07-04 10:37:48,522 - MCP_PIPE - ERROR - WebSocket connection closed: received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error

2025-07-04 10:37:48,525 - MCP_PIPE - INFO - Terminating device_control.py process
2025-07-04 10:37:48,593 - MCP_PIPE - INFO - device_control.py process terminated
2025-07-04 10:37:48,594 - MCP_PIPE - WARNING - Connection closed (attempt: 1): received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error
2025-07-04 10:37:48,595 - MCP_PIPE - INFO - Waiting 2.09 seconds before reconnection attempt 1...
2025-07-04 10:37:48,598 - MCP_PIPE - INFO - Process has ended stderr output
2025-07-04 10:37:48,600 - MCP_PIPE - INFO - Process has ended output
2025-07-04 10:37:50,690 - MCP_PIPE - INFO - Connecting to WebSocket server...
2025-07-04 10:37:50,773 - MCP_PIPE - INFO - Successfully connected to WebSocket server
2025-07-04 10:37:50,779 - MCP_PIPE - INFO - Started device_control.py process
2025-07-04 10:38:00,792 - MCP_PIPE - ERROR - Error in WebSocket to process pipe: received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error
2025-07-04 10:38:00,797 - MCP_PIPE - ERROR - WebSocket connection closed: received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error

2025-07-04 10:38:00,801 - MCP_PIPE - INFO - Terminating device_control.py process
2025-07-04 10:38:00,869 - MCP_PIPE - INFO - device_control.py process terminated
2025-07-04 10:38:00,871 - MCP_PIPE - WARNING - Connection closed (attempt: 1): received 4004 (private use) Internal server error; then sent 4004 (private use) Internal server error
2025-07-04 10:38:00,872 - MCP_PIPE - INFO - Waiting 2.06 seconds before reconnection attempt 1...
2025-07-04 10:38:00,874 - MCP_PIPE - INFO - Process has ended stderr output
2025-07-04 10:38:00,876 - MCP_PIPE - INFO - Process has ended output
^C2025-07-04 10:38:02,043 - MCP_PIPE - INFO - Received interrupt signal, shutting down...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions