Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFDX Force package version create command doesn't return any output #2092

Closed
bdovh opened this issue Apr 25, 2023 · 40 comments
Closed

SFDX Force package version create command doesn't return any output #2092

bdovh opened this issue Apr 25, 2023 · 40 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@bdovh
Copy link

bdovh commented Apr 25, 2023

Summary

SFDX Force package version create command doesn't return any output.

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

  1. Create github action yaml script to create package version like following:
    echo "Creating new version without validation (skipping validation): sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch"
    echo "Running --json command:"
    sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch
    echo "Running command without json:"
    sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation $branchSwitch
    echo "Running > create package version:"
    echo $(sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch) > createPackageVersion.txt
    echo "Created package version JSON: $(cat createPackageVersion.txt)"
    status=$(cat createPackageVersion.txt | jq '.status' -r )
    echo "Status: $status"
    message=$(jq '.warnings | join("\r\n")' -r createPackageVersion.txt)$(jq '.result.Error | join("\r\n")' -r createPackageVersion.txt)
    echo "Message: $message"

  2. Run manually the github action workflow to build a package version

Creating new version without validation (skipping validation): sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json -b test
Running --json command:
Running command without json:
Version create....
Version create.... ⣾
Version create.... ⣽
Version create.... ⣻
Version create.... ⢿
Version create.... ⡿
Version create.... ⣟
Version create.... ⣯
Version create.... ⣷
Version create.... ⣾
Version create.... ⣽
Version create.... ⣻
Version create.... ⢿
Version create.... done
Running > create package version:
Created package version JSON:
Status:
Message:

Expected result

Describe what should have happened.

I expect non-empty JSON result to be returned, similar to results when run on local machine, either failed one

