# Ipfs daemon keeps giving me this error message i checked swarm key

**URL:** <https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718>\
**Category:** Help\
**Created:** [March 16, 2024, 2:08am UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718 "2024-03-16T02:08:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![norhanamr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/norhanamr/32/8447_2.png) [@norhanamr](https://discuss.ipfs.tech/u/norhanamr)\
**Post date:** [March 16, 2024, 2:08am UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/1 "2024-03-16T02:08:22Z")

</div>

i get the below message when i run ipfs daemon

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.27.0/core/node/peering.go:30](http://github.com/ipfs/kubo@v0.27.0/core/node/peering.go:30)): 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.27.0/core/node/peering.go:14](http://github.com/ipfs/kubo@v0.27.0/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.27.0/core/node/libp2p/host.go:40](http://github.com/ipfs/kubo@v0.27.0/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.27.0/core/node/libp2p/pnet.go:21](http://github.com/ipfs/kubo@v0.27.0/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/

Error: constructing the node (see log for full detail): failed to configure private network: expected file header /key/swarm/psk/1.0.0/, got: ��/key/swarm/psk/1.0.0/

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [March 16, 2024, 10:11pm UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/2 "2024-03-16T22:11:04Z")

</div>

Your `swarm.key` file is not in the expected format.

> <https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#private-networks>

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [March 16, 2024, 10:12pm UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/3 "2024-03-16T22:12:08Z")

</div>

> [@norhanamr](#):
>
> got: ��/key/swarm/psk/1.0.0/

Error message literally saying there are two weird unicode chars at the beginning of that line.

---

<div class="post-metadata">

**Author:** ![norhanamr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/norhanamr/32/8447_2.png) [@norhanamr](https://discuss.ipfs.tech/u/norhanamr)\
**Post date:** [March 16, 2024, 10:22pm UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/4 "2024-03-16T22:22:24Z")

</div>

@hector  
Do you have any idea why ?  
i opened the swarm key file with note pad and i can’t see any characters is starts with “/”

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [March 19, 2024, 8:57pm UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/5 "2024-03-19T20:57:53Z")

</div>

Did you follow the instructions to create the swarm.key file?

---

<div class="post-metadata">

**Author:** ![norhanamr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/norhanamr/32/8447_2.png) [@norhanamr](https://discuss.ipfs.tech/u/norhanamr)\
**Post date:** [March 19, 2024, 9:05pm UTC](https://discuss.ipfs.tech/t/ipfs-daemon-keeps-giving-me-this-error-message-i-checked-swarm-key/17718/6 "2024-03-19T21:05:54Z")

</div>

I followed these instructions.

[Kubuxu/go-ipfs-swarm-key-gen (github.com)](https://github.com/Kubuxu/go-ipfs-swarm-key-gen)
