Truffle "Migrations" ran out of gas error

0 votes

When I run truffle migrate command, I am getting this error:

   Deploying 'Migrations'
Error:  *** Deployment Failed ***
"Migrations" ran out of gas (using a value you set in your network config or deployment parameters.)
   * Block limit:  2582365
   * Gas sent:     20000
    at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deployment.js:364:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
Jan 17 in Blockchain by slayer
• 29,040 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

This error is caused because the amount of gas you have used is not enough to deploy/migrate the contract. Try increasing the gas amount in the truffle.js and then try to migrate. It will work

answered Jan 17 by Omkar
• 65,850 points

Related Questions In Blockchain

0 votes
1 answer

Truffle Error: Migrations contract constructor expected

You are not using constructor() public { ...READ MORE

answered Aug 10, 2018 in Blockchain by digger
• 27,620 points
+3 votes
1 answer

When I ran truffle init, I got this error:

Hey there @Davidala! The error says that it ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 65,850 points
0 votes
1 answer

What if Gas required in my program exceeds the limit of 3000000?

Going through your code, I noticed that  you ...READ MORE

answered May 29, 2018 in Blockchain by Perry
• 16,450 points
0 votes
1 answer

Web3j Transfer.sendFunds() returns Error “insufficient funds for gas * price + value”

DISCLAIMER. This may not necessarily be an answer to your ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,710 points
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
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 65,850 points
0 votes
2 answers
0 votes
1 answer

How can I deploy a HelloWorld contract on my testrpc network?

The problem lies in the command: truffle migrate Your truffle migrate command ...READ MORE

answered Apr 27, 2018 in Blockchain by Perry
• 16,450 points

edited Aug 10, 2018 by Omkar 353 views
+1 vote
4 answers

Uncaught Error: Returned values aren't valid, did it run Out of Gas?

Could be due to previously set values. ...READ MORE

answered Jan 30 in Blockchain by Omkar
• 65,850 points
0 votes
1 answer

Ethereum truffle MetaCoin : 'intrinsic gas too low' error

Change the genesis block gasLimit to "gasLimit": "0x2FEFD800", config ...READ MORE

answered Oct 22, 2018 in Blockchain by Omkar
• 65,850 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.