git clone下到一半卡住不动
- 你是否在现有 Issue列表 中搜索过相同问题,但未找到?
Ⅰ. 请说明操作系统及DS的版本号:
- 操作系统:ubuntu24.04
- DS版本号:2.2.0
Ⅱ. 问题描述:
使用 Dev-Sidecar 加速 git clone 任意 GitHub 仓库(包括很小的仓库),clone 开始传输后必现卡死。前两次 POST .../git-upload-pack 返回 200,第三次 POST 在代理侧超时 7000ms 后 ECONNRESET
Ⅲ. 期望的结果:
能正常git clone下载
Ⅳ. 如何复现问题?
- 开启dev-sidecar的git加速,然后执行git clone随便下载一个仓库,刚开始很好,过几秒就卡住不动
Ⅴ. 请提供相关的错误日志,尽可能的详细:(日志文件在 ${user.home}/.dev-sidecar/logs/ 目录下)
点击查看日志[2026-08-19T15:05:49.091] [ERROR] server - 连接超时: POST ➜ https://github.com:443/deepseek-ai/deepseek-harness.git/git-upload-pack, cost: 7000 ms , rOptions: { protocol: 'https:', method: 'POST', url: '/deepseek-ai/deepseek-harness.git/git-upload-pack', hostname: 'github.com', port: 443, path: '/deepseek-ai/deepseek-harness.git/git-upload-pack', headers: { host: 'github.com', 'user-agent': 'git/2.43.0', 'accept-encoding': 'deflate, gzip, br, zstd', 'content-type': 'application/x-git-upload-pack-request', accept: 'application/x-git-upload-pack-result', 'accept-language': 'en-US, *;q=0.9', 'git-protocol': 'version=2', 'content-length': '175', connection: 'keep-alive' }, agent: HttpsAgent { _events: [Object: null prototype] { free: [Array], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, options: [Object: null prototype] { keepAlive: true, timeout: 20000, checkServerIdentity: [Function: checkServerIdentity], rejectUnauthorized: false, freeSocketTimeout: 30000, socketActiveTTL: 0, noDelay: true, path: null }, defaultPort: 443, protocol: 'https:', requests: [Object: null prototype] {}, sockets: [Object: null prototype] { 'github.com:443::::::::false:baidu.com:::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, agentKeepAliveTimeoutBuffer: 1000, createSocketCount: 417, createSocketCountLastCheck: 0, createSocketErrorCount: 0, createSocketErrorCountLastCheck: 0, closeSocketCount: 416, closeSocketCountLastCheck: 0, errorSocketCount: 8, errorSocketCountLastCheck: 0, requestCount: 1056, requestCountLastCheck: 0, timeoutSocketCount: 334, timeoutSocketCountLastCheck: 0, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, Symbol(shapeMode): false, Symbol(kCapture): false, Symbol(agentkeepalive#currentId): 417 }, compatibleConfig: { connect: { origin: {} }, request: { origin: {} } }, maxHeaderSize: 65536, servername: 'baidu.com', host: 'github.com', lookup: [Function (anonymous)] } [2026-08-19T15:05:49.504] [ERROR] server - 连接超时: POST ➜ https://github.com:443/deepseek-ai/deepseek-harness.git/git-upload-pack, cost: 7000 ms , rOptions: { protocol: 'https:', method: 'POST', url: '/deepseek-ai/deepseek-harness.git/git-upload-pack', hostname: 'github.com', port: 443, path: '/deepseek-ai/deepseek-harness.git/git-upload-pack', headers: { host: 'github.com', 'user-agent': 'git/2.43.0', 'accept-encoding': 'deflate, gzip, br, zstd', 'content-type': 'application/x-git-upload-pack-request', accept: 'application/x-git-upload-pack-result', 'accept-language': 'en-US, *;q=0.9', 'git-protocol': 'version=2', 'content-length': '252', connection: 'keep-alive' }, agent: HttpsAgent { _events: [Object: null prototype] { free: [Array], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, options: [Object: null prototype] { keepAlive: true, timeout: 20000, checkServerIdentity: [Function: checkServerIdentity], rejectUnauthorized: false, freeSocketTimeout: 30000, socketActiveTTL: 0, noDelay: true, path: null }, defaultPort: 443, protocol: 'https:', requests: [Object: null prototype] {}, sockets: [Object: null prototype] { 'github.com:443::::::::false:baidu.com:::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, agentKeepAliveTimeoutBuffer: 1000, createSocketCount: 417, createSocketCountLastCheck: 0, createSocketErrorCount: 0, createSocketErrorCountLastCheck: 0, closeSocketCount: 416, closeSocketCountLastCheck: 0, errorSocketCount: 8, errorSocketCountLastCheck: 0, requestCount: 1056, requestCountLastCheck: 0, timeoutSocketCount: 335, timeoutSocketCountLastCheck: 0, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, Symbol(shapeMode): false, Symbol(kCapture): false, Symbol(agentkeepalive#currentId): 418 }, compatibleConfig: { connect: { origin: {} }, request: { origin: {} } }, maxHeaderSize: 65536, servername: 'baidu.com', host: 'github.com', lookup: [Function (anonymous)] } [2026-08-19T15:05:49.506] [ERROR] server - 代理请求错误: POST ➜ https://github.com:443/deepseek-ai/deepseek-harness.git/git-upload-pack, cost: 7001 ms, error: Error: 连接超时: POST ➜ https://github.com:443/deepseek-ai/deepseek-harness.git/git-upload-pack, cost: 7000 ms at Timeout._onTimeout (/opt/dev-sidecar/resources/app.asar/node_modules/@docmirror/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js:196:30) at listOnTimeout (node:internal/timers:605:17) at process.processTimers (node:internal/timers:541:7) , rOptions: { protocol: 'https:', method: 'POST', url: '/deepseek-ai/deepseek-harness.git/git-upload-pack', hostname: 'github.com', port: 443, path: '/deepseek-ai/deepseek-harness.git/git-upload-pack', headers: { host: 'github.com', 'user-agent': 'git/2.43.0', 'accept-encoding': 'deflate, gzip, br, zstd', 'content-type': 'application/x-git-upload-pack-request', accept: 'application/x-git-upload-pack-result', 'accept-language': 'en-US, *;q=0.9', 'git-protocol': 'version=2', 'content-length': '252', connection: 'keep-alive' }, agent: HttpsAgent { _events: [Object: null prototype] { free: [Array], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, options: [Object: null prototype] { keepAlive: true, timeout: 20000, checkServerIdentity: [Function: checkServerIdentity], rejectUnauthorized: false, freeSocketTimeout: 30000, socketActiveTTL: 0, noDelay: true, path: null }, defaultPort: 443, protocol: 'https:', requests: [Object: null prototype] {}, sockets: [Object: null prototype] { 'github.com:443::::::::false:baidu.com:::::::::::::': [Array] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, agentKeepAliveTimeoutBuffer: 1000, createSocketCount: 419, createSocketCountLastCheck: 0, createSocketErrorCount: 0, createSocketErrorCountLastCheck: 0, closeSocketCount: 420, closeSocketCountLastCheck: 0, errorSocketCount: 9, errorSocketCountLastCheck: 0, requestCount: 1060, requestCountLastCheck: 0, timeoutSocketCount: 336, timeoutSocketCountLastCheck: 0, maxCachedSessions: 100, _sessionCache: { map: [Object], list: [Array] }, Symbol(shapeMode): false, Symbol(kCapture): false, Symbol(agentkeepalive#currentId): 421 }, compatibleConfig: { connect: { origin: {} }, request: { origin: {} } }, maxHeaderSize: 65536, servername: 'baidu.com', host: 'github.com', lookup: [Function (anonymous)] } [2026-08-19T15:05:49.507] [ERROR] server - proxy res error: POST ➜ https://github.com:443/deepseek-ai/deepseek-harness.git/git-upload-pack, error: Error: aborted at TLSSocket.socketCloseListener (node:_http_client:553:19) at TLSSocket.emit (node:events:521:24) at node:net:350:12 at TCP.done (node:internal/tls/wrap:674:7) { code: 'ECONNRESET' }
Ⅵ. 有必要时,请提供 ${user.home}/.dev-sidecar/running.json 文件内容:
点击查看运行参数{ "intercepts": { "github.com": { "^(/[\w-.]+){2,}/?(\?.)?$": { "tampermonkeyScript": "https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/tampermonkey.js", "script": "https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/GithubEnhanced-High-Speed-Download.user.js", "remark": "注:上面所使用的脚本地址,为高速镜像地址。", "desc": "油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令" }, "^((/[^/]+){2,})/raw((/[^/]+)+\.(jpg|jpeg|png|gif))(\?.)?$": { "proxy": "https://raw.githubusercontent.com${m[1]}${m[3]}", "sni": "baidu.com", "cacheDays": 7, "desc": "仓库内图片,重定向改为代理,并缓存7天。" }, "^((/[^/]+){2,})/raw((/[^/]+)+\.js)(\?.)?$": { "proxy": "https://raw.githubusercontent.com${m[1]}${m[3]}", "sni": "baidu.com", "desc": "仓库内脚本,重定向改为代理,并设置响应头Content-Type。作用:方便script拦截器直接使用,避免引起跨域问题和脚本内容限制问题。", "responseReplace": { "headers": { "content-type": "application/javascript; charset=utf-8" } } }, ".": { "sni": "baidu.com" }, "/fluidicon.png": { "cacheDays": 365, "desc": "Github那只猫的图片,缓存1年" }, "^(/[^/]+){2}/pull/\d+/open_with_menu.$": { "cacheDays": 7, "desc": "PR详情页:标题右边那个Code按钮的HTML代码请求地址,感觉上应该可以缓存。暂时先设置为缓存7天" } }, "github.githubassets.com": { ".": { "sni": "baidu.com" } }, "collector.github.com": { ".": { "sni": "baidu.com" } }, ".docker.com": { ".": { "sni": "baidu.com" } }, "login.docker.com": { "/favicon.ico": { "proxy": "hub.docker.com", "sni": "baidu.com", "desc": "登录页面的ico,采用hub.docker.com的" } }, "ajax.googleapis.com": { ".": { "proxy": "ajax.proxy.ustclug.org", "backup": [ "gapis.geekzu.org" ], "test": "ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" } }, "fonts.googleapis.com": { ".": { "backup": [ "fonts.loli.net" ], "proxy": "fonts.googleapis.cn", "test": "https://fonts.googleapis.com/css?family=Oswald" } }, "fonts.gstatic.com": { ".": { "proxy": "fonts-gstatic.proxy.ustclug.org", "backup": [ "gstatic.loli.net" ], "test": "https://fonts.googleapis.com/css?family=Oswald" } }, "api.github.com": { ".": { "sni": "baidu.com" }, "^/_private/browser/stats$": { "success": true, "desc": "github的访问速度分析上传,没有必要,直接返回成功" } }, "www.gstatic.com": { "/recaptcha/.": { "proxy": "www.recaptcha.net" } }, "camo.githubusercontent.com": { "^[a-zA-Z0-9/]+(\?.)?$": { "cacheDays": 365, "desc": "图片,缓存1年" } }, "customer-stories-feed.github.com": { ".": { "proxy": "customer-stories-feed.fastgit.org" } }, "user-images.githubusercontent.com": { "^/.\.png(\?.)?$": { "cacheDays": 365, "desc": "用户在PR或issue等内容中上传的图片,缓存1年。注:每张图片都有唯一的ID,不会重复,可以安心缓存" } }, "private-user-images.githubusercontent.com": { "^/.\.png(\?.)?$": { "cacheDays": 30, "desc": "用户在PR或issue等内容中上传的图片,缓存30天" } }, "avatars.githubusercontent.com": { "^/u/\d+(\?.)?$": { "cacheDays": 365, "desc": "用户头像,缓存1年" } }, "www.google.com": { "/recaptcha/.": { "proxy": "www.recaptcha.net" } }, "themes.googleapis.com": { ".": { "proxy": "themes.loli.net", "backup": [ "themes.proxy.ustclug.org" ] } }, "themes.googleusercontent.com": { ".": { "proxy": "google-themes.proxy.ustclug.org" } }, "clients*.google.com": { ".": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, "www.googleapis.com": { ".": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, "lh*.googleusercontent.com": { ".": { "abort": false, "desc": "设置abort:true可以快速失败,节省时间" } }, ".s3.1amazonaws1.com": { "/sqlite3/.": { "redirect": "npmmirror.com/mirrors" } }, ".carbonads.com": { "/carbon.": { "abort": true, "desc": "广告拦截" } }, ".buysellads.com": { "/ads/.": { "abort": true, "desc": "广告拦截" } } }, "preSetIpList": { "github.com": { "4.237.22.38": true, "20.26.156.215": true, "20.87.245.0": true, "20.201.28.151": true, "140.82.113.3": true, "140.82.114.4": true, "140.82.116.3": true, "140.82.116.4": true, "140.82.121.3": true, "140.82.121.4": true, "20.200.245.247": true, "20.27.177.113": true, "20.205.243.166": true }, "hub.docker.com": { "44.221.37.199": true, "52.44.227.212": true, "54.156.140.159": true }, "sessions-bugsnag.docker.com": { "44.221.37.199": true, "52.44.227.212": true, "54.156.140.159": true }, "api.github.com": { "20.26.156.210": true, "20.27.177.116": true, "20.87.245.6": true, "20.200.245.245": true, "20.201.28.148": true, "20.205.243.168": true, "20.248.137.49": true, "140.82.112.5": true, "140.82.113.6": true, "140.82.116.6": true, "140.82.121.6": true }, "codeload.github.com": { "20.26.156.216": true, "20.27.177.114": true, "20.87.245.7": true, "20.200.245.246": true, "20.201.28.149": true, "20.205.243.165": true, "20.248.137.55": true, "140.82.113.9": true, "140.82.114.10": true, "140.82.116.10": true, "140.82.121.9": true }, ".githubusercontent.com": { "146.75.92.133": true, "199.232.88.133": true, "199.232.144.133": true }, "viewscreen.githubusercontent.com": { "140.82.112.21": true, "140.82.112.22": true, "140.82.113.21": true, "140.82.113.22": true, "140.82.114.21": true, "140.82.114.22": true }, "github.io": { "185.199.108.153": true, "185.199.109.153": true, "185.199.110.153": true, "185.199.111.153": true }, ".githubassets.com": { "185.199.108.154": true, "185.199.109.154": true, "185.199.110.154": true, "185.199.111.154": true }, "^(analytics|ghcc)\.githubassets\.com$": { "185.199.108.153": true, "185.199.110.153": true, "185.199.109.153": true, "185.199.111.153": true }, ".pixiv.net": { "210.140.139.154": true, "210.140.139.157": true, "210.140.139.160": true } }, "whiteList": { "cn.": true, "192.168.": true, ".cn": true, "china": true, ".dingtalk.com": true, ".apple.com": true, ".microsoft.com": true, ".alipay.com": true, ".qq.com": true, ".baidu.com": true }, "dns": { "providers": { "safe360": { "server": "tls://dot.360.cn", "forSNI": true }, "aliyun": { "server": "tls://dns.alidns.com" }, "cloudflare": { "server": "https://1.1.1.1/dns-query" }, "quad9": { "server": "https://9.9.9.9/dns-query" }, "rubyfish": { "server": "https://rubyfish.cn/dns-query" } }, "mapping": { ".github.com": "quad9", "github.com": "quad9", ".github.io": "quad9", ".docker.com": "quad9", ".stackoverflow.com": "quad9", ".electronjs.org": "quad9", ".amazonaws.com": "quad9", ".yarnpkg.com": "quad9", ".cloudfront.net": "quad9", ".cloudflare.com": "quad9", "img.shields.io": "quad9", ".vuepress.vuejs.org": "quad9", ".gh.docmirror.top": "quad9", ".v2ex.com": "quad9", ".pypi.org": "quad9", ".jetbrains.com": "quad9", ".azureedge.net": "quad9" }, "familyMapping": { ".jetbrains.com": "4", ".azureedge.net": "4", ".stackoverflow.com": "4", ".github.com": "4", "github.com": "4", ".github.io": "4", ".docker.com": "4", ".electronjs.org": "4", ".amazonaws.com": "4", ".yarnpkg.com": "4", ".cloudfront.net": "4", ".cloudflare.com": "4", "img.shields.io": "4", ".vuepress.vuejs.org": "4", ".gh.docmirror.top": "4", ".v2ex.com": "4", ".pypi.org": "4" }, "speedTest": { "interval": 300000, "hostnameList": [ "github.com" ], "dnsProviders": [ "cloudflare", "safe360", "rubyfish" ], "enabled": true } }, "enabled": true, "host": "127.0.0.1", "port": 31181, "fakeServerMaxLength": 100, "setting": { "NODE_TLS_REJECT_UNAUTHORIZED": true, "verifySsl": true, "script": { "enabled": true, "defaultDir": "./extra/scripts/" }, "userBasePath": "/home/kale/.dev-sidecar", "rootCaFile": { "certPath": "/home/kale/.dev-sidecar/dev-sidecar.ca.crt", "keyPath": "/home/kale/.dev-sidecar/dev-sidecar.ca.key.pem" }, "defaultTimeout": 20000, "defaultKeepAliveTimeout": 30000, "timeoutMapping": { "github.com": { "timeout": 20000, "keepAliveTimeout": 30000 } }, "lowSpeedDelay": 200 }, "compatible": { "connect": {}, "request": {} }, "intercept": { "enabled": true }, "app": { "metaInfo": { "updateLog": "GUI v2.0.2自带配置", "version": 202604122348, "id": "internal" }, "theme": "light", "remoteConfig": { "url": "https://raw.giteeusercontent.com/wangliang181230/dev-sidecar-config/raw/main/remote_config.json", "enabled": true, "personalUrl": "" }, "mode": "default", "autoStart": { "enabled": false }, "startShowWindow": true, "needCheckHideWindow": true, "showHideShortcut": "Alt + S", "windowSize": { "width": 900, "height": 750 }, "autoChecked": true, "skipPreRelease": true, "dock": { "hideWhenWinClose": false }, "closeStrategy": 0, "showShutdownTip": true, "logFileSavePath": "/home/kale/.dev-sidecar/logs", "keepLogFileCount": 15, "maxLogFileSize": 1, "maxLogFileSizeUnit": "GB" }, "plugin": { "git": { "enabled": true, "name": "Git.exe代理", "tip": "如果你没有安装git命令行则不需要启动它", "setting": { "sslVerify": true, "noProxyUrls": { "https://gitee.com": true, "https://e.coding.net": true, "https://codeup.aliyun.com": true } } }, "overwall": { "targets": { ".github.com": true, "github.com": true, ".gitbook.io": true, ".nodejs.org": true, ".npmjs.com": true, ".wikimedia.org": true, ".v2ex.com": true, ".azureedge.net": true, ".cloudfront.net": true, ".bing.com": true, ".discourse-cdn.com": true, ".gravatar.com": true, ".docker.com": true, ".vueuse.org": true, ".elastic.co": true, ".optimizely.com": true, ".stackpathcdn.com": true, ".fastly.net": true, ".cloudflare.com": true, ".233v2.com": true, ".v2fly.org": true, ".telegram.org": true, ".amazon.com": true, ".googleapis.com": true, ".google-analytics.com": true, ".cloudflareinsights.com": true, ".intlify.dev": true, ".segment.io": true, ".shields.io": true, ".jsdelivr.net": true, ".z-library.sk": true, ".zlibrary*.se": true, ".discord.com": true, ".wikipedia-on-ipfs.org": true, ".chatgpt.com": false, ".oaiusercontent.com": true, ".huggingface.co": true, ".pixiv.org": true, ".fanbox.cc": true, ".onesignal.com": true, ".greasyfork.org": true, ".cn-greasyfork.org": true, "*.notepad-plus-plus.org": true }, "pac": { "pacFileUpdateUrl": "https://xget.xi-xu.me/gh/gfwlist/gfwlist/raw/master/gfwlist.txt", "enabled": true, "autoUpdate": true, "pacFilePath": "./extra/pac/pac.txt" }, "name": "梯子", "enabled": false, "server": {}, "serverDefault": { "
Source: docmirror/dev-sidecar