-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Why migrate stuck here. #305
Comments
Same here... it seems the initial transactions coming from the migrate script get stuck in the pending queue. I'm using a private node, initialized like this:
The main account has an initial balance of 20000000000000000000 and is unlocked before running My truffle settings are:
and my genesis.json is:
|
If I enable the verboseRpc (true) in truffle.js, I see a lot of this:
And the Ethereum console doesn't show any mining activity. I thought Truffle will be in charge of "cooking" up the transactions. |
It's holiday season,haha,be paitient:) |
Did anyone find out how to solve this? |
It appears that your geth RPC port is 8080. Truffle defaults to looking for
an Ethereum client on 8545. You need to edit your truffle configuration to
point to the port you specified.
http://truffleframework.com/docs/advanced/configuration under heading "RPC"
…On Mon, Dec 12, 2016 at 12:18 PM, ETHorHIL ***@***.***> wrote:
Did anyone find out how to solve this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#305 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFp1WJLDcqKdSORgExNC_NhlJAvEHg1ks5rHawtgaJpZM4K8MS4>
.
|
Hmm, looks like I misread. Let me think. |
The Problem in my case was that Parity was running in the background. When I kill the process it works. |
Hello, I am the same problem. Any solution ? |
Hello, I am also facing the same issue. Any solution ? |
This is an issue best worked out through our gitter channel, since everyone's configuration is different. Please join the channel and ask there. We have over 700 active members willing to help. Cheers! https://gitter.im/ConsenSys/truffle |
For me, what I need to do to overcome this stuck is remove the DAG file. Then, every things works fine. |
where can I find DAG file in windows 7. |
I just ran into the exact same problem and it was due to two nodes being on the port (30303). It worked like a charm after stopping one! |
Shutting parity if that is working in the background will help |
I am facing the same issue. I am running geth testnet node against which i am running 'truffle migrate' . Both the migrate and geth node hangs after this. Tried with DAG delete, does not work. Did anyone find solution for this |
I could solve that running miner.start() in another console window. |
@parag I don't understand - if I shut parity then it crashes - it needs some client to work with to deploy the contract doesn't it? |
Hi, Was having the same problem where migration was stuck. I believe the contract is not getting mined, the moment, miner.start() is fired, i could see the mining nodes picked up the contract. Not sure what is wrong here, but this workaround worked. |
miner.start solved it. that's really odd. |
I am having this problem with quorum, and even when running miner.start() it doesn't work instantly. uses all CPU on generating DAG and then nothing happens. |
Had the same problem, thanks to this thread for the hints for me to find a solution. I was migrating a contract to a private network, local geth instance. I did these steps (I already had an address in my local network):
I admit that I didn't research why this worked yet, I am only leaving a note to potentially help someone else. I am working through a tutorial for creating and migrating smart contracts, and for now I wanted to get the tutorial complete. |
Issue
I run the official example code: truffle migrate,and stuck there for a long long time:
#truffle migrate
Running migration: 1_initial_migration.js
Deploying Migrations...
If i delete the deploy steps in the 1_initial_migration.js and 2_deploy_contracts.js, it runs fine.
I run geth in a test private network with command like
geth --identity "CSQNodeName" --rpc --rpcport "8080" --rpccorsdomain "*" --datadir ~/.ethereum_private --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1999 --unlock "0x60249051528212bd2fd0e72933b5931836065b56" console
and has changed the truffle.js port to 8080.
Steps to Reproduce
1.geth --identity "CSQNodeName" --rpc --rpcport "8080" --rpccorsdomain "*" --datadir ~/.ethereum_private --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid 1999 --unlock "0x60249051528212bd2fd0e72933b5931836065b56" console
2.mkdir helloworld && cd helloworld && truffle init
3.truffle compile
4.truffle migrate
Expected Behavior
finish migrate.
Actual Results
stopped and nothing happened for a long time.
Environment
The text was updated successfully, but these errors were encountered: