-
Notifications
You must be signed in to change notification settings - Fork 17
Command doesn't return and stuck at Saving artifacts...
when using hdwallet provider.
#14
Comments
Same problem here. Keeps polling for eth_getBlockByNumber but never returns. In my case I have my own provider based on web3-provider-engine. Wondering what triggers the exit(0) after the last migration step. |
@Janaka-Steph Were you able to resolve that issue? I have the same problem. |
@Techworker , changing the provider definition with a function was resolving some issues : |
@Janaka-Steph @Techworker is this still an issue for either of you? Closing for issue cleanup, let me know and I'll happily re-open. |
This is still an issue. i use truffle 4.0.6 and ganache UI as network.
|
Is there any news on this? I'm getting stuck at "Saving artifacts..." |
Same here |
the migration is perfect but I got stuck in saving artifacts, any news in this? |
same here |
1 similar comment
same here |
same |
getting the same error here. Only after updating truffle for me. |
Same here, pretty annoying. Tried in --verbose-rpc mode and the last message is:
Stuck after that. Don't know yet what does that mean, investigating. @gnidan please reopen as its still there. |
Same issue here. In my case I used hdwallet-provider + remote node on infura. Here's my setting:
and then |
Same code didn't have such problem with normal development config on ganache:
So it may have something to do with communication to other standard node like geth or parity, or maybe time spent on deployment? |
I believe this is the same issue (hopefully) fixed by trufflesuite/truffle-core#135 which is now merged into dev. And at it's core may be an HDWallet issue? Not sure though. |
@emkman Agree with @emkman - this is likely a duplicate of truffle-core 135. The current state of the develop branch is published as a nightly truffle build at
We had to upgrade the hd-wallet's dependencies because of formal security warning. More on that here. We will probably be doing a new patch release early next week. Another thing to note is that this is a quirk about how the command exits. It should be completing all the work it needs to do - the underlying problem is that we're not cleaning up interval polling from the Wallet and the process hangs at the final moment. |
Saving artifacts...
Saving artifacts...
when using hdwallet provider.
stuck here as well |
This should be fixed in |
@cgewecke just WTF? Had this problem. Ok, updated the truffle to the latest version (currently 4.1.11) Now I have troubles with |
I'm seeing this issue as well on 4.1.11. It happens randomly. Sometimes it works fine others it never completes. No idea why |
@mspublic Is truffle 962 relevant for your case? In that issue the poster has a If 962 isn't relevant, would love any other info you can provide - a reproduction case or a link to your project if it's public would be great. |
While I am setting multiple networks - I am not using HD wallets. When using an older version of node I would see the crash listed below. Now running on node v10.1.0 - I do not see this crash, truffle will just end at "Saving artifacts..." without returning the contract address. A couple things to note:
Node Crash: |
@mspublic Thanks that's helpful. Are you able to share your |
@chrischip Ah ok - good to know - which version of ganache were you using before? |
Honesty I don't have a definite answer. I started my project a few months ago. After checking the Ganache release history I guess it is most probably version 1.0.2. |
@cgewecke Wrapping it into the return function seems to work. Seems like I looked at some bad example code from somewhere else when I implemented this. Thanks! 👍 |
While that fixed the compile, it also broke the
|
@haraldini - Could you show your config here? If there's anything sensitive in there like API keys or addresses please hide them :) |
This happens to me when using |
@morrigan Are you able to update to the latest Truffle? |
Sorry for long delay. I'm still having intermittent issues as well. It works sometimes... others it doesn't. One interesting note - it works mostly stable on node v10.3.0 but barely works on node v10.4.0 |
@mspublic No worries - actually we were looking at this yesterday because @gnidan had it happen in another context - using the debugger within We think it might be tied to the way we close handlers as commands exit. Are you still using darq-truffle? |
Im back to using 4.1.11. Darq truffle started having issues on newer node :. Seems right now the "most" stable is 4.1.11 with node 10.3.0 using --verbose-rpc, and having a 3rd "3_helloworld.js" migration deployed after the main 2_contract.js. This setup is so odd but seems to work 80% of the time. And this is without hdwallet. Just standard geth unlocked account. |
@cgewecke the problem here has to do with the function wrapping you referenced - I ran into this issue and that fixed it. To anyone who sees this issue, let it be known that you must wrap your provider in a function when using HDWalletProvider.
Breaks
Works |
Thanks @eolszewski - good to know that's working. |
I can confirm that using @eolszewski wrapping + upgrading truffle to 4.1.13 from (4.1.9) solved this issue for me... |
@eolszewski Thanks dude! I stacked for a while but your suggestion solved my issue. I didn't upgrade truffle (still using 4.1.8) but only wrapped HDWallet provider an it works fine now. |
The bug was reported in [here](gnosis#4) and the fix suggested [here](trufflesuite/truffle-migrate#14).
@cgewecke I still have the troubles with truffle version:
truffle.js: module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: "2018",
gas: 4700000,
gasPrice: 99999999,
from: "0x14CD5c014C56cd8464f871b0955Aa3B23EB78B5a"
}
}
}; |
I solve the
|
I'm running into the same issue while using HDWalletProvider connected to a local Ganache instance. Adding the
|
@stevenleeg What truffle version are you using? Have you checked your config to make sure that the Wallet provider is correctly wrapped in a function as shown in the docs here? |
I've managed to figure out the hanging issue, but I'm unfortunately now running into the issue first reported by @mspublic:
Any ideas as to what the issue could be here? I've jotted down my full config here, as I think seeing the deploy script, truffle.js, and responses in one place would be helpful. |
@stevenleeg. The And there's another issue with the way your migrations script is written that very similar to truffle 1195. Could you try wrapping the logic in the |
i am also facing similar issue with truffle migrate, it is not deploying contract, but saving artifacts. below is the result of migrate command on windows 10 with verbose: $ truffle migrate -reset --verbose-rpc
Network up to date. |
Using the latest version of |
Hello,
I have a minor issue with
truffle migrate
. It deploys my contracts fine to any network but the console will be stuck at the end onSaving artifacts...
and doesn't return.Thank you
The text was updated successfully, but these errors were encountered: