Package Details: sfdx-cli 7.8.1_8f830784cc-1

Git Clone URL: https://aur.archlinux.org/sfdx-cli.git (read-only)
Package Base: sfdx-cli
Description: a tool for creating and managing Salesforce DX projects from the command line
Upstream URL: https://developer.salesforce.com/tools/sfdxcli
Keywords: salesforce sfdx
Licenses: unknown
Provides: sfdx-cli
Submitter: dangmai
Maintainer: dangmai
Last Packager: dangmai
Votes: 0
Popularity: 0.000000
First Submitted: 2017-11-22 22:35
Last Updated: 2019-05-24 07:22

Dependencies (1)

Required by (0)

Sources (1)

Pinned Comments

dangmai commented on 2019-04-01 03:19

Salesforce is no longer distributing the i686 version of this package, so I'm taking that version off of AUR. The only supported version now is x86_64 for this package. They also distribute an ARM version but I'm not sure if anyone would use it; if it's beneficial for you please put a comment here and I'll support that version as well.

Latest Comments

1 2 3 Next › Last »

ebu commented on 2019-07-05 07:42

@dangmai, thanks,

dangmai commented on 2019-07-04 17:51

@ebu Yes it does work on Linux for many people, me included. It doesn't really matter what graphical environment that you use, since this is a CLI program. You're the second person to have run into this particular issue though, so I'll dig a bit deeper to see if I can find anything.

ebu commented on 2019-07-03 14:57

Hello,

When I use this command sfdx force:auth:web:login -d -a DevHub --loglevel debug

I have this error ERROR running force:auth:web:login: Invalid key length

And in sfdx.log {"name":"sfdx","hostname":"shigoto","pid":4753,"log":"AuthWebLoginCommand","level":50,"msg":"[ '\u001b[1mERROR running force:auth:web:login: \u001b[22m',\n '\u001b[31mInvalid key length\u001b[39m' ]","time":"2019-07-03T14:45:13.705Z","v":0}

I use cinnamon v4.0.10

sfdx --version

sfdx-cli/7.13.0-27dbcb37d3 linux-x64 node-v10.15.3

Does sfdx work under linux ? if yes, with which graphical environment ?

dangmai commented on 2019-04-01 03:19

Salesforce is no longer distributing the i686 version of this package, so I'm taking that version off of AUR. The only supported version now is x86_64 for this package. They also distribute an ARM version but I'm not sure if anyone would use it; if it's beneficial for you please put a comment here and I'll support that version as well.

dangmai commented on 2019-02-28 17:35

@fandancer are you a developer? If you are you can put a few console.log in /opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/crypto.js around line 162 to explore the state at the time of the error. Usually that helps narrowing down why things don't work. If not then I'm not sure what else to try, since I can't reproduce this issue.

fandancer commented on 2019-02-28 17:26

@dangmai

gnome-keyring: 3.28.2 node v11.10.0

I uninstalled the nodejs package and still have the same problem unfortunately...

dangmai commented on 2019-02-28 16:29

@fandancer that's very weird. I looked into the source code distributed by Salesforce and nothing looks out of place. Also I do know this package works for multiple people on Arch/Manjaro/Antergos so I'm a bit stumped why it doesn't work for you.

Here are a couple of things that I can think of: - Did you install gnome-keyring? - Do you have node installed by pacman in your system? If yes, which version? (sfdx-cli brings its own embedded Node 8.9.4 but maybe there's something going on with your PATH)

fandancer commented on 2019-02-28 13:33

I'm getting a lot of errors relating to the /opt/sfdx-cli files but these are deleted on reinstall.

{"name":"sfdx","hostname":"test","pid":26637,"level":50,"msg":"[ false,\n  '{\"message\":\"Invalid key length\",\"status\":1,\"stack\":\"Error: Invalid key length\\\\n    at new Cipheriv (crypto.js:219:16)\\\\n    at Object.createCipheriv (crypto.js:619:10)\\\\n    at Crypto.encrypt (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/crypto.js:162:31)\\\\n    at Object.keys.forEach (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/configValidator.js:68:36)\\\\n    at Array.forEach (<anonymous>)\\\\n    at crypto.init.then (/opt/sfdx-cli/node_modules/salesforce-alm/dist/lib/configValidator.js:59:37)\\\\n    at tryCatcher (/opt/sfdx-cli/node_modules/bluebird/js/release/util.js:16:23)\\\\n    at Promise._settlePromiseFromHandler (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:510:31)\\\\n    at Promise._settlePromise (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:567:18)\\\\n    at Promise._settlePromise0 (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:612:10)\\\\n    at Promise._settlePromises (/opt/sfdx-cli/node_modules/bluebird/js/release/promise.js:691:18)\\\\n    at Async._drainQueue (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:138:16)\\\\n    at Async._drainQueues (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:148:10)\\\\n    at Immediate.Async.drainQueues (/opt/sfdx-cli/node_modules/bluebird/js/release/async.js:17:14)\\\\n    at runCallback (timers.js:789:20)\\\\n    at tryOnImmediate (timers.js:751:5)\",\"name\":\"Error\",\"warnings\":[]}' ]","time":"2019-02-28T13:27:36.725Z","v":0}

dangmai commented on 2019-02-27 17:21

Apparently there is, here's the documentation: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_cli_log_messages.htm

fandancer commented on 2019-02-26 09:12

@dangmai

I run the commands:

pacman -R sfdx-cli

rm -rf ~/.local/share/sfdx

yay sfdx-cli

sfdx update

sfdx force:auth:web:login

And I'm still hitting the same error, is there a log to view to check the error?

Edit: Thought I could get around this by making an ubuntu VM and logging in there, then copying the json files for that user into my Arch install. Ubuntu works fine, but when I try the command sfdx force:org:open -u test@test.com I get the same invalid key length error