简体   繁体   English

松露迁移服务器错误(在松露初始化演示中)

[英]Truffle migrate Server Error (on truffle init demo)

I'm a DAPP beginner, and am trying to get up and running with the Truffle framework. 我是DAPP初学者,正在尝试使用Truffle框架并开始运行。 I've been walking through the Truffle docs, but it doesn't work out of the box for me. 我一直在浏览Truffle文档,但对我来说开箱即用。

  • Create directory, cd into it, and run 'truffle init' 创建目录,cd进入其中,然后运行“ truffle init”
  • Run 'truffle compile' 运行“松露编译”
  • Run testrpc in a second terminal window, same project directory 在同一项目目录的第二个终端窗口中运行testrpc
  • Run 'truffle migrate' 运行“松露迁移”

This is the error I get from truffle: 这是我从松露中得到的错误:

Running migration: 1_initial_migration.js


Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: Server error
    at Object.module.exports.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/errors.js:35:16)
    at /usr/local/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/requestmanager.js:86:36

I get this with Node v5 & v6. 我通过Node v5&v6得到了这个。 Truffle v2.1.1. 松露v2.1.1。 Web3 and ether-pudding are installed as truffle dependencies. Web3和以太布丁作为松露依赖项安装。 TestRPC/0.8.7/darwin/python2.7.12. TestRPC / 0.8.7 / darwin / python2.7.12。

Thanks for the help- 谢谢您的帮助-

Are you sure you did run testrpc in a second window and let it run? 您确定您确实在第二个窗口中运行了testrpc并使其运行吗? This is important as testrpc in that case is yoir blockchain. 这一点很重要,因为在这种情况下,testrpc是您的区块链。 If it does not run you will get similar errors as what you describe. 如果它没有运行,您将得到与您所描述的类似的错误。 To keep it simple, I also suggest as a start that you do not run another client while running testrpc (geth, parity, mist, ... ) 为简单起见,我还建议您一开始就不要在运行testrpc时运行另一个客户端(geth,parity,mist,...)

So in short, do a reboot, start testrpc, make sure it does not display errors, then run the truffle migrate command while testrpc still runs in the background. 因此,简而言之,请重新引导,启动testrpc,确保它不显示错误,然后在testrpc仍在后台运行时运行truffle migration命令。

Truffle migrate does run correctly. 松露迁移确实可以正常运行。 I've reposted my issue with testrpc here: Testrpc error: 'no loggers could be found for logger 'jsonrpc.manager' 我在这里重新发布了testrpc的问题: Testrpc错误:“找不到记录器'jsonrpc.manager'的记录器”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM