You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a scratch org:
sfdx force:org:create -f orgs/dev.json -n --durationdays 7 -a "App__dev"
Expected result
Scratch org creation succeeds.
Actual result
Scratch org creation fails (JWT private key lookup is done from wrong location):
ERROR running force:org:create: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: ENOENT: no such file or directory, open '<wrong_path_to_private_key_file>'
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.48.0-a71f8c6899 linux-x64 node-v10.15.3
Summary
SFDX scratch org creation fails when authorization is done with JWT based flow in Linux
operating system.
Note: This works with Windows.
Steps To Reproduce:
Authorize with JWT flow:
sfdx force:auth:jwt:grant --clientid **** --username **** --jwtkeyfile **** --
setdefaultdevhubusername --instanceurl https://****
Create a scratch org:
sfdx force:org:create -f orgs/dev.json -n --durationdays 7 -a "App__dev"
Expected result
Scratch org creation succeeds.
Actual result
Scratch org creation fails (JWT private key lookup is done from wrong location):
ERROR running force:org:create: We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here’s the error: ENOENT: no such file or directory, open '<wrong_path_to_private_key_file>'
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.48.0-a71f8c6899 linux-x64 node-v10.15.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@oclif/plugin-autocomplete 0.1.5 (core)
@oclif/plugin-commands 1.2.3 (core)
@oclif/plugin-help 2.2.3 (core)
@oclif/plugin-not-found 1.2.3 (core)
@oclif/plugin-plugins 1.7.9 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.7 (core)
analytics 1.7.1 (core)
generator 1.1.2 (core)
salesforcedx 48.3.1 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5 (core)
├─ salesforcedx-templates 48.4.0 (core)
└─ salesforce-alm 48.4.0 (core)
OS and version:
Debian8/9/10
The text was updated successfully, but these errors were encountered: