Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zeppelin installation error #209

Closed
wallyxie opened this issue May 5, 2017 · 17 comments
Closed

Zeppelin installation error #209

wallyxie opened this issue May 5, 2017 · 17 comments

Comments

@wallyxie
Copy link

wallyxie commented May 5, 2017

Hi all,
I am getting the following error:

>truffle install zeppelin
Error: Could not find object at hash 'QmYt6ZfD1VNmKp85TeteEcsgaxHzP2gTSKupHxHMVgcHYb' in 5000ms
    at Timeout._onTimeout (/usr/local/lib/node_modules/truffle/node_modules/ethpm/lib/hosts/ipfshost.js:47:14)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)

Has anyone had experience with this?

@frangio
Copy link
Contributor

frangio commented May 5, 2017

It's an issue with IPFS, the storage used for the Ethereum Package Registry.

I recommend installing via npm for now: npm install zeppelin-solidity.

@wallyxie
Copy link
Author

wallyxie commented May 5, 2017 via email

@maraoz
Copy link
Contributor

maraoz commented May 5, 2017

Just reported this on truffle, FYI: trufflesuite/truffle#378

@maraoz
Copy link
Contributor

maraoz commented May 6, 2017

Another occurrence here: #96 (comment)

@madmartian5
Copy link

Having same issue on Mac OSX

@maraoz
Copy link
Contributor

maraoz commented May 9, 2017

@notsodirewolf @amexperts @ProphetDaniel @frangio just published a new release of the framework. Can you attempt to install it again and report if you have any problems?
Just run truffle install zeppelin in your project. Thanks!

@madmartian5
Copy link

@maraoz - same problem for me I am afraid.

@dukei
Copy link

dukei commented May 10, 2017

It does not help, still the same error.

Error: Could not find object at hash 'QmPhHVUuwMkkGMg7TWQw7eFANvTrWugpeXqQ7SgkawPN2b' in 5000ms

Still https://ipfs.io/ipfs/QmPhHVUuwMkkGMg7TWQw7eFANvTrWugpeXqQ7SgkawPN2b is available but could not be retrieved by truffle

@wallyxie
Copy link
Author

wallyxie commented May 10, 2017 via email

@maraoz
Copy link
Contributor

maraoz commented May 10, 2017

Damn. We'll have to revert to npm for the time being then :(

@maraoz
Copy link
Contributor

maraoz commented May 12, 2017

@notsodirewolf @amexperts @ProphetDaniel @frangio Thanks a bunch for your patience. We've reverted to npm for now. Can you check the new installation instructions below work for you?

https://github.com/OpenZeppelin/zeppelin-solidity#getting-started

@tcoulter I'm sad to do this but I think you understand. We loved being early adopters of ethpm and we'll be eager to jump back to using it once it's reliable. :)

@tcoulter
Copy link

tcoulter commented May 12, 2017 via email

@maraoz
Copy link
Contributor

maraoz commented May 15, 2017

Any luck guys?

@tcoulter
Copy link

Yep. I've isolated the issue, but to fix it will require some coding (which I'm working on now).

Background: I was wrong. The issue we're having with Zeppelin wasn't the issue where data was lost. The results of the issue looked the same at first glance, but instead it was a combination of smaller issues.

  • The first issue is that ethpm-js has a download timeout of 5 seconds per file, and if the file takes longer than five seconds to download, it bails, resulting in the error you guys are seeing.
  • The second issue is that, for some reason (I'm still trying to figure it out) the ipfs-api-js module ethpm-js uses to download IPFS files is suuuuuper slow, taking more than five seconds to resolve a file. That same file, when downloaded over http, is nearly instant.

Now some technical details: Because IPFS URIs can denote files OR directories of files (:grumble grumble:), in order to be up to spec I need to now walk the IPFS directory and download all the individual files over http. ipfs-api-js was doing this for me, but I'm ditching it in favor of downloading files the speedy way.

So TL;DR: Problem isolated, but still working on code to get around it. Oh and no Zeppelin data was lost.

@madmartian5
Copy link

That seems to work. But just a note it is installing into contracts folder now. :)

@tcoulter
Copy link

So you guys know: The issue has been fixed on Truffle v3.2.3. You can get the latest version by uninstalling and then reinstalling Truffle. Cheers! Thanks for the reports, and appreciate your patience.

@wallyxie
Copy link
Author

wallyxie commented May 16, 2017 via email

@frangio frangio closed this as completed Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants