On deploying the code - we were getting the following errors

2020-03-06T09:37:08.219Z 8f80dd6a-daf9-4930-869e-44936141ad45 ERROR Error: Command failed: cleos -u https://jungle2.cryptolions.io:443 get account xxxxxxx --json /bin/sh: cleos: command not found

at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:223:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:223:5)
at Pipe.<anonymous> (net.js:664:12) {

killed: false, code: 127, signal: null, cmd: 'cleos -u https://jungle2.cryptolions.io:443 get account dciecosystem --json' }

As you can see in the error Lambda was unable to run cleos command (Command failed: cleos -u)

In order to use the EOS commands, we created a new EC2 environment installed with Amazon Linux 2 OS and performed the EOS installation from the source code as given in the following link

We want to install EOS command in a single directory, without using any OS shared Libraries, so that we can use the commands directory from the directory without using the OS files.This install was of 2.4 GB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.