Truffle migrate Server Error

0 votes

I have created a truffle project. I have compiled the projects and it is compiled without any problem. When I try to migrate it using 

truffle migrate

I am getting the following error:

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

Jan 18, 2019 in Blockchain by slayer
• 29,370 points
524 views

1 answer to this question.

0 votes

Seems like truffle didn't find a server. Is testrpc running? If not, open a new terminal and run the command

testrpc

If testrpc is running and you still have the problem, make sure you have configured the truffle.js file right.

truffle.js file should look something like this:

module.exports = {
      networks: {
            development: {
                  host: 'localhost',
                  port: 8545,
                  network_id: '*' //* will match to any network id
                  }
         }
};
answered Jan 18, 2019 by Omkar
• 69,220 points

Related Questions In Blockchain

0 votes
2 answers

Truffle migrate Error after run testrpc

Simple Solution: // module.exports = { // ...READ MORE

answered Sep 24, 2018 in Blockchain by Wasim
843 views
0 votes
1 answer
0 votes
1 answer

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 69,220 points
1,211 views
0 votes
1 answer

Ethereum "truffle server" gives error: TypeError: fsevents is not a constructor

Looks like you have files missing.  Try creating project with: truffle ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 69,220 points
956 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,943 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,469 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,460 views
0 votes
2 answers

Truffle migrate gives “ Error: No network specified. ”

You have to mention on which network ...READ MORE

answered Aug 13, 2018 in Blockchain by Omkar
• 69,220 points
1,743 views
0 votes
1 answer

truffle migrate Error

testrpc Check your truffle.js config port and ip ...READ MORE

answered Oct 8, 2018 in Blockchain by Omkar
• 69,220 points
1,307 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP