`sf project deploy start` hangs very early on
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js
- 领域
- cli
调研方向
首先,使用所描述的命令和 Docker/WSL2 环境复现 sf project deploy start,然后将 telemetry 设置点与诊断结果进行比较,尤其关注失败的 v2 加密支持检查。完成的标准是确定该命令为何在 telemetry 初始化后停止,并通过可复现的验证记录或修复此挂起问题。
由索引模型根据 Issue 内容生成。
描述
Expected result
When running sf project deploy start, the command seems to hang:
sf project deploy start --api-version 63.0 --ignore-conflicts --manifest /app/scripts/ci-deployment-files/package/package.xml --dev-debug --target-org [email protected] --json
sf:telemetry Usage acknowledgement file already exists +0ms
sf:telemetry Using telemetry logging file /tmp/sf-telemetry/telemetry-04dbb7d5df9092d6b4c31014f737e23135f3c4b8.log +1ms
sf:telemetry Setting up process exit handler +14ms
Actual result
In a CI context, this never happens, however when I run the script locally via docker, the hanging occurs.
Additional information
System Information
{
"versionDetail": {
"architecture": "linux-x64",
"cliVersion": "@salesforce/cli/2.86.9",
"nodeVersion": "node-v18.20.8",
"osVersion": "Linux 5.15.167.4-microsoft-standard-WSL2",
"rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
"shell": "bash",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.27 (core)",
"@oclif/plugin-commands 4.1.24 (core)",
"@oclif/plugin-help 6.2.27 (core)",
"@oclif/plugin-not-found 3.2.49 (core)",
"@oclif/plugin-plugins 5.4.36 (core)",
"@oclif/plugin-search 1.2.23 (core)",
"@oclif/plugin-update 4.6.38 (core)",
"@oclif/plugin-version 2.2.27 (core)",
"@oclif/plugin-warn-if-update-available 3.1.38 (core)",
"@oclif/plugin-which 3.2.34 (core)",
"@salesforce/cli 2.86.9 (core)",
"apex 3.6.13 (core)",
"api 1.3.3 (core)",
"auth 3.6.113 (core)",
"data 4.0.27 (core)",
"deploy-retrieve 3.22.4 (core)",
"info 3.4.54 (core)",
"limits 3.3.52 (core)",
"marketplace 1.3.8 (core)",
"org 5.7.3 (core)",
"packaging 2.13.1 (core)",
"schema 3.3.59 (core)",
"settings 2.4.24 (core)",
"sobject 1.4.55 (core)",
"telemetry 3.6.38 (core)",
"templates 56.3.45 (core)",
"trust 3.7.83 (core)",
"user 3.6.18 (core)",
"sfdmu 4.38.0 (user)",
"sfdx-browserforce-plugin 4.7.0 (user)",
"sfdx-git-delta 6.5.1 (user)"
]
},
"sfdxEnvVars": [],
"sfEnvVars": [
[
"SF_SP_SITE_ID",
"pinkuniversity.sharepoint.com,821a96fb-efc4-4bbe-b529-59ea6195047a,c1dc1202-dee4-42a6-a21a-9694b39f5fb8"
],
[
"SF_AUTOUPDATE_DISABLE",
"true"
],
[
"SF_DISABLE_AUTOUPDATE",
"true"
],
[
"SF_UPDATE_INSTRUCTIONS",
"Use \"npm update --global @salesforce/cli\" to update npm-based installations."
]
],
"proxyEnvVars": [],
"cliConfig": {
"arch": "x64",
"bin": "sf",
"binAliases": [
"sfdx"
],
"cacheDir": "/root/.cache/sf",
"channel": "stable",
"configDir": "/root/.config/sf",
"dataDir": "/root/.local/share/sf",
"dirname": "sf",
"flexibleTaxonomy": true,
"home": "/root",
"isSingleCommandCLI": false,
"name": "@salesforce/cli",
"nsisCustomization": "scripts/nsis.nsi",
"platform": "linux",
"root": "/usr/local/lib/node_modules/@salesforce/cli",
"shell": "bash",
"theme": {
"bin": "blueBright",
"command": "blueBright",
"dollarSign": "green",
"flag": "green",
"flagDefaultValue": "blueBright",
"flagOptions": "blueBright",
"flagRequired": "red",
"sectionHeader": "blue",
"topic": "blueBright",
"json": {
"brace": "whiteBright",
"bracket": "whiteBright",
"comma": "green",
"key": "blueBright",
"string": "greenBright",
"number": "blue",
"boolean": "redBright",
"null": "blackBright"
}
},
"topicSeparator": " ",
"updateConfig": {
"node": {
"options": [
"--no-deprecation"
]
},
"s3": {
"bucket": "dfc-data-production",
"host": "https://developer.salesforce.com",
"templates": {
"target": {
"baseDir": "<%- bin %>",
"manifest": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>",
"unversioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>",
"versioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>"
},
"vanilla": {
"baseDir": "<%- bin %>",
"manifest": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version",
"unversioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>",
"versioned": "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>"
}
}
}
},
"userAgent": "@salesforce/cli/2.86.9 linux-x64 node-v18.20.8",
"valid": true,
"version": "2.86.9",
"warned": false,
"windows": false,
"_base": "@oclif/[email protected]",
"_commands": {},
"_topics": {},
"commandPermutations": {
"validPermutations": {}
},
"pluginLoader": {
"options": {
"root": "/usr/local/lib/node_modules/@salesforce/cli/dist"
},
"errors": [],
"plugins": {},
"pluginsProvided": false
},
"topicPermutations": {
"validPermutations": {}
},
"nodeEngine": ">=18.6.0"
},
"pluginSpecificData": {
"@salesforce/plugin-deploy-retrieve": [
{
"sourceApiVersion": "63.0",
"targetOrgApiVersion": "63.0"
}
],
"@salesforce/plugin-auth": [
{
"isUsingGenericKeychain": false,
"sfCryptoV2Support": false,
"cryptoVersion": "unknown"
}
]
},
"diagnosticResults": [
{
"testName": "salesforcedx plugin isn’t installed",
"status": "pass"
},
{
"testName": "you don't have any linked plugins",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-trust] can ping: https://registry.npmjs.org",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-trust] can ping: https://registry.npmjs.org/",
"status": "pass"
},
{
"testName": "using latest or latest-rc CLI version",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion",
"status": "pass"
},
{
"testName": "can access: https://test.salesforce.com",
"status": "pass"
},
{
"testName": "can access: https://appexchange.salesforce.com/services/data",
"status": "pass"
},
{
"testName": "can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest",
"status": "pass"
},
{
"testName": "[@salesforce/plugin-auth] CLI supports v2 crypto",
"status": "fail"
}
],
"suggestions": [
"Check https://github.com/forcedotcom/cli/issues for CLI issues posted by the community.",
"Check http://status.salesforce.com for general Salesforce availability and performance.",
"using npm registry https://registry.npmjs.org/ from npm config",
"Your current installation of Salesforce CLI, including all the plugins you've linked and installed, doesn't yet support v2 crypto. All plugins and libraries must use at least version 6.7.0 of `@salesforce/core` to support v2 crypto. You're generally still able to successfully authenticate with your current CLI installation, but not if you generate a v2 crypto key."
],
"logFilePaths": [],
"commandExitCode": 0
}
- 主要语言
- 没有语言数据
- 星标
- 571
- 派生
- 80
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
forcedotcom/cli 的其他 Issue
-
investigating validated
难度 2/5 1-3 小时 新手友好度 72/100
forcedotcom/cli#3657 · 2 条评论 ·
-
`sf agent preview` fails with `AgentApiNotFound` against staging (aws-stage1) orgs — `stage.api.salesforce.com` missing from endpoint fallback可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:afdx owned by another team
难度 2/5 1-3 小时 新手友好度 76/100
forcedotcom/cli#3645 · 2 条评论 ·
-
bug investigating validated
难度 2/5 1-3 小时 新手友好度 76/100
forcedotcom/cli#3644 · 6 条评论 ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShape可能已有人在做 @konkonrong-lgtm 于 61 天前认领。 未关闭area:afdx bug investigating owned by another team validated
难度 2/5 1-3 小时 新手友好度 78/100
forcedotcom/cli#3625 · 4 条评论 ·
-
area:afdx bug owned by another team
难度 2/5 1-3 小时 新手友好度 78/100
forcedotcom/cli#3608 · 2 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
bug priority:low scope:cli
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
idnits3
难度 2/5 1-3 小时 新手友好度 63/100
ietf-tools/idnits#319 ·
-
friction
难度 2/5 1-3 小时 新手友好度 75/100
kentcdodds/kody#3557 ·
维护者通常 1 天内回复
-
category:agent
难度 2/5 1-3 小时 新手友好度 82/100
LanternOps/breeze#8493 ·
维护者通常 1 天内回复