# Ipfs init error, need help

**URL:** <https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916>\
**Category:** Kubo\
**Created:** [September 24, 2018, 11:46am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916 "2018-09-24T11:46:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 24, 2018, 11:46am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/1 "2018-09-24T11:46:17Z")

</div>

Hello!

After install.sh I see:

```
$ ./install.sh
Moved ./ipfs to /usr/local/bin

```

When I write

```
$ ipfs init
initializing IPFS node at /Users/darwin/.ipfs
Error: ipfs configuration file already exists!
Reinitializing would overwrite your keys.

```

How can I get smth like this?

```
> ipfs init
initializing ipfs node at /Users/jbenet/.go-ipfs
generating 2048-bit RSA keypair...done
peer identity: Qmcpo2iLBikrdf1d6QU6vXuNb6P7hwrbNPW9kLAH8eG67z
to get started, enter:

  ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
```

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 24, 2018, 3:16pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/2 "2018-09-24T15:16:16Z")

</div>

You’ve already initialized your node, so there may not be any need to do it again unless there’s something wrong with your existing repository.

However, if you really want to delete your old repository and start over you can delete the `.ipfs` directory in `/home/darwin/` and then run `ipfs init` again.

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 24, 2018, 4:00pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/3 "2018-09-24T16:00:08Z")

</div>

I just want to get peer identity, like this:

peer identity: Qmcpo2iLBikrdf1d6QU6vXuNb6P7hwrbNPW9kLAH8eG67z

How can I find 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:** [September 24, 2018, 4:11pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/4 "2018-09-24T16:11:35Z")

</div>

Run `ipfs id` (see the ID field).

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 24, 2018, 8:42pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/5 "2018-09-24T20:42:18Z")

</div>

Now I see this:

```
$ ipfs id

```

Error: ipfs repo needs migration

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 28, 2018, 8:24am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/6 "2018-09-28T08:24:46Z")

</div>

Is my problem hard? Can anyone help newcomer? I like this tech, but without help I can not use it, and there is no help…

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 28, 2018, 12:27pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/7 "2018-09-28T12:27:03Z")

</div>

Try running `ipfs daemon --migrate=true`.

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 28, 2018, 3:37pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/8 "2018-09-28T15:37:32Z")

</div>

Migration successful. From 5 to 6 then from 6 to 7. I see this

> Swarm listening on /p2p-circuit/ipfs/QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr  
> Swarm announcing /ip4/127.0.0.1/tcp/4001  
> Swarm announcing /ip4/xxx.150.xx.xx/tcp/30346  
> Swarm announcing /ip4/xx.150.xx.xx/tcp/38579  
> Swarm announcing /ip4/192.168.0.4/tcp/4001  
> Swarm announcing /ip6/::1/tcp/4001  
> Swarm announcing /ip6/xxx:20c3:19xxx43/tcp/4001  
> API server listening on /ip4/127.0.0.1/tcp/5001  
> Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080  
> Daemon is ready

When I try in another terminal tab

> ipfs cat /ipfs/QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr/readme

Nothing happens…

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 29, 2018, 2:32am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/9 "2018-09-29T02:32:23Z")

</div>

How many peers are you connected to while the daemon is running?

`ipfs swarm peers | wc -l`

Can you also link to the instructions you’re following? Where did this hash come from that you’re trying to use?

> ipfs cat /ipfs/QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr/readme

I’d suggest trying `ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme` instead. This is from [these instructions](https://docs.ipfs.io/introduction/usage/) and is the hash for the readme from your original post.

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 29, 2018, 6:16am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/10 "2018-09-29T06:16:38Z")

</div>

Peers 888  
Link to instrucitons [https://docs.ipfs.io/introduction/usage/](https://docs.ipfs.io/introduction/usage/)  
I guess I just misunderstood what I should do.  
I tried your address and it worked! Thanks!

Can you please tell me why this page returns 404?

> **[Distributed Web Gateway

 | Cloudflare](https://www.cloudflare.com/distributed-web-gateway/)**
>
> Simplify, speed up, and secure access to the InterPlanetary File System (IPFS).

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 29, 2018, 1:55pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/11 "2018-09-29T13:55:40Z")

</div>

> [@laniakea](#):
>
> Can you please tell me why this page returns 404?
> 
> [https://cloudflare-ipfs.com//QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme](https://cloudflare-ipfs.com//QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme)

It’s missing the ipfs part of the path. The correct URL to access that path through the gateway would be [https://cloudflare-ipfs.com/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme](https://cloudflare-ipfs.com/ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme)

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 29, 2018, 5:22pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/12 "2018-09-29T17:22:17Z")

</div>

Thanks! It worked. And is getting more interesting) I read basics, but can not understand, how can I post my content, so it can be viewed like example above?

I wrote `hash=`echo “Hello, Saburova!” | ipfs add -q`` but address, with my Peer ID do not work:

[https://cloudflare-ipfs.com/ipfs/QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr](https://cloudflare-ipfs.com/ipfs/QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr)

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 29, 2018, 5:42pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/13 "2018-09-29T17:42:41Z")

</div>

Your peer ID isn’t needed for you to manually look up the hash of the content. You look up the content using its hash, not your peer ID.

In your example, `QmXXfLvyxkqeCWzVWKh1yvQpXpyhdToenUXF23Pd7mTNqr1` is not the hash of the content.

If you add the string,

```auto
hash=`echo 'Hello, Saburova!' | ./ipfs add -q`

```

Then, `echo $hash` gives you `QmadWRPHJ9YmbgwQNSsR7FubFUvBpjgXfPFXEPcgtC7ccJ` with the current defaults.

So the correct URL to access your string through cloudflare’s gateway is [https://cloudflare-ipfs.com/ipfs/QmadWRPHJ9YmbgwQNSsR7FubFUvBpjgXfPFXEPcgtC7ccJ](https://cloudflare-ipfs.com/ipfs/QmadWRPHJ9YmbgwQNSsR7FubFUvBpjgXfPFXEPcgtC7ccJ)

---

<div class="post-metadata">

**Author:** ![laniakea](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@laniakea](https://discuss.ipfs.tech/u/laniakea)\
**Post date:** [September 29, 2018, 7:41pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/14 "2018-09-29T19:41:43Z")

</div>

Thanks again! It worked. Where I can read this commands? Also about how to create say simple webpage in html and add it to IPFS?

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [September 29, 2018, 9:34pm UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/15 "2018-09-29T21:34:53Z")

</div>

Commands are documented here: [https://docs.ipfs.io/reference/api/cli/](https://docs.ipfs.io/reference/api/cli/)

Here’s an example of uploading a simple static website to IPFS: [https://medium.com/coinmonks/how-i-hosted-my-website-on-ipfs-431919d7440a](https://medium.com/coinmonks/how-i-hosted-my-website-on-ipfs-431919d7440a)

---

<div class="post-metadata">

**Author:** ![maxk0](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@maxk0](https://discuss.ipfs.tech/u/maxk0)\
**Post date:** [July 24, 2020, 4:25am UTC](https://discuss.ipfs.tech/t/ipfs-init-error-need-help/3916/16 "2020-07-24T04:25:08Z")

</div>

Unable to find the hash for the ipfs cat command , how can i find it
