# Error for command dfx canister install --all

**URL:** <https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889>\
**Category:** Programs & Applications\
**Created:** [July 14, 2020, 10:46am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889 "2020-07-14T10:46:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![4MarkusMarkus](https://avatars.discourse-cdn.com/v4/letter/4/ecb155/32.png) [@4MarkusMarkus](https://forum.dfinity.org/u/4MarkusMarkus)\
**Post date:** [July 14, 2020, 10:46am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/1 "2020-07-14T10:46:48Z")

</div>

Hi everyone,  
I am following this tutorial [https://sdk.dfinity.org/docs/quickstart/quickstart.html](https://sdk.dfinity.org/docs/quickstart/quickstart.html)  
everything goes well until I try to install cannister.

I put this command:  
dfx canister install --all

and I get this error code:  
Installing code for canister hello\_world, with canister\_id ic:8043BE22FCECDF2FA7  
An error occured:  
AgentError(  
ReqwestError(  
reqwest::Error {  
kind: Request,  
url: “[http://127.0.0.1:8000/api/v1/submit](http://127.0.0.1:8000/api/v1/submit)”,  
source: hyper::Error(  
Connect,  
ConnectError(  
“tcp connect error”,  
Os {  
code: 111,  
kind: ConnectionRefused,  
message: “Connection refused”,  
},  
),  
),  
},  
),  
)

Any ideas what might be the problem?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [July 14, 2020, 11:40am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/2 "2020-07-14T11:40:43Z")

</div>

1. Open a terminal
2. Head into your project folder
3. run `dfx stop`
4. run `dfx start --background`
5. wait for ~ 10 sec
6. run `dfx canister install --all`

does this help?

---

<div class="post-metadata">

**Author:** ![4MarkusMarkus](https://avatars.discourse-cdn.com/v4/letter/4/ecb155/32.png) [@4MarkusMarkus](https://forum.dfinity.org/u/4MarkusMarkus)\
**Post date:** [July 14, 2020, 1:25pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/3 "2020-07-14T13:25:04Z")

</div>

Thanks for the suggestion, when I run dfx start -background it did not recognized argument -background

So I ran only dfx start, this is what I got ☹ It asked for firewall permision which I granted, and run it again, but with the same message:  
/dfinity/hello\_world$ dfx start  
⠂ Checking client!  
Jul 14 13:21:56.331 INFO Dfinity Replica Started  
Jul 14 13:21:56.333 INFO Generated node ID: 100  
thread ‘main’ panicked at ‘Permissions too open for path /mnt/c/Users/Marko/documents/dfinity/hello\_world/.dfx/state/crypto\_store’, crypto/src/crypto\_service\_provider/secret\_key\_store/lmdb\_store.rs:62:13  
⠓ Replica exited with signal: 6  
client address: “[http://localhost:55030](http://localhost:55030)”  
binding to: V4(127.0.0.1:8000)  
⠒ Client bound at 55030  
An error occured:  
AgentError(  
TimeoutWaitingForResponse,  
)

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [July 14, 2020, 7:50pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/4 "2020-07-14T19:50:53Z")

</div>

It‘s supposed to be two dashes: `dfx start --background` (my phone keeps reformatting this …).  
Next thing you should is

1. open a terminal
2. head into your project folder
3. run `rm -rf .dfx/state`
4. retry the steps from my previous comment 🙂

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [July 14, 2020, 9:56pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/5 "2020-07-14T21:56:12Z")

</div>

There’s also a `dfx start --clean` option for this.

(Aside, if you want to see what options are available you can always add --help to dfx and any of its subcommands).

---

<div class="post-metadata">

**Author:** ![jar](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jar/32/462_2.png) [@jar](https://forum.dfinity.org/u/jar)\
**Post date:** [July 16, 2020, 11:44pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/6 "2020-07-16T23:44:49Z")

</div>

I’m running into these same issues. `dfx canister install —all` `An error occured: CannotFindCanisterName( "—all", )`

---

<div class="post-metadata">

**Author:** ![hansl](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/hansl/32/134_2.png) [@hansl](https://forum.dfinity.org/u/hansl)\
**Post date:** [July 17, 2020, 1:48am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/7 "2020-07-17T01:48:56Z")

</div>

There are two dashes, not one, to `--all`

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [July 17, 2020, 6:59am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/8 "2020-07-17T06:59:20Z")

</div>

sorry, i updated my inital response

---

<div class="post-metadata">

**Author:** ![4MarkusMarkus](https://avatars.discourse-cdn.com/v4/letter/4/ecb155/32.png) [@4MarkusMarkus](https://forum.dfinity.org/u/4MarkusMarkus)\
**Post date:** [July 24, 2020, 3:26pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/9 "2020-07-24T15:26:13Z")

</div>

Thanks for the suggestions, I have played with it, done all you have suggested, installed new 0.6.0 verios of dfx but still getting the same problem :(((((

Version v0.6.0 installed successfully.  
⠉ Checking replica!  
thread ‘main’ panicked at ‘Permissions too open for path /mnt/c/Users/Marko/Documents/dfinity/hello\_world/.dfx/state/replicated\_state/node-100/crypto’, crypto/src/crypto\_service\_provider/secret\_key\_store/proto\_store.rs:95:132

here is another one ☹

I have tried exactly what you have suggested and a couple more variations… Any other suggestions? 🙂

/hello\_world/src/hello\_world$ dfx start --background  
⠂ Pinging the Internet Computer replica…  
thread ‘main’ panicked at ‘Permissions too open for path /mnt/c/Users/Marko/Documents/dfinity/hello\_world/.dfx/state/replicated\_state/node-100/crypto’, crypto/src/crypto\_service\_provider/secret\_key\_store/proto\_store.rs:95:13  
⠲ Replica exited with exit code: 101  
^Z

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [July 24, 2020, 4:03pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/10 "2020-07-24T16:03:40Z")

</div>

Did you try this inside your project directory?

> [@Ori](#):
>
> There’s also a `dfx start --clean` option for this.

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [July 24, 2020, 4:14pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/11 "2020-07-24T16:14:44Z")

</div>

Hi Markus

It looks like you might be running this using Windows Subsystem for Linux and saving your project on the mounted Windows drive? If so, this will have issues because of the way WSL handles the mounted drive.

Windows isn’t officially supported yet, but if you:

1. Use WSL version 2, and

2. Create your project in the WSL filesystem instead of on the mount, eg in ~/

…you should be able to run it fine.

Some more WSL info can be found in this thread: [Dfx on windows for beginners](https://forum.dfinity.org/t/dfx-on-windows-for-beginners/194/18)

---

<div class="post-metadata">

**Author:** ![4MarkusMarkus](https://avatars.discourse-cdn.com/v4/letter/4/ecb155/32.png) [@4MarkusMarkus](https://forum.dfinity.org/u/4MarkusMarkus)\
**Post date:** [July 29, 2020, 9:40am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/12 "2020-07-29T09:40:58Z")

</div>

Great!!! finally it works fine with WSL 2 many thanks!!!

---

<div class="post-metadata">

**Author:** ![atom](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@atom](https://forum.dfinity.org/u/atom)\
**Post date:** [August 25, 2020, 10:49pm UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/13 "2020-08-25T22:49:58Z")

</div>

Hello @Ori!

Do you have insights about when Windows will be supported by the DFINITY execution command-line interface?

Meanwhile, thank you for troubleshooting this issue it helped me a lot. 🙂

Best regards,

@motoko

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [August 26, 2020, 7:45am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/14 "2020-08-26T07:45:32Z")

</div>

You’re welcome! No news yet on the Windows release. If you’re a VSCode user their WSL integration makes the experience quite seamless though.

---

<div class="post-metadata">

**Author:** ![Raviteja](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Raviteja](https://forum.dfinity.org/u/Raviteja)\
**Post date:** [May 21, 2021, 4:29am UTC](https://forum.dfinity.org/t/error-for-command-dfx-canister-install-all/889/15 "2021-05-21T04:29:04Z")

</div>

Thanks @Ori Its helped a lot. Now I am able to setup the dfinity sdk in my windows system
