Skip to content

[BUG] win cli版本版本,右上角叉掉命令行后再次打开提示端口已占用 #694

@god-what-is-that

Description

@god-what-is-that

系统版本

Windows 11 专业版 版本号 25H2

QQNT 版本

9.9.26-44725 (64位)

LLBot 版本

V7.7.2

OneBot 客户端

发生了什么?

如题,打开任务管理器发现node.js有两个,全关了重开就好了

Image Image

如何复现

1、打开win cli的llbot.exe
2、叉掉命令行,并关闭QQ
3、重新打开llbot.exe

期望的结果?

叉掉后能正常关闭,不需要任务管理器手动关

LLBot 运行日志

PMHQ WebSocket 连接成功
[PMHQ] Starting disconnect monitoring
配置加载成功
配置文件位于 E:\LLBot-CLI-win-x64\bin\llbot\data\config_3751153548.json
2026-01-30 13:51:25 | [EmailNotification] Service started after login


2026-01-30 13:51:25 | [EmailNotification] Watching config file: E:\LLBot-CLI-win-x64\bin\llbot\data\email_config.json


[PMHQ] Registered disconnect callback 42c50616-0139-4a06-ac9c-6d1884bac9b8 with timeout 60000ms
2026-01-30 13:51:25 | [EmailNotification] Registered PMHQ disconnect callback with ID: 42c50616-0139-4a06-ac9c-6d1884bac9b8


set ffmpeg successfully E:\LLBot-CLI-win-x64\bin\llbot\ffmpeg.exe
2026-01-30 13:51:25 | OneBot V11 WebSocket server started 127.0.0.1:8081


2026-01-30 13:51:25 | OneBot V11 HTTP SSE started 127.0.0.1:3001/_events


2026-01-30 13:51:25 | OneBot V11 正向 WS 错误 Error: listen EADDRINUSE: address already in use 127.0.0.1:8081 at Server.setupListenHandle [as _listen2] (node:net:1939:16) at listenInCluster (node:net:1996:12) at node:net:2205:7 at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '127.0.0.1', port: 8081 }


2026-01-30 13:51:25 | OneBot V11 HTTP server start error: Error: listen EADDRINUSE: address already in use 127.0.0.1:3001 at Server.setupListenHandle [as _listen2] (node:net:1939:16) at listenInCluster (node:net:1996:12) at node:net:2205:7 at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '127.0.0.1', port: 3001 }


2026-01-30 13:51:25 | OneBot V11 HTTP server started 127.0.0.1:3001


2026-01-30 13:51:25 | [EmailConfig] Configuration loaded successfully


2026-01-30 13:51:25 | [EmailNotification] Service initialized

OneBot 客户端运行日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions