# Ipfs name failing to resolve

**URL:** <https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524>\
**Category:** Uncategorized\
**Tags:** ipns\
**Created:** [November 28, 2017, 4:09pm UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524 "2017-11-28T16:09:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![restaldt](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@restaldt](https://discuss.ipfs.tech/u/restaldt)\
**Post date:** [November 28, 2017, 4:09pm UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/1 "2017-11-28T16:09:40Z")

</div>

both the cli, http api, and java api are failing to resolve my ipns name and it has been working fine for a week straight up until last night.

Have deleted my ipfs folder and reinitialized with ipfs init and still the new ipns hash cannot be resolved.

Any ideas on what may be going on or what I can do about it?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [November 29, 2017, 2:39am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/2 "2017-11-29T02:39:52Z")

</div>

> Have deleted my ipfs folder and reinitialized with ipfs init and still the new ipns hash cannot be resolved.

So you started over from scratch but even your _new_ key doesn’t work? That’s… strange. When you do an `ipfs name publish ...`, do you see any errors? If you don’t mind, could you post your peer ID (the `/ipns/` link)?

---

<div class="post-metadata">

**Author:** ![Restaldt1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/restaldt1/32/518_2.png) [@Restaldt1](https://discuss.ipfs.tech/u/Restaldt1)\
**Post date:** [November 29, 2017, 4:04am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/3 "2017-11-29T04:04:21Z")

</div>

Its working now… maybe the DHT was way overloaded today and it was timing out?

---

<div class="post-metadata">

**Author:** ![Restaldt1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/restaldt1/32/518_2.png) [@Restaldt1](https://discuss.ipfs.tech/u/Restaldt1)\
**Post date:** [November 29, 2017, 4:09am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/4 "2017-11-29T04:09:00Z")

</div>

[https://ipfs.io/ipns/Qma1BpdDSJiLNKQfKdr8g2WpfhJ3KxvUrwGkPJeqH39HgQ](https://ipfs.io/ipns/Qma1BpdDSJiLNKQfKdr8g2WpfhJ3KxvUrwGkPJeqH39HgQ)

^new id is now resolving

[https://ipfs.io/ipns/QmZ9baizJ1LpqipPMzggeSLetXWESz1ggAuF8o6dfiwo7K](https://ipfs.io/ipns/QmZ9baizJ1LpqipPMzggeSLetXWESz1ggAuF8o6dfiwo7K)

^old id is still not resolving (probably working as intended)

I did not change anything or publish anything to these namespaces today but ipfs name resolve is now working again in http, cli

still unknown on the java api but since the cli is working it probably is too

edit: java api is working as well

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [November 29, 2017, 4:57am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/5 "2017-11-29T04:57:58Z")

</div>

> [@Restaldt1](#):
>
> ^old id is still not resolving (probably working as intended)

Yes. IPNS records expire every 24 hours (and are republished automatically every 12). If you stop publishing them (e.g., by not running a daemon or blowing away your local repo), they’ll disappear.

See:

> [@Confusion about IPNS](https://discuss.ipfs.tech/t/confusion-about-ipns/1414):
>
> I have read through the various docs and examples and am still confused a bit about IPNS. The use case I am using it for is pretty much standard I think: I want to publish a webapp and some assets on a private IPFS swarm. Other than using a private swarm, that is exactly the use case for which IPNS is introduced in the samples etc. However, I have had various problems with this. publishing and resolving was sometimes unbearably slow. publishing does not work at all if a node is not connected …

---

<div class="post-metadata">

**Author:** ![Restaldt1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/restaldt1/32/518_2.png) [@Restaldt1](https://discuss.ipfs.tech/u/Restaldt1)\
**Post date:** [November 29, 2017, 5:16am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/6 "2017-11-29T05:16:04Z")

</div>

hmm thats weird i guess while i was working on it this past week i kept publishing to my namespace over and over refreshing my ipns record.

I did only try the new hash once or twice this morning so maybe it just timed out those times.

---

<div class="post-metadata">

**Author:** ![Restaldt1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/restaldt1/32/518_2.png) [@Restaldt1](https://discuss.ipfs.tech/u/Restaldt1)\
**Post date:** [November 29, 2017, 5:17am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/7 "2017-11-29T05:17:22Z")

</div>

Thanks for this answer its good to know.

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [November 29, 2017, 6:24am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/8 "2017-11-29T06:24:14Z")

</div>

It should automatically be republished if you leave your daemon running. Were you doing that or just manually republishing.

---

<div class="post-metadata">

**Author:** ![Restaldt1](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/restaldt1/32/518_2.png) [@Restaldt1](https://discuss.ipfs.tech/u/Restaldt1)\
**Post date:** [November 29, 2017, 6:49am UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/9 "2017-11-29T06:49:52Z")

</div>

This project was on my laptop and i had been busy with another project all day yesterday so This was exactly my problem, my daemon was offline for more than 12hours

I had first tried to load the page without the daemon running but then i ran the daemon and the page still wouldnt load

and then i tried to run ipfs name resolve -r on my desktop and it failed too for the same reason ( i had not run the desktop’s daemon in a week or so)

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [November 29, 2017, 11:46pm UTC](https://discuss.ipfs.tech/t/ipfs-name-failing-to-resolve/1524/10 "2017-11-29T23:46:56Z")

</div>

That’s because we start the republish timer at 0 when starting the daemon. This is likely a bug: [https://github.com/ipfs/go-ipfs/pull/4440](https://github.com/ipfs/go-ipfs/pull/4440)
