# Error Installing Discovery CLI

**URL:** <https://forum.scrt.network/t/error-installing-discovery-cli/917>\
**Category:** Secret Nodes\
**Created:** [June 18, 2019, 3:30pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917 "2019-06-18T15:30:21Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 11, 2019, 11:03am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/21 "2019-07-11T11:03:02Z")

</div>

hi @victor,  
After trying hard, I switched to use docker-compose ([this repo](https://github.com/enigmampc/discovery-docker-network#installation)) to install & launch the testnet instead.  
I think the issue above, relating to some native libs’s dependencies.

Just have 1 question, if I use the repo above to launch the testnet, is it the same as discovery-cli does?  
And am I connecting to my local testnet or Enigma Discovery testnet?

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [July 11, 2019, 12:30pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/22 "2019-07-11T12:30:03Z")

</div>

It’s very similar though the repo you mention does not expose the ports needed for you to interact with the network from the host side.

In either case, you’ll be connecting to your local testnet (dockerized) as this is all what Enigma has released to date. There is no such thing as a public Enigma Discovery testnet, yet; that’s our next milestone.

---

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 11, 2019, 2:22pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/23 "2019-07-11T14:22:08Z")

</div>

Thank for fast reply, @victor.

So for now, I’ll use my local container to test first. I’m using Enigma for a dApp demo.

Hopefully we will have the public Enigma DiscoveryTestnet soon. I’m so excited.

By the way, if you said that, I suppose that I’m using the software resources from my machine to launch the local Discovery testnet, am I correct?

> # HD Wallet
> 
> Mnemonic: myth like bonus scare over problem client lizard pioneer submit female collect  
> Base HD Path: m/44’/60’/0’/0/{account\_index}

And the things are such as Available Accounts, Private Keys, etc… shown on logs of running launch bash, they are test accounts & random keys which my local testnet provided, aren’t they?

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [July 13, 2019, 9:43am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/24 "2019-07-13T09:43:44Z")

</div>

@arookie, yes that is correct. All the resources that you see/use are local to your machine, and all the Ethereum accounts, keys, amounts are from a local Ganache/Truffle instance, so you are im full control and it’s all a test envirnoment. There is nothing at stake 🙂 it’s a sandbox

---

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 14, 2019, 3:58pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/25 "2019-07-14T15:58:59Z")

</div>

hi @victor / @adi , I got some troubles when compiling the contract `simple_calculator`. The error is described below:

> Compiling contract v0.1.0 (/root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator)  
> Running `rustc --crate-name contract src/lib.rs --color always --crate-type cdylib --emit=dep-info,link -C opt-level=z -C panic=abort -C lto -C metadata=f6a228717b0787e8 --out-dir /root/enigma-core/examples/eng_wasm_contracts/simple_calculator/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/root/enigma-core/examples/eng_wasm_contracts/simple_calculator/target/wasm32-unknown-unknown/release/deps -L dependency=/root/enigma-core/examples/eng_wasm_contracts/simple_calculator/target/release/deps --extern eng_wasm=/root/enigma-core/examples/eng_wasm_contracts/simple_calculator/target/wasm32-unknown-unknown/release/deps/libeng_wasm-fb7623dfcc30efa8.rlib --extern eng_wasm_derive=/root/enigma-core/examples/eng_wasm_contracts/simple_calculator/target/release/deps/libeng_wasm_derive-e470bc3e92339e2c.so -C linker=rust-lld`  
> error: linking with `rust-lld` failed: exit code: 1  
> |  
> = note: “rust-lld” “-flavor” “wasm” “–no-threads” “-z” “stack-size=1048576” “–stack-first” “–allow-undefined” “–fatal-warnings” “–no-demangle” “–export-dynamic” “–no-entry” “-L” “/root/.rustup/toolchains/nightly-2019-05-20-x86\_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib” “/root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator/target/wasm32-unknown-unknown/release/deps/contract.contract.2yh5mw4u-cgu.1.rcgu.o” “-o” “/root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator/target/wasm32-unknown-unknown/release/deps/contract.wasm” “–export” “function\_name” “–export” “deploy” “–export” “call” “–export” “args” “–export” “print” “–gc-sections” “-O2” “-L” “/root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator/target/wasm32-unknown-unknown/release/deps” “-L” “/root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator/target/release/deps” “-L” “/root/.rustup/toolchains/nightly-2019-05-20-x86\_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib” “/root/.rustup/toolchains/nightly-2019-05-20-x86\_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler\_builtins-c2f76c4d0d77f31b.rlib” “–no-entry”  
> = note: rust-lld: error: failed to open /root/enigma-core/examples/eng\_wasm\_contracts/simple\_calculator/target/wasm32-unknown-unknown/release/deps/contract.wasm: Invalid argument

The command I tried to run:

```
RUSTFLAGS='-C linker=rust-lld' cargo build --release --target wasm32-unknown-unknown --verbose

```

Can you please take a look?

---

<div class="post-metadata">

**Author:** ![curious\_enigma](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@curious\_enigma](https://forum.scrt.network/u/curious_enigma)\
**Post date:** [May 18, 2020, 10:10am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/26 "2020-05-18T10:10:33Z")

</div>

Has anyone solved this issue, I have tried all the possible suggestion’s given in this thread yet I am not able to install discovery.

---

<div class="post-metadata">

**Author:** ![curious\_enigma](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@curious\_enigma](https://forum.scrt.network/u/curious_enigma)\
**Post date:** [May 18, 2020, 11:56am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/27 "2020-05-18T11:56:48Z")

</div>

I managed to get it installed but then the discovery command’s don’t work

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [May 19, 2020, 8:58am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/28 "2020-05-19T08:58:40Z")

</div>

Sounds like it didn’t install properly afterall, what errors are you getting?  
BTW secret contracts are coming to a new blockchain, please check out [enigma-blockchain-contracts-guide](https://github.com/enigmampc/enigma-blockchain-contracts-guide) if you haven’t already.

---

<div class="post-metadata">

**Author:** ![curious\_enigma](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@curious\_enigma](https://forum.scrt.network/u/curious_enigma)\
**Post date:** [May 19, 2020, 9:02am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/29 "2020-05-19T09:02:00Z")

</div>

Discovery got installed and I can use the command’s but when I do discovery start  
After installing discovery and discovery start,  
(node:6639) UnhandledPromiseRejectionWarning: #  
(node:6639) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)  
(node:6639) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am getting this error.

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [May 19, 2020, 9:23am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/30 "2020-05-19T09:23:29Z")

</div>

I see you started a thread, will follow up there

[Previous page](https://forum.scrt.network/t/error-installing-discovery-cli/917.md?page=1)
