# "Error response from daemon: invalid mount config for type" in Docker

**URL:** <https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927>\
**Category:** troubleshooting\
**Tags:** docker, windows\
**Created:** [December 30, 2020, 1:51am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927 "2020-12-30T01:51:40Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 7:51am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/41 "2021-01-08T07:51:43Z")

</div>

> [@karacurt](#):
>
> there is no changes of disk letters or other settings,

I mean GUIDs of Windows accounts. The letter doesn’t matter since you use the correct one.  
The permissions issue is related to Windows accounts only or hardware configuration.  
And this error have proved it:

> [@karacurt](#):
>
> remove config/storage/write-test668474483: permission denied

Please, try to do:

```auto
docker run -it --rm --entrypoint sh --mount type=bind,source=F:\,destination=/app/config storjlabs/storagenode

```

When you see prompt:

```auto
echo "test" > /app/config/storage/test.txt
cat /app/config/storage/test.txt
rm /app/config/storage/test.txt
exit

```

Please, post results

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 7:56am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/42 "2021-01-08T07:56:45Z")

</div>

> [@Alexey](#):
>
> You should check your port forwarding rule, firewall for the forwarded port and your identity.

Before of Win reinstall I’ve used the Microsoft account (as proposal in installation proccess);  
After reinstall the Microsoft account has disabled and I’ve moved to offline acc with different naming.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 7:58am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/43 "2021-01-08T07:58:23Z")

</div>

This is mean that the owner was different - from the initial account. And now you have all different and “nice” weirdness with permissions.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 8:02am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/44 "2021-01-08T08:02:23Z")

</div>

> [@Alexey](#):
>
> ```auto
> echo "test" > /app/config/storage/test.txt
> cat /app/config/storage/test.txt
> rm /app/config/storage/test.txt
> exit
> 
> ```
> 
> Please, post results

 ![2021-01-08_12-01-49](https://storj-s3.bcdn.literatehosting.net/original/2X/f/f3afda0de8378fb50ee671586d0497bfde76f1d2.png)

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 8:05am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/45 "2021-01-08T08:05:26Z")

</div>

Current activity of 1st (working) node:

 ![2021-01-08_12-04-20](https://storj-s3.bcdn.literatehosting.net/original/2X/4/4ec39ae825e7ed5a8b4e4408ede314eb9c16fc02.png)

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 8:12am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/46 "2021-01-08T08:12:51Z")

</div>

You missed `>` in the first command, please, try again

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 8:13am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/47 "2021-01-08T08:13:47Z")

</div>

I hope you used a different disk for your second node.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 8:19am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/48 "2021-01-08T08:19:26Z")

</div>

![2021-01-08_12-42-35](https://storj-s3.bcdn.literatehosting.net/original/2X/8/8ff71edf773286a401c0ac0f621e4a376083a55c.png)

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 8:20am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/49 "2021-01-08T08:20:12Z")

</div>

yep,  
there is two separate disks

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 8:49am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/50 "2021-01-08T08:49:01Z")

</div>

Looks like the `storage` is writeable.

You did not answer on question:

> [@Alexey](#):
>
> By the way, did you setup a node? [Storage Node - Storj Docs](https://documentation.storj.io/setup/cli/storage-node#setting-up-the-storage-node)

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 9:16am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/51 "2021-01-08T09:16:22Z")

</div>

> [@Alexey](#):
>
> You did not answer on question:

This is weird question - because the node has been sets up before and works fine (before reboot =\> reinstall win).

> [@karacurt](#):
>
> 1st:  
> docker run -d --restart unless-stopped --stop-timeout 300 -p 28967:28967 -p 127.0.0.1:14002:14002 -e WALLET=“X” -e EMAIL=“Y1” -e ADDRESS=“Z:28967” -e BANDWIDTH=“50TB” -e STORAGE=“11.5TB” --mount type=bind,source=“F:\data\identity\storagenode”,destination=/app/identity --mount type=bind,source=“F:\data”,destination=/app/config --name storagenode storjlabs/storagenode:latest
> 
> 2nd:  
> docker run -d --restart unless-stopped --stop-timeout 300 -p 28968:28967 -p 127.0.0.1:14003:14002 -e WALLET=“X” -e EMAIL=“Y2” -e ADDRESS=“Z:28968” -e BANDWIDTH=“50TB” -e STORAGE=“11.5TB” --mount type=bind,source=“N:\data\identity\storagenode2”,destination=/app/identity --mount type=bind,source=“N:\data”,destination=/app/config --name storagenode2 storjlabs/storagenode:latest

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 8, 2021, 9:19am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/52 "2021-01-08T09:19:21Z")

</div>

> [@Alexey](#):
>
> So, it could have this problem after update to the next version. But you would notice it only after restart

there is always request for a reboot after update and there was not this reason for rebooting.  
(I’ve just swaped the power supply and there was no emergency change).

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 8, 2021, 8:02pm UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/53 "2021-01-08T20:02:21Z")

</div>

Oh, you used a subfolder on disk, not the root of the disk.  
Then we should repeat the test but for subfolder

```auto
docker run -it --rm --entrypoint sh --mount type=bind,source=F:\data,destination=/app/config storjlabs/storagenode

```

When you see a prompt, execute this:

```auto
echo "test" > /app/config/storage/test.txt
cat /app/config/storage/test.txt
rm /app/config/storage/test.txt
exit

```

Please, post results.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 9, 2021, 6:47am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/54 "2021-01-09T06:47:48Z")

</div>

![2021-01-09_10-45-28](https://storj-s3.bcdn.literatehosting.net/original/2X/8/8150183adfca6f82ca64eb0fccb0e912e94294e7.png)  
Should I mark this checkboxes?

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 9, 2021, 9:09am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/55 "2021-01-09T09:09:41Z")

</div>

Go to alternate way - moved the node to different place with GUI and default port 28967.  
Now it began to works (at least shows up as ONLINE).  
All what described and mentioned above runs me up in circles, the final result of restarting 2nd node that got issues after rebooting the pc I have not get. Hope that a part of this bad experience and waste of time of helpers and me can give some clue in issues of other operators.  
Summary:

1. Healthy node with Suspension/Audit/Online/=100% can hang about 10 days before disqualified;
2. To expand the node quantity need to get up a Linyx system. All the Win configs with more than 1 node are pain in the ass;

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 9, 2021, 11:09am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/56 "2021-01-09T11:09:04Z")

</div>

> [@karacurt](#):
>
> Should I mark this checkboxes?

Yes on both questions.

> [@karacurt](#):
>
> All the Win configs with more than 1 node are pain in the ass;

I have to agree, however if you remove the OWNER-CREATOR right away (I always do so for all new disks in my system), you will miss most of the pains with permissions. However, you always can fix it, but need more frictions.

By the way, you can get the same situation in Linux even simpler - run the docker container with `sudo`, then add your user to the `docker` group and run the same container without `sudo` - you will have the same problem with permissions.

I’m glad that you finally solved the problem - when you moved data it inherit a current correct permissions without OWNER-CREATOR and with SYSTEM as an owner and full rights. So this is the same as recursively apply both (those two checkboxes above).

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 9, 2021, 8:25pm UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/57 "2021-01-09T20:25:07Z")

</div>

> [@Alexey](#):
>
> By the way, you can get the same situation in Linux even simpler - run the docker container with `sudo` , then add your user to the `docker` group and run the same container without `sudo` - you will have the same problem with permissions.

but you’ve certainly knew that if you haven’t run with super user, you’ll get bad exp. with my little usage of linux it is a more predictable system when you know what to do. i’ve just paused for now, after i’ve tried the command that uncover the issues and threats at a clean installment of ubuntu (don’t remember what the command is).  
in windows case there is too much unknown parameters where to look or think at in case of serious problems and it is not always clear vision how to fix (docker repeat with sharing of the disks, it is obvious when you know that you should make remove and rerun the marks of shared disks, but when you’ll get it for the first time it goes to forever to find the right way) and the solution not always the same in same cases.

> [@Alexey](#):
>
> I’m glad that you finally solved the problem

it is not a salvation - I’ve just give up for now and move the riddle in the future.

> [@Alexey](#):
>
> however if you remove the OWNER-CREATOR right away (I always do so for all new disks in my system)

good advise, thanks!

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 28, 2021, 2:19pm UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/58 "2021-01-28T14:19:18Z")

</div>

**Hi!**  
**Still got issues with waking up 2nd node, for right now the build looks like this:**  
**Docker 3.1.0 (51484) with wsl2 and ubuntu distr;**  
**The command I’ve used in Power Shell with adm rights:**  
**the settings rolls up via Power Shell**

**1st:**  
docker run -d --restart unless-stopped --stop-timeout 300 -p 28967:28967 -p 127.0.0.1:14002:14002 -e WALLET=“X” -e EMAIL=“Y1” -e ADDRESS=“Z:28967” -e BANDWIDTH=“50TB” -e STORAGE=“11.5TB” --mount type=bind,source=“F:\data\identity\storagenode\”,destination=/app/identity --mount type=bind,source=“F:\data”,destination=/app/config --name storagenode storjlabs/storagenode:latest

**works fine.**

**2nd:**  
docker run -d --restart unless-stopped --stop-timeout 300 -p 28968:28967 -p 127.0.0.1:14003:14002 -e WALLET=“X” -e EMAIL=“Y1” -e ADDRESS=“Z:28968” -e BANDWIDTH=“50TB” -e STORAGE=“11.5TB” --mount type=bind,source=“E:\data\identity\storagenode3\”,destination=/app/identity --mount type=bind,source=“E:\data”,destination=/app/config --name storagenode3 storjlabs/storagenode:latest

**and there is a big rabbit hole - for now I have stuck at this:**

**The rights for this HDD looks like this:**

**1st (working node)**

 ![2021-01-28_18-03-59](https://storj-s3.bcdn.literatehosting.net/original/2X/6/6ac10d104c2d1d80b0f8bbdb368872dfb4b33ac4.png)

**2nd (not working node)**

 ![2021-01-28_18-05-16](https://storj-s3.bcdn.literatehosting.net/original/2X/6/613487f57ddcb622b9ab25894a0ee3bd8d2e0b13.png)

**changing owner from Administrators to SYSTEM leads to corruption $RECYCLE.BIN and System Volume Information.**

**After starting the command for 2nd node, the node goes to endless restart with next mentions in logs:**

`2021-01-28T13:32:40.134Z INFO Operator email {"Address": "Y1"}`  
`2021-01-28T13:32:40.134Z INFO Operator wallet {"Address": "X"}`  
`Error: Error starting master database on storagenode: group:`  
`--- stat config/storage/blobs: no such file or directory`  
`--- stat config/storage/temp: no such file or directory`  
`--- stat config/storage/garbage: no such file or directory`  
`--- stat config/storage/trash: no such file or directory`

**It is what exactly I get when start with command fo 2nd node mentioned above.**

**Tried to check creating the test file with Docker, seems goes ok:**

 ![2021-01-28_17-45-07](https://storj-s3.bcdn.literatehosting.net/original/2X/f/f2efb784ee6ee3bd016b200e15484f8a888f15e1.png)  
**Command** docker exec -it storagenode3 sh  
**Leads to error:**  
Error response from daemon: Container e73c3256d049d429f0d6374da84d1dcfa7afef07a57564360ae44f7c65cb9c96 is restarting, wait until the container is running

**Do know how to move further, please help**

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 29, 2021, 5:46am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/59 "2021-01-29T05:46:29Z")

</div>

> [@karacurt](#):
>
> `Error: Error starting master database on storagenode: group:`  
> `--- stat config/storage/blobs: no such file or directory`  
> `--- stat config/storage/temp: no such file or directory`  
> `--- stat config/storage/garbage: no such file or directory`  
> `--- stat config/storage/trash: no such file or directory`

Meaning that you did not run setup for the second node. Please, do it (but you will need to remove `config.yaml` first): [Storage Node - Storj Docs](https://documentation.storj.io/setup/cli/storage-node#setting-up-the-storage-node)

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [January 29, 2021, 6:02am UTC](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927/60 "2021-01-29T06:02:55Z")

</div>

Oh, I’ve missed the new chain parameter in node setting.  
After caesarean the new node is born.  
Thank you, Alexey!

[Previous page](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927.md?page=2)

[Next page](https://forum.storj.io/t/error-response-from-daemon-invalid-mount-config-for-type-in-docker/10927.md?page=4)