{ "code": 1, "message": "No package ID was found in Dev Hub for package ID: 0Ho.", "name": "ErrorNoIdInHubError", "status": 1, "stack": "ErrorNoIdInHubError: No package ID was found in Dev Hub for package ID: 0Ho1n000000PAusCAG.
at Messages.createError", "exitCode": 1, "warnings": [] }

or successful

{ "status": 0, "result": { "Id": "08c5Y000000CdUiQAK", "Status": "Success", "Package2Id": "0Ho", "Package2VersionId": "05i", "SubscriberPackageVersionId": "04t", "Tag": null, "Branch": null, "Error": [], "CreatedDate": "2023-04-25 15:29", "HasMetadataRemoved": false, "CreatedBy": "0055Y00000Fse6NQAR" }, "warnings": [] }

Actual result

Describe what actually happened.

Empty json result is returned.

Creating new version without validation (skipping validation): sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json -b test
Running --json command:
Running command without json:
Version create....
Version create.... ⣾
Version create.... ⣽
Version create.... ⣻
Version create.... ⢿
Version create.... ⡿
Version create.... ⣟
Version create.... ⣯
Version create.... ⣷
Version create.... ⣾
Version create.... ⣽
Version create.... ⣻
Version create.... ⢿
Version create.... done
Running > create package version:
Created package version JSON:
Status:
Message:

System Information

  • Which shell/terminal are you using? (e.g. bash, zsh, powershell 5, powershell 7, cmd.exe, etc.)

  • If you are using sfdx

    • Run sfdx version --verbose --json
  • If you are using sf

    • Run sf version --verbose --json
  • Paste the output here

Version of SFDX CLI is: sfdx-cli/7.197.8 linux-x64 node-v18.16.0

Additional information

Feel free to attach a screenshot.
Screenshot 2023-04-25 at 15 34 45

@bdovh bdovh added the investigating We're actively investigating this issue label Apr 25, 2023
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@bdovh
Copy link
Author

bdovh commented Apr 25, 2023

local version where everything works good is 7.194.1

@bdovh
Copy link
Author

bdovh commented Apr 25, 2023

sfdx version --verbose --json
{
"cliVersion": "sfdx-cli/7.197.8",
"architecture": "darwin-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Darwin 22.3.0",
"shell": "zsh",
"rootPath": "/Users/bdovh/.local/share/sfdx/client/7.197.8-077a68b",
"pluginVersions": [
"@mshanemc/plugin-streaming 1.1.7 (user)",
"@mshanemc/sfdx-sosl 1.1.0 (user)",
"@oclif/plugin-autocomplete 2.1.8 (core)",
"@oclif/plugin-commands 2.2.13 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.23 (core)",
"@oclif/plugin-plugins 2.4.4 (core)",
"@oclif/plugin-search 0.0.15 (core)",
"@oclif/plugin-update 3.1.10 (core)",
"@oclif/plugin-version 1.3.2 (core)",
"@oclif/plugin-warn-if-update-available 2.0.33 (core)",
"@oclif/plugin-which 2.2.18 (core)",
"apex 2.2.12 (core)",
"auth 2.7.12 (core)",
"community 2.2.9 (core)",
"custom-metadata 2.1.12 (core)",
"data 2.3.10 (core)",
"deploy-retrieve 1.8.12 (core)",
"evergreen 0.34.0 (user)",
"evergreen-build 0.20.2 (user)",
"info 2.6.6 (core)",
"limits 2.3.12 (core)",
"org 2.6.12 (core)",
"packaging 1.16.5 (core)",
"schema 2.3.7 (core)",
"settings 1.4.4 (core)",
"signups 1.4.12 (core)",
"source 2.10.2 (core)",
"telemetry 2.1.3 (core)",
"templates 55.4.7 (core)",
"trust 2.4.7 (core)",
"user 2.3.8 (core)",
"@salesforce/sfdx-plugin-lwc-test 1.0.1 (core)",
"@salesforce/sfdx-scanner 3.11.0 (user)",
"sfdx-cli 7.197.8 (core)",
"shane-sfdx-plugins 4.43.0 (user)"
]
}

when I updated sfdx cli locally, issue is not reproduced on local computer

@mando
Copy link

mando commented Apr 25, 2023

This also happens about 30% of the time on our CI runs. It started last Friday (4/21) and still persists.

; sfdx --version
sfdx-cli/7.198.6 darwin-x64 node-v18.15.0

@bdovh
Copy link
Author

bdovh commented Apr 26, 2023

This also happens about 30% of the time on our CI runs. It started last Friday (4/21) and still persists.

; sfdx --version
sfdx-cli/7.198.6 darwin-x64 node-v18.15.0

for me it happens in 100% on the Github Actions flow, but 0% on the local machine

@bdovh
Copy link
Author

bdovh commented May 2, 2023

Tried to downgrade the sfdx cli version on github actions but this didn't help

@bdovh
Copy link
Author

bdovh commented May 2, 2023

switching runners from runs-on: ubuntu-latest to runs-on: macOS-latest didn't help

@shetzel
Copy link
Contributor

shetzel commented May 2, 2023

@bdovh - I can't reproduce this locally when running (e.g.) echo $(sfdx package version create -p DreamhouseLWC_-x -w 20 --json) > json.txt. This isn't surprising since it also works for you locally. I don't know why it wouldn't work in GHA. Maybe redirect stdout and stderr? Does the command run successfully when run without --json? Do you have any environment variables set in GHA that would cause output to behave differently such as SFDX_JSON_TO_STDOUT or maybe SFDX_CONTENT_TYPE ? Does this happen with all commands or just package version create?

@bdovh
Copy link
Author

bdovh commented May 3, 2023

@shetzel
yes, command runs successfully without --json, but in such case it is hard to grab the package version id or error message in CI/CD scripts.
I don't have neither SFDX_JSON_TO_STDOUT nor SFDX_CONTENT_TYPE. It had suddenly broken without any change from our side

@shetzel
Copy link
Contributor

shetzel commented May 3, 2023

Can you redirect stderr and see if it's going there? Or maybe rather than the echo redirect do:
sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch > out.txt

@bdovh
Copy link
Author

bdovh commented May 4, 2023

@shetzel well, I do have redirect to a file and the file is empty

@bdovh
Copy link
Author

bdovh commented May 4, 2023

how can I redirect strerr? if I can do that for sfdx command run on github actions?

@shetzel
Copy link
Contributor

shetzel commented May 4, 2023

The default shell for non-Windows GHA runner is bash, so you can try:
sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch &> out.txt or sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch > out.txt 2>&1

@mando
Copy link

mando commented May 4, 2023

@shetzel When we add the --dev-debug flag to sfdx package version create we see the following in the logs right at the end:

2023-05-04T22:57:02.946Z sfdx:[email protected] Unable to get oclif performance metrics Error: Perf results not available. Did you forget to call await Performance.collect()?
    at get highlights [as highlights] (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/performance.js:50:15)
    at process.<anonymous> (/usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/lib/hooks/telemetryPrerun.js:72:55)
    at Object.onceWrapper (node:events:628:26)
    at process.emit (node:events:525:35)
2023-05-04T22:57:02.949Z sfdx:[email protected] Spawning "/usr/local/bin/node /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/processes/upload /home/runner/.cache/sfdx /tmp/sfdx-telemetry/telemetry-b39a88d768d6f49ec9d18852eb28da9fabe41bd1.log"

note: this is on the release candidate version of sfdx. One of our devs was running a slightly older version of sfdx that uses sfdx:[email protected] and they don't get the above error.

@gadamson-upco
Copy link

This also just started happening for us in Circle CI today. Same use case as above, CI script creates package version, parses JSON output to save package id. This was on sfdx-cli 7.199.7.

We were able to resolve for now by downgrading to 7.198.

@bdovh
Copy link
Author

bdovh commented May 5, 2023

We were able to resolve for now by downgrading to 7.198.

Downgrade didn't help to me

The default shell for non-Windows GHA runner is bash, so you can try:
sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch &> out.txt or sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch > out.txt 2>&1

I am going to try both the options

sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch &> out.txt

and

sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch > out.txt 2>&1

@bdovh
Copy link
Author

bdovh commented May 5, 2023

Also I tried to remove --post-install-script PostInstall switch (since I believe I have it duplicated in both sfdx-project.json and here) but that didn't help to resolve the issue

@bdovh
Copy link
Author

bdovh commented May 5, 2023

We were able to resolve for now by downgrading to 7.198.

which exact version of sfdx cli did you use which worked for you?

@bdovh
Copy link
Author

bdovh commented May 5, 2023

2023-05-05T09:02:02.984Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli
2023-05-05T09:02:02.985Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/package.json
2023-05-05T09:02:03.004Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/oclif.manifest.json
2023-05-05T09:02:03.005Z config:sfdx-cli using manifest from /usr/local/lib/node_modules/sfdx-cli/oclif.manifest.json
2023-05-05T09:02:03.016Z config reading user plugins pjson /home/runner/.local/share/sfdx/package.json
2023-05-05T09:02:03.016Z config loadJSON /home/runner/.local/share/sfdx/package.json
2023-05-05T09:02:03.016Z config loading plugins [
'@oclif/plugin-command-snapshot',
'@salesforce/plugin-release-management'
]
2023-05-05T09:02:03.019Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/package.json
2023-05-05T09:02:03.019Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/package.json
2023-05-05T09:02:03.019Z config loadJSON /usr/local/lib/node_modules/package.json
2023-05-05T09:02:03.019Z config loadJSON /usr/local/lib/node_modules/package.json
2023-05-05T09:02:03.020Z config loadJSON /usr/local/lib/package.json
2023-05-05T09:02:03.020Z config loadJSON /usr/local/lib/package.json
2023-05-05T09:02:03.020Z config loadJSON /usr/local/package.json
2023-05-05T09:02:03.020Z config loadJSON /usr/local/package.json
2023-05-05T09:02:03.020Z config loadJSON /usr/package.json
2023-05-05T09:02:03.021Z config loadJSON /usr/package.json
2023-05-05T09:02:03.021Z config loadJSON /package.json
2023-05-05T09:02:03.021Z config loadJSON /package.json
(node:2195) Error Plugin: sfdx-cli: could not find package.json with {
type: 'dev',
root: '/usr/local/lib/node_modules/sfdx-cli',
name: '@oclif/plugin-command-snapshot'
}
module: @oclif/[email protected]
task: loadPlugins
plugin: sfdx-cli
root: /usr/local/lib/node_modules/sfdx-cli
See more details with DEBUG=*
(Use node --trace-warnings ... to show where the warning was created)
Error Plugin: sfdx-cli: could not find package.json with {
type: 'dev',
root: '/usr/local/lib/node_modules/sfdx-cli',
name: '@oclif/plugin-command-snapshot'
}
at Plugin.load (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/plugin.js:108:19)
at async /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:511:17
at async Promise.all (index 0)
at async Config.loadPlugins (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:498:9)
at async Config.loadDevPlugins (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:179:21)
at async Config.loadPluginsAndCommands (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:158:9)
at async Config.load (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:145:9)
at async Object.run (/usr/local/lib/node_modules/sfdx-cli/dist/cli.js:105:13)
module: @oclif/[email protected]
task: loadPlugins
plugin: sfdx-cli
root: /usr/local/lib/node_modules/sfdx-cli
See more details with DEBUG=*
2023-05-05T09:02:03.023Z config loading plugins [
'@oclif/plugin-autocomplete',
'@oclif/plugin-commands',
'@oclif/plugin-help',
'@oclif/plugin-version',
'@oclif/plugin-not-found',
'@oclif/plugin-plugins',
'@oclif/plugin-search',
'@oclif/plugin-update',
'@oclif/plugin-warn-if-update-available',
'@oclif/plugin-which',
'@salesforce/plugin-apex',
'@salesforce/plugin-auth',
'@salesforce/plugin-community',
'@salesforce/plugin-custom-metadata',
'@salesforce/plugin-data',
'@salesforce/plugin-info',
'@salesforce/plugin-limits',
'@salesforce/plugin-org',
'@salesforce/plugin-packaging',
'@salesforce/plugin-settings',
'@salesforce/plugin-signups',
'@salesforce/plugin-source',
'@salesforce/plugin-schema',
'@salesforce/plugin-telemetry',
'@salesforce/plugin-templates',
'@salesforce/plugin-trust',
'@salesforce/plugin-user',
'@salesforce/sfdx-plugin-lwc-test'
]
2023-05-05T09:02:03.031Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-autocomplete
2023-05-05T09:02:03.031Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-autocomplete/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-commands
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-commands/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-update
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-update/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-community
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-community/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-custom-metadata
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-custom-metadata/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-help
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-help/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-version
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-version/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-not-found
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-not-found/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-plugins
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-plugins/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-search
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-search/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-warn-if-update-available
2023-05-05T09:02:03.032Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-warn-if-update-available/package.json
2023-05-05T09:02:03.032Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-which
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-which/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-apex
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-apex/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-auth
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-auth/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-data
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-data/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-info
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-info/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-limits
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-limits/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-org
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-org/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-packaging
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-packaging/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-settings
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-settings/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-signups
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-signups/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-source
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-source/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-schema
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-schema/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-templates
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-templates/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-trust
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-trust/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-user
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-user/package.json
2023-05-05T09:02:03.033Z config reading core plugin /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/sfdx-plugin-lwc-test
2023-05-05T09:02:03.033Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/sfdx-plugin-lwc-test/package.json
(node:2195) Error Plugin: sfdx-cli: could not find package.json with {
type: 'dev',
root: '/usr/local/lib/node_modules/sfdx-cli',
name: '@salesforce/plugin-release-management'
}
module: @oclif/[email protected]
task: loadPlugins
plugin: sfdx-cli
root: /usr/local/lib/node_modules/sfdx-cli
See more details with DEBUG=*
Error Plugin: sfdx-cli: could not find package.json with {
type: 'dev',
root: '/usr/local/lib/node_modules/sfdx-cli',
name: '@salesforce/plugin-release-management'
}
at Plugin.load (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/plugin.js:108:19)
at async /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:511:17
at async Promise.all (index 1)
at async Config.loadPlugins (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:498:9)
at async Config.loadDevPlugins (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:179:21)
at async Config.loadPluginsAndCommands (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:158:9)
at async Config.load (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:145:9)
at async Object.run (/usr/local/lib/node_modules/sfdx-cli/dist/cli.js:105:13)
module: @oclif/[email protected]
task: loadPlugins
plugin: sfdx-cli
root: /usr/local/lib/node_modules/sfdx-cli
See more details with DEBUG=*
2023-05-05T09:02:03.035Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json
2023-05-05T09:02:03.035Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-commands/oclif.manifest.json
2023-05-05T09:02:03.035Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-update/oclif.manifest.json
2023-05-05T09:02:03.035Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-community/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-custom-metadata/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-help/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-version/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2023-05-05T09:02:03.036Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-search/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-which/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-apex/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-auth/oclif.manifest.json
2023-05-05T09:02:03.037Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-data/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-info/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-limits/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-org/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-packaging/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-settings/oclif.manifest.json
2023-05-05T09:02:03.038Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-signups/oclif.manifest.json
2023-05-05T09:02:03.039Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-source/oclif.manifest.json
2023-05-05T09:02:03.039Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-schema/oclif.manifest.json
2023-05-05T09:02:03.039Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-templates/oclif.manifest.json
2023-05-05T09:02:03.039Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-trust/oclif.manifest.json
2023-05-05T09:02:03.039Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-user/oclif.manifest.json
2023-05-05T09:02:03.040Z config loadJSON /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/sfdx-plugin-lwc-test/oclif.manifest.json
2023-05-05T09:02:03.041Z config:@oclif/plugin-autocomplete using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-autocomplete/oclif.manifest.json
2023-05-05T09:02:03.041Z config:@oclif/plugin-commands using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-commands/oclif.manifest.json
2023-05-05T09:02:03.041Z config:@oclif/plugin-update using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-update/oclif.manifest.json
2023-05-05T09:02:03.042Z config:@salesforce/plugin-community using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-community/oclif.manifest.json
2023-05-05T09:02:03.042Z config:@salesforce/plugin-custom-metadata using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-custom-metadata/oclif.manifest.json
2023-05-05T09:02:03.042Z config:@salesforce/plugin-telemetry using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/oclif.manifest.json
2023-05-05T09:02:03.042Z config:@oclif/plugin-help using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-help/oclif.manifest.json
2023-05-05T09:02:03.042Z config:@oclif/plugin-version using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-version/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@oclif/plugin-not-found using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@oclif/plugin-plugins using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@oclif/plugin-search using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-search/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@oclif/plugin-warn-if-update-available using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-warn-if-update-available/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@oclif/plugin-which using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-which/oclif.manifest.json
2023-05-05T09:02:03.043Z config:@salesforce/plugin-apex using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-apex/oclif.manifest.json
2023-05-05T09:02:03.044Z config:@salesforce/plugin-auth using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-auth/oclif.manifest.json
2023-05-05T09:02:03.044Z config:@salesforce/plugin-data using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-data/oclif.manifest.json
2023-05-05T09:02:03.045Z config:@salesforce/plugin-info using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-info/oclif.manifest.json
2023-05-05T09:02:03.045Z config:@salesforce/plugin-limits using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-limits/oclif.manifest.json
2023-05-05T09:02:03.046Z config:@salesforce/plugin-org using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-org/oclif.manifest.json
2023-05-05T09:02:03.047Z config:@salesforce/plugin-packaging using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-packaging/oclif.manifest.json
2023-05-05T09:02:03.047Z config:@salesforce/plugin-settings using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-settings/oclif.manifest.json
2023-05-05T09:02:03.047Z config:@salesforce/plugin-signups using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-signups/oclif.manifest.json
2023-05-05T09:02:03.049Z config:@salesforce/plugin-source using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-source/oclif.manifest.json
2023-05-05T09:02:03.050Z config:@salesforce/plugin-schema using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-schema/oclif.manifest.json
2023-05-05T09:02:03.052Z config:@salesforce/plugin-templates using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-templates/oclif.manifest.json
2023-05-05T09:02:03.052Z config:@salesforce/plugin-trust using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-trust/oclif.manifest.json
2023-05-05T09:02:03.053Z config:@salesforce/plugin-user using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-user/oclif.manifest.json
2023-05-05T09:02:03.053Z config:@salesforce/sfdx-plugin-lwc-test using manifest from /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/sfdx-plugin-lwc-test/oclif.manifest.json
2023-05-05T09:02:03.131Z config config done
2023-05-05T09:02:03.131Z sfdx OS:
2023-05-05T09:02:03.131Z sfdx platform: linux
2023-05-05T09:02:03.131Z sfdx architecture: x64
2023-05-05T09:02:03.131Z sfdx release: 5.15.0-1036-azure
2023-05-05T09:02:03.131Z sfdx shell: bash
2023-05-05T09:02:03.131Z sfdx NODE:
2023-05-05T09:02:03.132Z sfdx version: 18.16.0
2023-05-05T09:02:03.132Z sfdx CLI:
2023-05-05T09:02:03.132Z sfdx version: 7.194.1
2023-05-05T09:02:03.132Z sfdx channel: stable
2023-05-05T09:02:03.132Z sfdx bin: sfdx
2023-05-05T09:02:03.132Z sfdx data: /home/runner/.local/share/sfdx
2023-05-05T09:02:03.132Z sfdx cache: /home/runner/.cache/sfdx
2023-05-05T09:02:03.132Z sfdx config: /home/runner/.config/sfdx
2023-05-05T09:02:03.132Z sfdx ENV:
2023-05-05T09:02:03.132Z sfdx NODE_OPTIONS:
2023-05-05T09:02:03.132Z sfdx SFDX_AUTOUPDATE_DISABLE: true
2023-05-05T09:02:03.132Z sfdx SFDX_BINPATH:
2023-05-05T09:02:03.132Z sfdx SFDX_COMPILE_CACHE:
2023-05-05T09:02:03.132Z sfdx SFDX_DISABLE_AUTOUPDATE: true
2023-05-05T09:02:03.132Z sfdx SFDX_ENV: development
2023-05-05T09:02:03.132Z sfdx SFDX_INSTALLER:
2023-05-05T09:02:03.132Z sfdx SFDX_NPM_REGISTRY:
2023-05-05T09:02:03.132Z sfdx SFDX_REDIRECTED:
2023-05-05T09:02:03.132Z sfdx SFDX_S3_HOST:
2023-05-05T09:02:03.132Z sfdx SFDX_UPDATE_INSTRUCTIONS: Use "npm update --global sfdx-cli" to update npm-based installations.
2023-05-05T09:02:03.132Z sfdx ARGS:
2023-05-05T09:02:03.132Z sfdx 0: /usr/local/bin/node
2023-05-05T09:02:03.132Z sfdx 1: /usr/local/bin/sfdx
2023-05-05T09:02:03.132Z sfdx 2: package
2023-05-05T09:02:03.132Z sfdx 3: version
2023-05-05T09:02:03.132Z sfdx 4: create
2023-05-05T09:02:03.132Z sfdx 5: -d
2023-05-05T09:02:03.132Z sfdx 6: force-app
2023-05-05T09:02:03.132Z sfdx 7: --post-install-script
2023-05-05T09:02:03.132Z sfdx 8: PostInstall
2023-05-05T09:02:03.132Z sfdx 9: -x
2023-05-05T09:02:03.132Z sfdx 10: -w
2023-05-05T09:02:03.132Z sfdx 11: 60
2023-05-05T09:02:03.132Z sfdx 12: --skip-validation
2023-05-05T09:02:03.132Z sfdx 13: --json
2023-05-05T09:02:03.133Z config start init hook
2023-05-05T09:02:03.932Z sf:core TRACE Setup child 'plugin-info:init_doctor' logger instance
2023-05-05T09:02:03.934Z sf:core TRACE Setup child 'plugin-settings:load_config_meta' logger instance
2023-05-05T09:02:03.934Z sfdx:@oclif/plugin-update:hooks:init start (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-update/lib/hooks/init.js
2023-05-05T09:02:03.935Z sfdx:@oclif/plugin-warn-if-update-available:hooks:init start (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/plugin-warn-if-update-available/lib/hooks/init/check-update.js
2023-05-05T09:02:03.935Z sfdx:@salesforce/plugin-info:hooks:init start (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-info/lib/hooks/init/init_doctor.js
2023-05-05T09:02:03.935Z sf:plugin-info:init_doctor DEBUG init_doctor hook
2023-05-05T09:02:03.935Z sfdx:@salesforce/plugin-settings:hooks:init start (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-settings/lib/hooks/init/load_config_meta.js
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for sfdx-cli
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-autocomplete
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-commands
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-update
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-community
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-custom-metadata
2023-05-05T09:02:03.937Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-telemetry
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-help
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-version
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-not-found
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-plugins
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-search
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-warn-if-update-available
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @oclif/plugin-which
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-apex
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-auth
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-data
2023-05-05T09:02:03.938Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-info
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-limits
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-org
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-packaging
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-settings
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-signups
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-source
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-schema
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-templates
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-trust
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/plugin-user
2023-05-05T09:02:03.939Z sf:plugin-settings:load_config_meta INFO No config meta found for @salesforce/sfdx-plugin-lwc-test
2023-05-05T09:02:03.939Z sfdx:@oclif/plugin-update:hooks:init done
2023-05-05T09:02:03.939Z sfdx:@salesforce/plugin-settings:hooks:init done
2023-05-05T09:02:03.939Z sfdx:@salesforce/plugin-info:hooks:init done
› Warning: sfdx-cli update available from 7.194.1 to 7.199.7.
2023-05-05T09:02:03.[95](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:96)2Z sfdx:@oclif/plugin-warn-if-update-available:hooks:init done
2023-05-05T09:02:03.952Z config init hook done
2023-05-05T09:02:03.952Z config runCommand package:version:create [ '-d', 'force-app', '--post-install-script', 'PostInstall', '-x', '-w', '60', '--skip-validation', '--json' ]
2023-05-05T09:02:04.332Z config:@salesforce/plugin-packaging (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-packaging/lib/commands/package/version/create.js
2023-05-05T09:02:04.332Z config start prerun hook
2023-05-05T09:02:04.377Z sfdx:@salesforce/plugin-telemetry:hooks:prerun start (require) /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/lib/hooks/telemetryPrerun.js
2023-05-05T09:02:04.378Z sf:core TRACE Setup child 'Config' logger instance
2023-05-05T09:02:04.378Z sf:core TRACE Setup child 'Config' logger instance
2023-05-05T09:02:04.379Z sf:Config INFO Reading config file: /home/runner/.sf/config.json
2023-05-05T09:02:04.381Z sf:Config INFO Reading config file: /home/runner/work/ src/packaged/.sf/config.json
2023-05-05T09:02:04.392Z sf:Config INFO Reading config file: /home/runner/.sf/config.json
2023-05-05T09:02:04.393Z sf:Config INFO Reading config file: /home/runner/work/ /src/packaged/.sf/config.json
2023-05-05T09:02:04.403Z sf:core TRACE Setup child 'core:config' logger instance
2023-05-05T09:02:04.418Z sfdx:[email protected] Usage acknowledgement file already exists
2023-05-05T09:02:04.418Z sfdx:[email protected] Using telemetry logging file /tmp/sfdx-telemetry/telemetry-68c23f85ac4a5266ac81ae8d1cf1f7d71b752d5c.log
2023-05-05T09:02:04.421Z sf:core TRACE Setup child 'Config' logger instance
2023-05-05T09:02:04.421Z sf:core TRACE Setup child 'Config' logger instance
2023-05-05T09:02:04.421Z sf:Config INFO Reading config file: /home/runner/.sf/config.json
2023-05-05T09:02:04.422Z sf:Config INFO Reading config file: /home/runner/work/ /src/packaged/.sf/config.json
2023-05-05T09:02:04.441Z sf:core TRACE Setup child 'OrgAccessor' logger instance
2023-05-05T09:02:04.442Z sf:core TRACE Setup child 'SandboxAccessor' logger instance
2023-05-05T09:02:04.442Z sf:core TRACE Setup child 'AliasesConfig' logger instance
2023-05-05T09:02:04.443Z sf:AliasesConfig INFO Reading config file: /home/runner/.sfdx/alias.json
2023-05-05T09:02:04.444Z sf:core TRACE Setup child 'TokensConfig' logger instance
2023-05-05T09:02:04.444Z sf:core TRACE Setup child 'crypto' logger instance
2023-05-05T09:02:04.444Z sf:crypto DEBUG retryStatus: undefined
2023-05-05T09:02:04.445Z sf:core TRACE Setup child 'keyChain' logger instance
2023-05-05T09:02:04.445Z sf:keyChain DEBUG platform: linux
2023-05-05T09:02:04.447Z sf:TokensConfig INFO Reading config file: /home/runner/.sfdx/tokens.json
2023-05-05T09:02:04.448Z sf:core TRACE Setup child 'Org' logger instance
2023-05-05T09:02:04.448Z sf:core TRACE Setup child 'AuthInfoConfig' logger instance
2023-05-05T09:02:04.449Z sf:core TRACE Setup child 'crypto' logger instance
2023-05-05T09:02:04.449Z sf:crypto DEBUG retryStatus: undefined
2023-05-05T09:02:04.449Z sf:core TRACE Setup child 'keyChain' logger instance
2023-05-05T09:02:04.449Z sf:keyChain DEBUG platform: linux
2023-05-05T09:02:04.450Z sf:AuthInfoConfig INFO Reading config file: /home/runner/.sfdx/[email protected]
2023-05-05T09:02:04.452Z sf:core TRACE Setup child 'AuthInfo' logger instance
2023-05-05T09:02:04.463Z sf:AuthInfo INFO Returning fields for a connection using OAuth config.
2023-05-05T09:02:04.464Z sf:core TRACE Setup child 'connection' logger instance
2023-05-05T09:02:04.470Z sf:connection DEBUG API version cache last checked on 5/5/2023, 9:01:54 AM (now is 5/5/2023, 9:02:04 AM)
2023-05-05T09:02:04.470Z sf:connection DEBUG Using cached API version: 57.0
2023-05-05T09:02:04.470Z sf:connection DEBUG Connection created with apiVersion 57.0
2023-05-05T09:02:04.483Z sfdx:[email protected] Setting up process exit handler
2023-05-05T09:02:04.483Z sfdx:@salesforce/plugin-telemetry:hooks:prerun done
2023-05-05T09:02:04.483Z config prerun hook done
2023-05-05T09:02:04.484Z sf:Config INFO Reading config file: /home/runner/.sf/config.json
2023-05-05T09:02:04.484Z sf:Config INFO Reading config file: /home/runner/work/ /src/packaged/.sf/config.json
2023-05-05T09:02:04.494Z sf:core TRACE Setup child 'core:config' logger instance
2023-05-05T09:02:04.494Z sf:core:config INFO Key org-metadata-rest-deploy already exists in allowedProperties, skipping.
2023-05-05T09:02:04.494Z sfdx:Lifecycle 2 lifecycle events with the name update have now been registered. When this event is emitted all 2 listeners will fire.
2023-05-05T09:02:04.494Z sfdx:Lifecycle 3 lifecycle events with the name update have now been registered. When this event is emitted all 3 listeners will fire.
2023-05-05T09:02:04.494Z sfdx:Lifecycle 2 lifecycle events with the name init have now been registered. When this event is emitted all 2 listeners will fire.
2023-05-05T09:02:04.495Z sfdx:package:version:create init version: @oclif/[email protected] argv: [ '-d', 'force-app', '--post-install-script', 'PostInstall', '-x', '-w', '60', '--skip-validation', '--json' ]
2023-05-05T09:02:04.505Z sf:core TRACE Setup child 'Org' logger instance
2023-05-05T09:02:04.506Z sf:core TRACE Setup child 'AuthInfoConfig' logger instance
2023-05-05T09:02:04.506Z sf:core TRACE Setup child 'crypto' logger instance
2023-05-05T09:02:04.506Z sf:crypto DEBUG retryStatus: undefined
2023-05-05T09:02:04.506Z sf:core TRACE Setup child 'keyChain' logger instance
2023-05-05T09:02:04.506Z sf:keyChain DEBUG platform: linux
2023-05-05T09:02:04.507Z sf:AuthInfoConfig INFO Reading config file: /home/runner/.sfdx/[email protected]
2023-05-05T09:02:04.509Z sf:core TRACE Setup child 'AuthInfo' logger instance
2023-05-05T09:02:04.519Z sf:AuthInfo INFO Returning fields for a connection using OAuth config.
2023-05-05T09:02:04.520Z sf:core TRACE Setup child 'connection' logger instance
2023-05-05T09:02:04.520Z sf:connection DEBUG API version cache last checked on 5/5/2023, 9:01:54 AM (now is 5/5/2023, 9:02:04 AM)
2023-05-05T09:02:04.520Z sf:connection DEBUG Using cached API version: 57.0
2023-05-05T09:02:04.520Z sf:connection DEBUG Connection created with apiVersion 57.0
2023-05-05T09:02:04.531Z sf:core TRACE Setup child 'packageVersionCreate' logger instance
2023-05-05T09:02:04.531Z sf:core TRACE Setup child 'SfProjectJson' logger instance
2023-05-05T09:02:04.532Z sf:SfProjectJson INFO Reading config file: /home/runner/work/ /src/packaged/sfdx-project.json
2023-05-05T09:02:04.543Z sf:connection DEBUG request: {"method":"GET","url":"https://dev-ed.my.salesforce.com/services/data/v57.0/tooling/sobjects/Package2/0Ho5Y000000oLwNSAU","headers":{"content-type":"application/json","user-agent":"sfdx toolbelt:"}}
2023-05-05T09:02:04.674Z sf:core TRACE Setup child 'SettingsGenerator' logger instance
2023-05-05T09:02:04.675Z sf:core TRACE Setup child 'componentSetBuilder' logger instance
2023-05-05T09:02:04.675Z sf:componentSetBuilder DEBUG Building ComponentSet from sourcepath: /home/runner/work/ /src/packaged/force-app
2023-05-05T09:02:04.676Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:04.728Z sf:componentSetBuilder DEBUG ComponentSet apiVersion = undefined
2023-05-05T09:02:04.728Z sf:componentSetBuilder DEBUG ComponentSet sourceApiVersion = 57.0
2023-05-05T09:02:04.730Z sf:core TRACE Setup child 'StandardWriter' logger instance
2023-05-05T09:02:05.084Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.085Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.086Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.087Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[116](https://github.com/ actions/runs/4891711352/jobs/8732576763#step:6:117)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[117](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:118)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.117Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[118](https://github.com/ actions/runs/4891711352/jobs/8732576763#step:6:119)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[119](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:120)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.119Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[120](https://github.com/ actions/runs/4891711352/jobs/8732576763#step:6:121)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[121](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:122)Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.121Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.[122](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:123)Z sf:core TRACE Setup child 'ComponentSet' logger instance
[202](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:203)3-05-05T09:02:05.122Z sf:core TRACE Setup child 'ComponentSet' logger instance
2023-05-05T09:02:05.459Z sfdx:[email protected] Unable to get oclif performance metrics Error: Perf results not available. Did you forget to call await Performance.collect()?
at get highlights [as highlights] (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/performance.js:50:15)
at CommandExecution.toJson (/usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/lib/commandExecution.js:54:51)
at process. (/usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/lib/hooks/telemetryPrerun.js:69:47)
at Object.onceWrapper (node:events:628:26)
at process.emit (node:events:525:35)
2023-05-05T09:02:05.461Z sfdx:[email protected] Spawning "/usr/local/bin/node /usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/plugin-telemetry/processes/upload /home/runner/.cache/sfdx /tmp/sfdx-telemetry/telemetry-68c23f85ac4a5[266](https://github.com/ /actions/runs/4891711352/jobs/8732576763#step:6:267)ac81ae8d1cf1f7d71b752d5c.log"

@bdovh
Copy link
Author

bdovh commented May 5, 2023

The default shell for non-Windows GHA runner is bash, so you can try:
sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch &> out.txt or sfdx package version create -d force-app --post-install-script PostInstall -x -w 60 --skip-validation --json $branchSwitch > out.txt 2>&1

I run all, and received a lot of output but none of it explains why there is no JSON output

@luiscampos-glob
Copy link

Downgrading to 7.182.1 solved the problem for me.

@gadamson-upco
Copy link

We were able to resolve for now by downgrading to 7.198.

which exact version of sfdx cli did you use which worked for you?

sfdx-v7.198.3-1a39201-linux-x64

@gadamson-upco
Copy link

gadamson-upco commented May 5, 2023

I should add, I also disabled telemetry because of the (likely unrelated) errors in the posted debugs above. But just this alone did not solve the issue when running 7.199.7.

To disable, I used sfdx config:set disableTelemetry=true --global

The telemetry thing may be a red herring, but I'm not in a position to be messing with my CI and possibly breaking it again right now. May try removing it later.

@shetzel
Copy link
Contributor

shetzel commented May 5, 2023

  1. When there is no JSON output from the command, is the package version actually created?
  2. When there is no output, is there always an error from telemetry in debug output?
  3. How is the CLI being installed in the CI systems?
  4. Does the same thing happen using the sf CLI?
  5. For all of you, this doesn't happen when running the command locally; only in CI?
  6. Is there a CLI version that works for all of you? I've seen 7.198.3 and 7.182.1 working as expected for some, and 7.199.7 broken for everyone.
  7. Is the package version create command the only command with this issue?

There could be multiple bugs. I'm not sure if telemetry is a red herring either.

@gadamson-upco
Copy link

  1. No, the command exits pretty much instantly.
  2. I can't speak to this one personally, I had not tried with debugging enabled.
  3. In our case we are pulling it via tar file, per https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli_linux
  4. I have not tried sf in the CI environment
  5. Working fine locally
  6. 7.198.3 is working in CircleCI for us
  7. Yes, as far as we can tell? Commands involving authentication, running a validate only deploy, etc, were working fine. Unable to tell if there was an issue with package promote or install commands as these would have come after the package version one.

@bdovh
Copy link
Author

bdovh commented May 8, 2023

I just tried to downgrade to 7.182.1 and received an error Error: command package:version:create not found

@bdovh
Copy link
Author

bdovh commented May 8, 2023

even when I reverted to sfdx force:package:version:create, it didn't help

@shetzel
Copy link
Contributor

shetzel commented May 8, 2023

@bdovh - CLI v7.182.1 did not have the command alias setup yet for using package version create. With the version of the plugin in that CLI, you'd need to use force:package:version:create. I'm puzzled why downgrading to 7.182.1 and using force:package:version:create doesn't work for you but it works for others.

@shetzel shetzel added the bug Issue or pull request that identifies or fixes a bug label May 8, 2023
@git2gus
Copy link

git2gus bot commented May 8, 2023

This issue has been linked to a new work item: W-13169031

@bdovh
Copy link
Author

bdovh commented May 9, 2023

CLI v7.182.1 did not have the command alias setup yet for using package version create. With the version of the plugin in that CLI, you'd need to use force:package:version:create. I'm puzzled why downgrading to 7.182.1 and using force:package:version:create doesn't work for you but it works for others.

maybe there are some additional errors, I don't know. But when I downgrade and use force:package:version:create, I don't receive any debugs, it just fails and drops.

@eschweitzer78
Copy link

eschweitzer78 commented May 9, 2023

Just wanted to confirm I am running into the same issue with the current stable version:
sfdx-cli/7.199.7 linux-x64 node-v18.16.0

Thanks for creating the work-item!

@shetzel
Copy link
Contributor

shetzel commented May 10, 2023

This could be an issue with nodejs versions. I am not able to reproduce it with v18.14.2 but I can with v18.16.0. Can people test this theory by trying different nodejs versions with npm installs of the CLI and retesting?

@eschweitzer78
Copy link

eschweitzer78 commented May 10, 2023

FYI I tried to downgrade to sfdx-cli 7.182.1 as suggested and now I get the following error message within a few seconds where it used to hang and return no result with higher versions:
{ "status": 1, "name": "", "message": "An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 885348693-311119 (-629443337)", "exitCode": 1, "context": "PackageVersionCreateCommand", "stack": "An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 885348693-311119 (-629443337)\n at SfError.wrap (/usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/core/lib/sfError.js:84:25)\n at PackageVersionCreateCommand.catch (/usr/local/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/ToolbeltCommand.js:255:44)\n at async PackageVersionCreateCommand._run (/usr/local/lib/node_modules/sfdx-cli/node_modules/@salesforce/command/lib/sfdxCommand.js:106:13)\n at async Config.runCommand (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/config/config.js:272:25)\n at async run (/usr/local/lib/node_modules/sfdx-cli/node_modules/@oclif/core/lib/main.js:74:5)\nCaused by: Error: An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 885348693-311119 (-629443337)\n at /usr/local/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/lib/package/packageUtils.js:712:27\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)", "warnings": [], "commandName": "PackageVersionCreateCommand" }

I'll try downgrading node and report on that.

@eschweitzer78
Copy link

Worked like a charm with node 18.14.2 as suggested @shetzel

@fischerp
Copy link

fischerp commented May 10, 2023

Thanks for that @eschweitzer78! I am getting the same issue as all of you. Adding the config below to the GHA solved the issue for me as you have suggested.

- name: Install Node.js 18.14.2
        uses: actions/setup-node@v2
        with:
          node-version: '18.14.2'

Hopefully this issue will get resolved soon. I have tried almost everything that people have suggested here, like downgrading SFDX, adding a --json, etc. The command works fine locally, but for sure I am not using the latest node version.

@shetzel
Copy link
Contributor

shetzel commented May 10, 2023

There appears to be a handful of projects having issues with the LTS version of nodejs, 18.16.0. Please refer to this pinned notification: #2125

@bdovh and others experiencing this in CI, note that GitHub Actions is using nodejs v18.16.0 in Ubuntu 20 / 22 (latest) if the Node version is specified just as 18 so you'll need to provide a specific minor version, e.g., 18.15.

@mshanemc
Copy link
Contributor

We've got some workarounds and a fixed RC available. I'd love to know that this is working for you.
#2125

@bdovh
Copy link
Author

bdovh commented May 11, 2023

This could be an issue with nodejs versions. I am not able to reproduce it with v18.14.2 but I can with v18.16.0. Can people test this theory by trying different nodejs versions with npm installs of the CLI and retesting?

Do we even control which nodejs version is used? We just use the script to install sfdx cli and in that script we can select the SFDX CLI version but not the nodejs version

node --version
npm install -g [email protected]
export SFDX_DISABLE_DNS_CHECK=true
echo "Version of SFDX CLI is: $(sfdx --version)"

@bdovh
Copy link
Author

bdovh commented May 11, 2023

We've got some workarounds and a fixed RC available. I'd love to know that this is working for you.
#2125

how can we check that?

@bdovh
Copy link
Author

bdovh commented May 11, 2023

Tried to amend my current github action setup script

node --version
npm install -g sfdx-cli

with the following version

node --version
npm install -g sfdx-cli
sfdx update --version 7.200.7
sfdx update stable-rc
sfdx version
sfdx update --version 7.198.6

However, this didn't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

8 participants