Skip to content
This repository has been archived by the owner. It is now read-only.

Getting Started hash returns merkledag: not found #85

Closed
abacon opened this issue Dec 25, 2015 · 31 comments
Closed

Getting Started hash returns merkledag: not found #85

abacon opened this issue Dec 25, 2015 · 31 comments

Comments

@abacon
Copy link

abacon commented Dec 25, 2015

Fresh install of ipfs ipfs version 0.3.10 (prebuilt go binary for OSX, running 10.11.1)

The hash indicated in Getting Started isn't available.

> ipfs init
> ipfs cat /ipfs/QmPXME1oRtoT627YKaDPDQ3PwA8tdP9rWuAAweLzqSwAWT/readme
Error: merkledag: not found
@RichardLitt
Copy link
Contributor

RichardLitt commented Dec 29, 2015

I was able to find it fine:

🐕  ipfs cat /ipfs/QmPXME1oRtoT627YKaDPDQ3PwA8tdP9rWuAAweLzqSwAWT/readme
Hello and Welcome to IPFS!

██╗██████╗ ███████╗███████╗
██║██╔══██╗██╔════╝██╔════╝
██║██████╔╝█████╗  ███████╗
██║██╔═══╝ ██╔══╝  ╚════██║
██║██║     ██║     ███████║
╚═╝╚═╝     ╚═╝     ╚══════╝

If you're seeing this, you have successfully installed
IPFS and are now interfacing with the ipfs merkledag!

 -------------------------------------------------------
| Warning:                                              |
|   This is alpha software. use at your own discretion! |
|   Much is missing or lacking polish. There are bugs.  |
|   Not yet secure. Read the security notes for more.   |
 -------------------------------------------------------

Check out some of the other files in this directory:

  ./about
  ./help
  ./quick-start     <-- usage examples
  ./readme          <-- this file
  ./security-notes

Maybe open this issue on ipfs/support or hop into the IRC channel?

@chris-martin
Copy link

chris-martin commented Feb 28, 2016

Same error for me, using ipfs version 0.3.11 via NixOS.

@chris-martin
Copy link

chris-martin commented Feb 28, 2016

It worked after I started ipfs daemon. Is that supposed to be a requirement?

@RichardLitt
Copy link
Contributor

RichardLitt commented Feb 28, 2016

Oh! Yes, it is! And that explains the error above.

@RichardLitt
Copy link
Contributor

RichardLitt commented Feb 28, 2016

Hmm. Actually, I'm not sure. @whyrusleeping @diasdavid Shouldn't this work without being connected?

@daviddias
Copy link
Contributor

daviddias commented Feb 28, 2016

