web3-gear
web3-gear copied to clipboard
Truffle Migrate
I receive an error during truffle migrate
using Thor + Web3-Gear.
Truffle logs
Using network 'development'.
Running migration: 1_initial_migration.js
Replacing Migrations...
... 0x1cdc66630b3ed6fd918e4b4f242463d1ccad6446805881300b33cba15c214654
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: Contract transaction couldn't be found after 50 blocks
at /.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/contract.js:112:1
at /.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/filter.js:128:1
at Array.forEach (<anonymous>)
at /.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/filter.js:127:1
at Array.forEach (<anonymous>)
at Object.onMessage [as callback] (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/filter.js:125:1)
at /.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:259:1
at Array.forEach (<anonymous>)
at /.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:258:10
at /.npm-packages/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1
at /.npm-packages/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at XMLHttpRequest.request.onreadystatechange (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at IncomingMessage.<anonymous> (/marcomarasco/.npm-packages/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
at IncomingMessage.emit (events.js:193:15)
at endReadableNT (_stream_readable.js:1129:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Web3-Gear logs
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
result = await func(*args, **kw)
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
return await thor.get_filter_changes(filter_id)
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 165, in get_filter_changes
return await func()
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in __call__
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in <listcomp>
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 83, in get_block_id
blk = await self.blocks(block_identifier).make_request(get)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 50, in make_request
raise error
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 38, in make_request
response = await method(self._endpoint, params=params, data=data, **kwargs)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 11, in get
return await session.get(endpoint_uri, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 946, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/selector_events.py", line 464, in sock_connect
return await fut
concurrent.futures._base.CancelledError
Thor-Restful server Err:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
result = await func(*args, **kw)
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
return await thor.get_filter_changes(filter_id)
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 165, in get_filter_changes
return await func()
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in __call__
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in <listcomp>
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 83, in get_block_id
blk = await self.blocks(block_identifier).make_request(get)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 50, in make_request
raise error
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 38, in make_request
response = await method(self._endpoint, params=params, data=data, **kwargs)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 11, in get
return await session.get(endpoint_uri, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 986, in create_connection
ssl_handshake_timeout=ssl_handshake_timeout)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 1014, in _create_connection_transport
await waiter
concurrent.futures._base.CancelledError
Thor-Restful server Err:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
result = await func(*args, **kw)
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
return await thor.get_filter_changes(filter_id)
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 165, in get_filter_changes
return await func()
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in __call__
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in <listcomp>
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 83, in get_block_id
blk = await self.blocks(block_identifier).make_request(get)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 50, in make_request
raise error
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 38, in make_request
response = await method(self._endpoint, params=params, data=data, **kwargs)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 11, in get
return await session.get(endpoint_uri, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 946, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/selector_events.py", line 464, in sock_connect
return await fut
concurrent.futures._base.CancelledError
Thor-Restful server Err:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 22, in wrapper
result = await func(*args, **kw)
File "/usr/local/lib/python3.7/site-packages/gear/rpc.py", line 271, in eth_getFilterChanges
return await thor.get_filter_changes(filter_id)
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 165, in get_filter_changes
return await func()
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in __call__
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 191, in <listcomp>
for id in map(self.client.get_block_id, range(self.current, best_num + 1))
File "/usr/local/lib/python3.7/site-packages/gear/thor/client.py", line 83, in get_block_id
blk = await self.blocks(block_identifier).make_request(get)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 50, in make_request
raise error
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 38, in make_request
response = await method(self._endpoint, params=params, data=data, **kwargs)
File "/usr/local/lib/python3.7/site-packages/gear/thor/request.py", line 11, in get
return await session.get(endpoint_uri, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 974, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 924, in _wrap_create_connection
await self._loop.create_connection(*args, **kwargs))
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 946, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/selector_events.py", line 464, in sock_connect
return await fut
concurrent.futures._base.CancelledError
Thor node setup was made using this command:
$ bin/thor --verbosity 9 --network test
Web3-Gear was launched with this command instead
$ web3-gear --keystore path/to/keystore.txt --passcode superSecret! --log 1 --debug 1
This is the content of truffle.js configuration file
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
gas: 70000000000,
network_id: "*" // Match any network id
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};
Anyone can help? Thanks in advance.