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

Scratch Org Creation Fails When Using the JWT-Based Flow In Linux OS #325

Closed
ari-luokkala opened this issue Mar 2, 2020 · 1 comment
Closed

Comments

@ari-luokkala
Copy link

ari-luokkala commented Mar 2, 2020

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:

  1. Authorize with JWT flow:
    sfdx force:auth:jwt:grant --clientid **** --username **** --jwtkeyfile **** --
    setdefaultdevhubusername --instanceurl https://****

  2. 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

@ari-luokkala
Copy link
Author

Duplicate to #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant