# I'm deploying a private ipfs network.I got an error in starting the node by using swarm key

**URL:** <https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [April 14, 2023, 9:22am UTC](https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277 "2023-04-14T09:22:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil1414](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/nikhil1414/32/7594_2.png) [@Nikhil1414](https://discuss.ipfs.tech/u/Nikhil1414)\
**Post date:** [April 14, 2023, 9:22am UTC](https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277/1 "2023-04-14T09:22:17Z")

</div>

PS C:\Users\NIKHIL\>  
ipfs daemon  
Initializing daemon…  
Kubo version: 0.19.1  
Repo version: 13  
System version: amd64/windows  
Golang version: go1.19.8  
2023-04-14T14:35:29.720+0530 ERROR core core/builder.go:158 constructing the node: could not build arguments for function “[github.com/ipfs/kubo/core/node](http://github.com/ipfs/kubo/core/node)”.PeerWith.func1 ([github.com/ipfs/kubo@v0.19.1/core/node/peering.go:29](http://github.com/ipfs/kubo@v0.19.1/core/node/peering.go:29)): failed to build \*peering.PeeringService: could not build arguments for function “[github.com/ipfs/kubo/core/node](http://github.com/ipfs/kubo/core/node)”.Peering ([github.com/ipfs/kubo@v0.19.1/core/node/peering.go:14](http://github.com/ipfs/kubo@v0.19.1/core/node/peering.go:14)): failed to build host.Host: could not build arguments for function “[github.com/ipfs/kubo/core/node/libp2p](http://github.com/ipfs/kubo/core/node/libp2p)”.Host ([github.com/ipfs/kubo@v0.19.1/core/node/libp2p/host.go:40](http://github.com/ipfs/kubo@v0.19.1/core/node/libp2p/host.go:40)): could not build value group config.Option[group=“libp2p”]: received non-nil error from function “[github.com/ipfs/kubo/core/node/libp2p](http://github.com/ipfs/kubo/core/node/libp2p)”.PNet ([github.com/ipfs/kubo@v0.19.1/core/node/libp2p/pnet.go:21](http://github.com/ipfs/kubo@v0.19.1/core/node/libp2p/pnet.go:21)): failed to configure private network: expected file header /key/swarm/psk/1.0.0/, got: ��/key/swarm/psk/1.0.0/38948a3fb3b80efee3d444649ebedf0458c584b4e6bb3ds5c5bcfb9ac3a53casae042sdb.I got this error while running “ipfs daemon”.i generated swarm.key by using ```  
ipfs-swarm-key-gen \> ~/.ipfs/swarm.key

```auto

```

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [April 14, 2023, 10:19am UTC](https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277/2 "2023-04-14T10:19:18Z")

</div>

> [@Nikhil1414](#):
>
> ��

You have garbage data inside the swarm key file, this is the replacement character, you mixed something (random example ISO-8859-1) with your utf8 inside the swarm key.

Also I’m pretty sure this is your swarm key:

> [@Nikhil1414](#):
>
> 38948a3fb3b80efee3d444649ebedf0458c584b4e6bb3ds5c5bcfb9ac3a53casae042sdb

So your private network isn’t so private anymore 😃

---

<div class="post-metadata">

**Author:** ![Nikhil1414](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/nikhil1414/32/7594_2.png) [@Nikhil1414](https://discuss.ipfs.tech/u/Nikhil1414)\
**Post date:** [April 14, 2023, 12:56pm UTC](https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277/3 "2023-04-14T12:56:31Z")

</div>

its not my swarm key.its just a random number

---

<div class="post-metadata">

**Author:** ![Nikhil1414](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/nikhil1414/32/7594_2.png) [@Nikhil1414](https://discuss.ipfs.tech/u/Nikhil1414)\
**Post date:** [April 14, 2023, 12:58pm UTC](https://discuss.ipfs.tech/t/im-deploying-a-private-ipfs-network-i-got-an-error-in-starting-the-node-by-using-swarm-key/16277/4 "2023-04-14T12:58:07Z")

</div>

/key/swarm/psk/1.0.0/  
/base16/  
38948a3fb3b80efee3d44464edssdf0458c584bsdfs4e6bb35c5bcfbsdbe0423b  
THIS IS MY SWARM.KEY FILE
