[Bug]: AgnesCode启动失败
Summary
AgnesCode startup diagnostics
Collected at: 2026-07-23T09:39:33.639Z
App version: 1.0.23
Platform: win32 x64
OS: Windows_NT 10.0.26200
Main log: Startup diagnostics directory:
Backend URL: https://127.0.0.1:54283
Failure diagnosis: { "code": "BACKEND_HTTP_UNRESPONSIVE", "title": "后端端口可达,但健康接口无响应", "summary": "TCP 连接成功,但后端健康检查未在启动期限内返回有效 HTTP 响应。", "evidence": [ "TCP 目标:127.0.0.1:54283", "TCP 连接耗时:2ms", "健康检查错误:{"name":"Error","message":"net::ERR_FAILED"}" ], "suggestions": [ "检查后端事件循环、健康接口初始化和本机 TLS 请求链路。" ] }
Failure evidence: { "backendUrl": "https://127.0.0.1:54283", "externalBackend": false, "proxyRoute": "DIRECT", "proxyResolutionError": null, "proxyEnvironment": { "configured": false, "source": null, "endpoint": null, "noProxySource": null, "noProxyEntryCount": 0, "loopbackBypassDisabled": false, "loopbackEntries": [] }, "tcpProbe": { "attempted": true, "reachable": true, "target": "127.0.0.1:54283", "elapsedMs": 2, "error": null }, "healthCheckError": { "name": "Error", "message": "net::ERR_FAILED" }, "childExitCode": null, "childExitSignal": null, "childRunning": true, "certFingerprintSeen": true, "listeningMarkerSeen": true, "fatalStartupErrorSeen": false }
Startup diagnostics: -2026-07-23T09-39-03.176Z-26196.json
Startup errors: GOOSED_BOOT: main entered GOOSED_BOOT: command parsed: Discriminant(0) GOOSED_BOOT: main entered GOOSED_BOOT: appstate init start GOOSED_BOOT: tls setup start GOOSED_BOOT: listening
Captured startup stderr: GOOSED_BOOT: main entered GOOSED_BOOT: command parsed: Discriminant(0) GOOSED_BOOT: main entered GOOSED_BOOT: appstate init start GOOSED_BOOT: tls setup start GOOSED_BOOT: listening
Startup diagnostics: { "attemptId": "goosed-startup-2026-07-23T09-39-03.176Z-26196.json", "startedAt": "2026-07-23T09:39:03.176Z", "goosedPath": "D:\Program Files\AgnesCode\resources\bin\agnesd.exe", "runtimeDir": "C:......\AgnesCode\runtime", "baseUrl": "https://127.0.0.1:54283", "pid": ......., "certFingerprintSeen": true, "healthCheckSucceeded": false, "healthCheckLastError": { "name": "Error", "message": "net::ERR_FAILED" }, "childExitCode": null, "childExitSignal": null, "cleanupStarted": true, "cleanupExitCode": null, "cleanupExitSignal": null, "stderrTail": [ "GOOSED_BOOT: main entered", "GOOSED_BOOT: command parsed: Discriminant(0)", "GOOSED_BOOT: main entered", "GOOSED_BOOT: appstate init start", "GOOSED_BOOT: tls setup start", "GOOSED_BOOT: listening" ], "events": [ { "name": "spawn_start", "at": "2026-07-23T09:39:03.208Z", "elapsedMs": 32, "details": { "goosedPath": "D:\Program Files\AgnesCode\resources\bin\agnesd.exe", "port": 54283, "runtimeDir": "C:\..........\runtime" } }, { "name": "spawn_success", "at": "2026-07-23T09:39:03.278Z", "elapsedMs": ....., "details": { "pid": ..... } }, { "name": "fingerprint_received", "at": "2026-07-23T09:39:03.367Z", "elapsedMs": ......, "details": { "certFingerprint": ".............................." } }, { "name": "healthcheck_start", "at": "2026-07-23T09:39:03.367Z", "elapsedMs": 191, "details": { "timeoutMs": 30000, "requestTimeoutMs": 2000, "intervalMs": 250 } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:03.369Z", "elapsedMs": 193, "details": { "attempt": 1, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:05.742Z", "elapsedMs": ....., "details": { "attempt": 10, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:08.360Z", "elapsedMs": ....., "details": { "attempt": 20, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:10.961Z", "elapsedMs": ............, "details": { "attempt": 30, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:13.566Z", "elapsedMs": ....., "details": { "attempt": 40, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:16.199Z", "elapsedMs": ......., "details": { "attempt": 50, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:18.840Z", "elapsedMs": ........, "details": { "attempt": 60, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:21.434Z", "elapsedMs": 18258, "details": { "attempt": 70, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:24.029Z", "elapsedMs": ........, "details": { "attempt": 80, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:26.683Z", "elapsedMs": ......., "details": { "attempt": 90, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:29.259Z", "elapsedMs": ........, "details": { "attempt": 100, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_attempt_failed", "at": "2026-07-23T09:39:31.892Z", "elapsedMs": 28716, "details": { "attempt": 110, "error": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "healthcheck_timeout", "at": "2026-07-23T09:39:33.378Z", "elapsedMs": 30202, "details": { "timeoutMs": 30000, "attempts": 115, "lastError": { "name": "Error", "message": "net::ERR_FAILED" } } }, { "name": "failure_diagnosed", "at": "2026-07-23T09:39:33.381Z", "elapsedMs": 30205, "details": { "diagnosis": { "code": "BACKEND_HTTP_UNRESPONSIVE", "title": "后端端口可达,但健康接口无响应", "summary": "TCP 连接成功,但后端健康检查未在启动期限内返回有效 HTTP 响应。", "evidence": [ "TCP 目标:127.0.0.1:54283", "TCP 连接耗时:2ms", "健康检查错误:{"name":"Error","message":"net::ERR_FAILED"}" ], "suggestions": [ "检查后端事件循环、健康接口初始化和本机 TLS 请求链路。" ] }, "evidence": { "backendUrl": "https://127.0.0.1:54283", "externalBackend": false, "proxyRoute": "DIRECT", "proxyResolutionError": null, "proxyEnvironment": { "configured": false, "source": null, "endpoint": null, "noProxySource": null, "noProxyEntryCount": 0, "loopbackBypassDisabled": false, "loopbackEntries": [] }, "tcpProbe": { "attempted": true, "reachable": true, "target": "127.0.0.1:54283", "elapsedMs": 2, "error": null }, "healthCheckError": { "name": "Error", "message": "net::ERR_FAILED" }, "childExitCode": null, "childExitSignal": null, "childRunning": true, "certFingerprintSeen": true, "listeningMarkerSeen": true, "fatalStartupErrorSeen": false } } }, { "name": "cleanup_start", "at": "2026-07-23T09:39:33.382Z", "elapsedMs": 30206, "details": { "reason": "startup_failure" } } ] }
Main process log tail: [2026-07-23 17:37:21.740] [info] Copied Windows shim: uvx.exe to C:.......\Agnes\bin\uvx.exe [2026-07-23 17:37:21.936] [info] Copied Windows shim: uv.exe to C:.......\Agnes\bin\uv.exe [2026-07-23 17:37:21.937] [info] Copied Windows shim: npx.cmd to C:.......\Agnes\bin\npx.cmd [2026-07-23 17:37:21.938] [info] Added C:.......\Agnes\bin to PATH for Agnes processes only [2026-07-23 17:37:21.938] [info] Registering update IPC handlers... [2026-07-23 17:37:23.447] [info] Opening URL: file:///D:/Program%20Files/AgnesCode/resources/app.asar/.vite/renderer/main_window/index.html#/? [2026-07-23 17:37:23.463] [info] Starting agnesd from: D:\Program Files\AgnesCode\resources\bin\agnesd.exe on port 57076 in dir C:.......\AgnesCode\runtime [2026-07-23 17:37:23.467] [info] Spawn options: { "cwd": "C:\.......\Roaming\AgnesCode\runtime", "windowsHide": true, "detached": true, "shell": false, "stdio": [ "ignore", "pipe", "pipe" ], "env": { "AGNES_BFF_BASE_URL": "https://api-agnes-code.agnes-ai.com/v1", "AGNES_DEFAULT_PROVIDER": "agnes", "AGNES_DOCS_BASE_URL": "https://agnescode.agnes-ai.com", "AGNES_SA_WEB_LOGIN_URL": "https://app.agnes-ai.com/", "AGNES_UPDATE_URL": "https://github.com/AgnesAI-Labs/AgnesCode/releases/latest/download/", "APPDATA": "C:\.......\Roaming", "LOCALAPPDATA": "C:\.......\Local", "USERPROFILE": "C:\.......", "HOME": "C:\.......", "AGNES_SLIDE_EXPORT_RUNTIME_DIR": "D:\Program Files\AgnesCode\resources\slide_export_runtime\converter", "AGNES_NODE_DIR": "D:\Program Files\AgnesCode\resources\slide_export_runtime\node", "AGNES_PORT": "57076", "AGNES_SERVER__SECRET_KEY": "[REDACTED]" }, "inheritedEnvCount": 59 } [2026-07-23 17:37:48.623] [info] Goosed server successfully started on port 57076 [2026-07-23 17:37:48.640] [info] Setting up auto-updater after window creation... [2026-07-23 17:37:48.641] [info] Setting up auto-updater... [2026-07-23 17:37:48.641] [info] Current app version: 1.0.23 [2026-07-23 17:37:48.642] [info] Platform: win32, Arch: x64 [2026-07-23 17:37:48.642] [info] AGNES_UPDATE_URL configured: true [2026-07-23 17:37:48.643] [info] App is packaged: true [2026-07-23 17:37:48.643] [info] Is dev build: false [2026-07-23 17:37:48.644] [info] App path: D:\Program Files\AgnesCode\resources\app.asar [2026-07-23 17:37:48.644] [info] Resources path: D:\Program Files\AgnesCode\resources [2026-07-23 17:37:48.644] [info] Setting update feed URL: { provider: 'generic', url: 'https://github.com/AgnesAI-Labs/AgnesCode/releases/latest/download/' } [2026-07-23 17:37:48.646] [info] Auto-updater install directory: D:\Program Files\AgnesCode [2026-07-23 17:37:48.647] [info] Feed URL set to: Deprecated. Do not use it. [2026-07-23 17:37:48.647] [info] App is packaged - this is a release build [2026-07-23 17:37:48.648] [info] Auto-updater channel: null [2026-07-23 17:37:48.648] [info] Auto-updater allowPrerelease: false [2026-07-23 17:37:48.649] [info] Auto-updater allowDowngrade: false [2026-07-23 17:37:48.649] [info] Auto-updater setup completed [2026-07-23 17:37:48.649] [info] === STARTUP UPDATE CHECK INITIATED === [2026-07-23 17:37:48.650] [info] Checking for updates on startup at 2026-07-23T09:37:48.650Z [2026-07-23 17:37:48.650] [info] autoUpdater.currentVersion: {"options":{},"loose":false,"includePrerelease":false,"raw":"1.0.23","major":1,"minor":0,"patch":23,"prerelease":[],"build":[],"version":"1.0.23"} [2026-07-23 17:37:48.651] [info] autoUpdater.getFeedURL(): Deprecated. Do not use it. [2026-07-23 17:37:48.651] [info] Checking for update [2026-07-23 17:37:48.652] [info] Auto-updater: Checking for update... [2026-07-23 17:37:48.652] [info] Auto-updater: Feed URL during check: Deprecated. Do not use it. [2026-07-23 17:37:48.706] [info] Generated new staging user ID: 5bc.......345f [2026-07-23 17:37:48.708] [info] agnesd stdout for port 57076 and dir C:.......\AgnesCode\runtime: GOOSED_CERT_FINGERPRINT=DB:.......:06
[2026-07-23 17:37:48.708] [info] Pinned cert fingerprint: DB.......:06
[2026-07-23 17:37:49.109] [info] [Main] Auth listener ready { windowId: 2, hasPendingPayload: false }
[2026-07-23 17:38:08.759] [error] Error: Error: net::ERR_CONNECTION_RESET
at SimpleURLLoaderWrapper.
[2026-07-23 17:39:03.366] [info] Pinned cert fingerprint: DB.......:06 [2026-07-23 17:39:33.383] [info] Terminating Agnes backend server
Steps to reproduce
Expected behavior
AgnesCode启动失败
Actual behavior
AgnesCode启动失败
Environment
No response
感谢您的反馈。
Thanks for your feedback.
请访问以下页面下载国内版 Agnes Code,并在软件内使用邮箱账号登录:
Please download the domestic version of Agnes Code from the following page and log in to the application using your email account:
https://agnes-ai.cn/agnescode
同时需要注意,国内站与国际站目前使用相互独立的账号及 API Key 体系。
Please also note that the domestic and international sites currently use separate account and API key systems.