@RichardLitt that is because the init docs have changed (https://github.com/ipfs/go-ipfs/commits/master/assets/init-doc) but the hash on that welcome text hasn't. This means that everyone has indeed the welcome docs in their machine, but it is trying to load a older version that is available on the network (and so needs the daemon on).

@RichardLitt
Copy link
Contributor

RichardLitt commented Feb 28, 2016

Hmm. How can I remove a version of the older file from my local so that I can reproduce?

@daviddias
Copy link
Contributor

daviddias commented Feb 28, 2016

@RichardLitt the best way to reproduce is to backup your repo and init a new one, so you start on the same ground that @chris-martin and @abacon started

RichardLitt added a commit to RichardLitt/website that referenced this issue Feb 28, 2016
@ohimors
Copy link

ohimors commented Jun 11, 2016

I just downloade 0.4.2 and I had to manually start the daemon before Getting Started. Please update the Getting Started tutorial.

@ghost
Copy link

ghost commented Oct 23, 2016

The error message could definitely be more helpful.

@Manish166
Copy link

Manish166 commented Jan 6, 2017

Using version ipfs version 0.4.4.
I have got my peer ID and started daemon...i am able to run all other command except cat ...
when i do cat it just stops there for long time.

timthelion added a commit to timthelion/go-ipfs that referenced this issue Apr 9, 2017
timthelion added a commit to timthelion/go-ipfs that referenced this issue Jul 28, 2017
Fixes ipfs-inactive/website#85

License: MIT
Signed-off-by: Timothy Hobbs <timothyhobbs@seznam.cz>
timthelion added a commit to timthelion/go-ipfs that referenced this issue Jul 28, 2017
Fixes ipfs-inactive/website#85

License: MIT
Signed-off-by: Timothy Hobbs <timothyhobbs@seznam.cz>
@daviddias
Copy link
Contributor

daviddias commented Aug 23, 2017

This should not be an issue anymore. If anyone finds an issue in go-ipfs, please report at https://github.com/ipfs/go-ipfs

Thanks!

@shroomist
Copy link

shroomist commented Aug 30, 2017

still a problem here. installed and getting
#grep PeerID ~/.ipfs/config "PeerID": "QmW8DKrYwdatoKxnYt3jK9SKMfurAfQ9m8XGVhhaczF61z", #ipfs cat /ipfs/QmW8DKrYwdatoKxnYt3jK9SKMfurAfQ9m8XGVhhaczF61z Error: merkledag: not found

@shroomist
Copy link

shroomist commented Aug 30, 2017

ah sorry, i'll repost it there

@renexdev
Copy link

renexdev commented Dec 27, 2017

Hi there, I've got the same error at the very begining when I ran the code given in the section "init the repo" from the documentation (https://gateway.ipfs.io/ipfs/QmeYYwD4y4DgVVdAzhT7wW5vrvmbKPQj8wcV2pAzjbj886/docs/getting-started/). Maybe you wrote that peer identity instead the one given by your console output. Here was mine after initializing ipfs:

peer identity: Qmf6wk63u1YV4tgzExK1QrqzA6AcmNXArUtGmPnEi6LiTB
to get started, enter:

	ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme

@geeogi
Copy link

geeogi commented Mar 7, 2018

same here. Running daemon fixed it.

@proehlen
Copy link

proehlen commented Apr 15, 2018

The getting started guide has the ipfs cat readme file step before the ipfs daemon command so it's a bit confusing.

@kizerkizer
Copy link

kizerkizer commented Jun 7, 2018

ADD ipfs daemon TO THE GETTING STARTED GUIDE!!

@Stebalien
Copy link
Contributor

Stebalien commented Jun 7, 2018

This should actually work without starting ipfs daemon. You only need to run ipfs daemon to fetch something from the network and we ship go-ipfs with these files. Unfortunately, we updated them and failed to update the guide (again).

Fix: #263

@rustyx
Copy link

rustyx commented Jul 2, 2018

@Stebalien On Windows it doesn't work without manually running ipfw daemon.

@Stebalien
Copy link
Contributor

Stebalien commented Jul 2, 2018

@rustyx try initializing a new repo and never running the daemon. Does that work (still a bug but trying to narrow it down)?

Also, what error do you get and what version are you using?

@rustyx
Copy link

rustyx commented Jul 2, 2018

@Stebalien I'm using version 0.4.16-rc1. It seems to be related to the FAR file manager that I'm using, as I now tried it in a regular cmd window and it's working fine.

@Stebalien
Copy link
Contributor

Stebalien commented Jul 2, 2018

Your file manager shouldn't make a difference. Could you elaborate?

@rustyx
Copy link

rustyx commented Jul 2, 2018

I know, weird right!?
ipfs far issue

@whyrusleeping
Copy link
Contributor

whyrusleeping commented Jul 2, 2018

@rustyx in your screenshot, youre running ipfs cat on a different hash than the one that init prints out

@Stebalien
Copy link
Contributor

Stebalien commented Jul 2, 2018

Hm. Did my update to the website not get automatically deployed? He's using the old hash on the website but that should have been fixed in #263. Are we not using CI to deploy?

@rustyx
Copy link

rustyx commented Jul 2, 2018

Oh I see. I got the path from the getting-started page, I guess that page is outdated?? The path starts working after starting the daemon, which added to my confusion.

@whyrusleeping
Copy link
Contributor

whyrusleeping commented Jul 2, 2018

yep. things work when you start your daemon because it can then fetch it from people who ran init with earlier versions of ipfs. Definitely one of the more confusing parts of our 'getting started' docs... I'm in favor of replacing the hash with <hash from your init output> so people don't just copy it.

We could also add more automation to keep things up to date, but thats harder and more prone to breaking.

@michaelmcandrew
Copy link

michaelmcandrew commented Nov 8, 2018

There is a note on https://docs.ipfs.io/introduction/usage/ that says:

The HASH in the ipfs cat /ipfs/HASH/readme line above may differ from the HASH in your output. If it does, use the one you got in the following instructions. Be sure not to confuse these hashes with your peer identity hash; ipfs cat /ipfs/PEER_ID/readme won't work.

I would argue that the above is key info and should not be in a 'pull out note'. (which to my mind suggests that it is content that can be skipped if you are in a hurry).

You could replace:

Now, try running:

ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme

with:

Now try running the command that was suggested to you in the output of ipfs init. It looks like ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme but the hash may be different in your case.

For a better first experience with IPFS

@spudwa
Copy link

spudwa commented Sep 8, 2019

ait@ipfsTest:$ ipfs daemon&
[1] 22369
ait@ipfsTest:
$ Initializing daemon...
go-ipfs version: 0.4.22-
Repo version: 7
System version: amd64/linux
Golang version: go1.12.7
Swarm listening on /ip4/10.0.0.5/tcp/4001
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
ait@ipfsTest:~$ ipfs cat /ipfs/QmRdzqKJPVzjaUJsfFDyUdvZdAn3eidAAyQtehNczv2hmc/about

Just hangs

@Stebalien
Copy link
Contributor

Stebalien commented Sep 9, 2019

The content changes every so often. The new hash should be /ipfs/QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv.

Take a look at the message produced by ipfs init.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.