Closed vongohren closed 6 years ago
For the Ethereum node, what did you use? embark blockchain
or embark simulator
.
Also, what is the version of Geth/Ganache CLI you have installed?
I see the problem now. You are saying this "First of all, make sure you have Go-Ethereum and Embark installed." But when running simulator
on the side, because blockchain
did not find my geth.
Me confirming they are existing on my MAC. But nothing about that there is acctually have to be a blockchain runnning, and if you dont have geth installed globally, then embark run cannot start that for you. Is that what is suppose to happen?
Because no where says it I have to start a blockchain, then it is easy to pressume that run
, launches something for me.
embark run
does start a Geth node for you when it cannot find it already running.
In your logs, I don't see it starting, so I'm guessing you already started either Geth or a simulator in another process.
I'm not sure I understand what you mean in your last comment, does Geth not work for you? Because it is usually better to use Geth than the simulator
Well now I cant remember the exact state I was in when trying this. But the thing is that I dont have geth registred as a global var. It just sits in my folder with my chain data. So embark would never find it. But I might have had a geth running cause I have been trying to sync Rinkeby for days now, but when syncing, I have gotten strange behaviour from contracts and scripts.
So that might be a reason I got strange errors?
Yeah, if Geth was running already, especially in a chain that is not dev (which means that your account might have no funds), it would fail to deploy. Though, the error should have been something like "Unsufficent funds".
Either way, try again by setting geth_bin
in config/blockchainConfig.js to the path where Geth is, or just put Geth in your Path. After that, embark run
will start a blockchain node for you and it should work.
If it doesn't work, try with embark blockchain
to see if Geth gives you errors.
Overview
TL;DR I tried the embark demo, and embark new TokenFactory, but there is something missing in both cases. Embar demo just says failed to deploy contract without any information why. That is right after a initialization and trying to run a run.
The token factory fails hard with the same error referenced here: https://github.com/embark-framework/embark/issues/462 Pluss an extra uncatched rejecetion error, screwing up the whole dashboard view.
Steps to reproduce
Screenshots
&&&&&&&&
Logs
<please upload logs of the error to better showcase the problem. You can use the following options: --nodashboard --logfile log.txt --loglevel trace>
Log Error Version 1
Welcome to Embark 3.1.10 add check: embarkVersion startMonitor add check: Ethereum add check: Whisper pid 84126 listening on /Users/snorre/code/embark-tutorials/embark_demo/.embark/embark.ipc add check: IPFS Checking IPFS version on http://localhost:5001/api/v0/version... Storage module: Checking ipfs availability... Checking IPFS version on http://localhost:5001/api/v0/version... add check: Webserver webserver available at http://localhost:8000 watchFiles [ 'app/**/*.*', 'app/images/**/*.*' ] watchFiles [ [ 'contracts/**' ] ] watchFiles [ 'config/**/contracts.json', 'config/**/contracts.js' ] ready to watch file changes IPFS unavailable IPFS unavailable Storage module: ipfs node not available. Storage module: Launching ipfs process... Starting ipfs process ready to watch contract changes Ethereum node detected.. loading solc compiler.. ready to watch asset changes ready to watch config changes IPFS: Initializing daemon... IPFS: Swarm listening on /ip4/127.0.0.1/tcp/4001 Swarm listening on /ip4/172.16.255.220/tcp/4001 Swarm listening on /ip6/::1/tcp/4001 Swarm listening on /p2p-circuit/ipfs/QmP4LXUeJyeGYrZpZvukuyuBWvwmYfMBGh9rs9uw15mp7h IPFS: Swarm announcing /ip4/127.0.0.1/tcp/4001 Swarm announcing /ip4/172.16.255.220/tcp/4001 Swarm announcing /ip6/::1/tcp/4001 IPFS: API server listening on /ip4/127.0.0.1/tcp/5001 IPFS: Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080 Updating IPFS CORS using command: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://localhost:8000\", \"http://localhost:8545\", \"ws://localhost:8546\"]" IPFS: Daemon is ready ipfs process started Storage module: Checking ipfs availability... Checking IPFS version on http://localhost:5001/api/v0/version... IPFS available Finished starting all storage providers. compiling solidity contracts... Checking IPFS version on http://localhost:5001/api/v0/version... IPFS available IPFS node detected.. { SimpleStorage: { fromIndex: 0, args: [ 100 ], className: 'SimpleStorage', code: '608060405234801561001057600080fd5b50604051602080610114833981016040525160005560e1806100336000396000f30060806040526004361060525763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632a1afcd98114605757806360fe47b114607b5780636d4ce63c146092575b600080fd5b348015606257600080fd5b50606960a4565b60408051918252519081900360200190f35b348015608657600080fd5b50609060043560aa565b005b348015609d57600080fd5b50606960af565b60005481565b600055565b600054905600a165627a7a72305820a0c98e075fda6115d60e911c901acb8f9b09d1e759d9713fa1de224eb2884fa20029', runtimeBytecode: '60806040526004361060525763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632a1afcd98114605757806360fe47b114607b5780636d4ce63c146092575b600080fd5b348015606257600080fd5b50606960a4565b60408051918252519081900360200190f35b348015608657600080fd5b50609060043560aa565b005b348015609d57600080fd5b50606960af565b60005481565b600055565b600054905600a165627a7a72305820a0c98e075fda6115d60e911c901acb8f9b09d1e759d9713fa1de224eb2884fa20029', realRuntimeBytecode: '60806040526004361060525763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632a1afcd98114605757806360fe47b114607b5780636d4ce63c146092575b600080fd5b348015606257600080fd5b50606960a4565b60408051918252519081900360200190f35b348015608657600080fd5b50609060043560aa565b005b348015609d57600080fd5b50606960af565b60005481565b600055565b600054905600a165627a7a72305820a0c98e075fda6115d60e911c901acb8f9b09d1e759d9713fa1de224eb2884fa20029', swarmHash: 'a0c98e075fda6115d60e911c901acb8f9b09d1e759d9713fa1de224eb2884fa2', gasEstimates: { creation: [Object], external: [Object] }, functionHashes: { 'get()': '6d4ce63c', 'set(uint256)': '60fe47b1', 'storedData()': '2a1afcd9' }, abiDefinition: [ [Object], [Object], [Object], [Object] ], filename: 'simple_storage.sol', gas: 'auto', gasPrice: undefined, type: 'file', deploy: true } } finished deploying contracts error deploying contracts finished deploying contracts Deployment DoneLog Error Version 2
Welcome to Embark 3.1.10 add check: embarkVersion startMonitor add check: Ethereum add check: Whisper pid 84519 listening on /Users/snorre/code/embark-tutorials/TokenFactory/.embark/embark.ipc add check: IPFS Checking IPFS version on http://localhost:5001/api/v0/version... Storage module: Checking ipfs availability... Checking IPFS version on http://localhost:5001/api/v0/version... add check: Webserver webserver available at http://localhost:8000 watchFiles [ 'app/css/**/*.*', 'app/js/**/*.*', 'app/images/**/*.*', 'app/**/*.*' ] watchFiles [ [ 'contracts/**' ] ] watchFiles [ 'config/**/contracts.json', 'config/**/contracts.js' ] ready to watch file changes IPFS unavailable IPFS unavailable Storage module: ipfs node not available. Storage module: Launching ipfs process... Starting ipfs process Ethereum node detected.. loading solc compiler.. ready to watch contract changes ready to watch asset changes ready to watch config changes IPFS: Initializing daemon... IPFS: Swarm listening on /ip4/127.0.0.1/tcp/4001 Swarm listening on /ip4/172.16.255.220/tcp/4001 Swarm listening on /ip6/::1/tcp/4001 Swarm listening on /p2p-circuit/ipfs/QmP4LXUeJyeGYrZpZvukuyuBWvwmYfMBGh9rs9uw15mp7h IPFS: Swarm announcing /ip4/127.0.0.1/tcp/4001 Swarm announcing /ip4/172.16.255.220/tcp/4001 Swarm announcing /ip6/::1/tcp/4001 API server listening on /ip4/127.0.0.1/tcp/5001 Updating IPFS CORS using command: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://localhost:8000\", \"http://localhost:8545\", \"ws://localhost:8546\"]" IPFS: Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080 Daemon is ready ipfs process started Storage module: Checking ipfs availability... Checking IPFS version on http://localhost:5001/api/v0/version... IPFS available Finished starting all storage providers. compiling solidity contracts... Checking IPFS version on http://localhost:5001/api/v0/version... IPFS available IPFS node detected.. { Token: { args: { initial_balance: 1000 }, className: 'Token', code: '608060405234801561001057600080fd5b5060405160208061066d8339810160409081529051336000908152602081905291909120819055600255610624806100496000396000f3006080604052600436106100825763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461008757806315945790146100bf57806318160ddd146100e657806323b872dd146100fb57806370a0823114610125578063a9059cbb14610146578063dd62ed3e1461016a575b600080fd5b34801561009357600080fd5b506100ab600160a060020a0360043516602435610191565b604080519115158252519081900360200190f35b3480156100cb57600080fd5b506100d46101f7565b60408051918252519081900360200190f35b3480156100f257600080fd5b506100d46101fd565b34801561010757600080fd5b506100ab600160a060020a0360043581169060243516604435610203565b34801561013157600080fd5b506100d4600160a060020a036004351661043a565b34801561015257600080fd5b506100ab600160a060020a0360043516602435610455565b34801561017657600080fd5b506100d4600160a060020a03600435811690602435166105c6565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b60025490565b600160a060020a0383166000908152602081905260408120548211610272576040805160e560020a62461bcd02815260206004820152601f60248201527f46726f6d20646f6573206e6f74206861766520656e6f7567682076616c756500604482015290519081900360640190fd5b600160a060020a03841660009081526001602090815260408083203384529091529020548211610312576040805160e560020a62461bcd02815260206004820152602860248201527f417070726f76616c2066726f6d20646f6573206e6f74206861766520656e6f7560448201527f67682076616c7565000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461033590836105f1565b15156103b1576040805160e560020a62461bcd02815260206004820152602b60248201527f52656369657665722063616e7420726563696576652062656361757365206f6660448201527f206f766572666c6f777a7a000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03808516600081815260016020908152604080832033845282528083208054889003905583835282825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b600160a060020a031660009081526020819052604090205490565b3360009081526020819052604081205482106104e1576040805160e560020a62461bcd02815260206004820152602160248201527f53656e64657220646f6573206e6f74206861766520656e6f7567682076616c7560448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461050490836105f1565b151561055a576040805160e560020a62461bcd02815260206004820181905260248201527f52656369657665722063616e2072656369657665207468697320616d6f756e74604482015290519081900360640190fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b81011015905600a165627a7a7230582075b2550432a1b48a36058f4e62a439aa77a3fd179e30d92a739f949ce7c1f8760029', runtimeBytecode: '6080604052600436106100825763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461008757806315945790146100bf57806318160ddd146100e657806323b872dd146100fb57806370a0823114610125578063a9059cbb14610146578063dd62ed3e1461016a575b600080fd5b34801561009357600080fd5b506100ab600160a060020a0360043516602435610191565b604080519115158252519081900360200190f35b3480156100cb57600080fd5b506100d46101f7565b60408051918252519081900360200190f35b3480156100f257600080fd5b506100d46101fd565b34801561010757600080fd5b506100ab600160a060020a0360043581169060243516604435610203565b34801561013157600080fd5b506100d4600160a060020a036004351661043a565b34801561015257600080fd5b506100ab600160a060020a0360043516602435610455565b34801561017657600080fd5b506100d4600160a060020a03600435811690602435166105c6565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b60025490565b600160a060020a0383166000908152602081905260408120548211610272576040805160e560020a62461bcd02815260206004820152601f60248201527f46726f6d20646f6573206e6f74206861766520656e6f7567682076616c756500604482015290519081900360640190fd5b600160a060020a03841660009081526001602090815260408083203384529091529020548211610312576040805160e560020a62461bcd02815260206004820152602860248201527f417070726f76616c2066726f6d20646f6573206e6f74206861766520656e6f7560448201527f67682076616c7565000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461033590836105f1565b15156103b1576040805160e560020a62461bcd02815260206004820152602b60248201527f52656369657665722063616e7420726563696576652062656361757365206f6660448201527f206f766572666c6f777a7a000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03808516600081815260016020908152604080832033845282528083208054889003905583835282825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b600160a060020a031660009081526020819052604090205490565b3360009081526020819052604081205482106104e1576040805160e560020a62461bcd02815260206004820152602160248201527f53656e64657220646f6573206e6f74206861766520656e6f7567682076616c7560448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461050490836105f1565b151561055a576040805160e560020a62461bcd02815260206004820181905260248201527f52656369657665722063616e2072656369657665207468697320616d6f756e74604482015290519081900360640190fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b81011015905600a165627a7a7230582075b2550432a1b48a36058f4e62a439aa77a3fd179e30d92a739f949ce7c1f8760029', realRuntimeBytecode: '6080604052600436106100825763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b3811461008757806315945790146100bf57806318160ddd146100e657806323b872dd146100fb57806370a0823114610125578063a9059cbb14610146578063dd62ed3e1461016a575b600080fd5b34801561009357600080fd5b506100ab600160a060020a0360043516602435610191565b604080519115158252519081900360200190f35b3480156100cb57600080fd5b506100d46101f7565b60408051918252519081900360200190f35b3480156100f257600080fd5b506100d46101fd565b34801561010757600080fd5b506100ab600160a060020a0360043581169060243516604435610203565b34801561013157600080fd5b506100d4600160a060020a036004351661043a565b34801561015257600080fd5b506100ab600160a060020a0360043516602435610455565b34801561017657600080fd5b506100d4600160a060020a03600435811690602435166105c6565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025481565b60025490565b600160a060020a0383166000908152602081905260408120548211610272576040805160e560020a62461bcd02815260206004820152601f60248201527f46726f6d20646f6573206e6f74206861766520656e6f7567682076616c756500604482015290519081900360640190fd5b600160a060020a03841660009081526001602090815260408083203384529091529020548211610312576040805160e560020a62461bcd02815260206004820152602860248201527f417070726f76616c2066726f6d20646f6573206e6f74206861766520656e6f7560448201527f67682076616c7565000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461033590836105f1565b15156103b1576040805160e560020a62461bcd02815260206004820152602b60248201527f52656369657665722063616e7420726563696576652062656361757365206f6660448201527f206f766572666c6f777a7a000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03808516600081815260016020908152604080832033845282528083208054889003905583835282825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b600160a060020a031660009081526020819052604090205490565b3360009081526020819052604081205482106104e1576040805160e560020a62461bcd02815260206004820152602160248201527f53656e64657220646f6573206e6f74206861766520656e6f7567682076616c7560448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600160a060020a03831660009081526020819052604090205461050490836105f1565b151561055a576040805160e560020a62461bcd02815260206004820181905260248201527f52656369657665722063616e2072656369657665207468697320616d6f756e74604482015290519081900360640190fd5b3360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b81011015905600a165627a7a7230582075b2550432a1b48a36058f4e62a439aa77a3fd179e30d92a739f949ce7c1f8760029', swarmHash: '75b2550432a1b48a36058f4e62a439aa77a3fd179e30d92a739f949ce7c1f876', gasEstimates: { creation: [Object], external: [Object], internal: [Object] }, functionHashes: { '_supply()': '15945790', 'allowance(address,address)': 'dd62ed3e', 'approve(address,uint256)': '095ea7b3', 'balanceOf(address)': '70a08231', 'totalSupply()': '18160ddd', 'transfer(address,uint256)': 'a9059cbb', 'transferFrom(address,address,uint256)': '23b872dd' }, abiDefinition: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], filename: 'Token.sol', gas: 'auto', gasPrice: undefined, type: 'file', deploy: true } } finished deploying contracts deploying Token with 510533 gas error deploying contracts error deploying =Token= due to error: No "from" address specified in neither the given options, nor the default options. Error: error deploying =Token= due to error: No "from" address specified in neither the given options, nor the default options. at Promise.Context (Environment)
Questions?