Using the private key of the address 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 the migration ends correctly. I’ve switched to docker and I’d to modify packages.json to start containers from:
"logs:app": "docker container logs starter-template_app_1 --follow",
"logs:ganache": "docker container logs starter-template_ganache_1 --follow",
"logs:graph": "docker container logs starter-template_graph-node_1 --follow",
"logs:ipfs": "docker container logs starter-starter_template_ipfs_1 --follow",
"logs:postgres": "docker container logs starter-template_postgres_1 --follow",
to
"logs:app": "docker container logs startertemplate_app_1 --follow",
"logs:ganache": "docker container logs startertemplate_ganache_1 --follow",
"logs:graph": "docker container logs startertemplate_graph-node_1 --follow",
"logs:ipfs": "docker container logs starterstarter_template_ipfs_1 --follow",
"logs:postgres": "docker container logs startertemplate_postgres_1 --follow",
the environment starts:
Oct 30 12:58:37.433 INFO Starting JSON-RPC admin server at: http://localhost:8020, component: JsonRpcServer
Oct 30 12:58:37.433 INFO Started all subgraphs, component: SubgraphRegistrar
Oct 30 12:58:37.434 INFO Starting GraphQL HTTP server at: http://localhost:8000, component: GraphQLServer
Oct 30 12:58:37.434 INFO Starting GraphQL WebSocket server at: ws://localhost:8001, component: SubscriptionServer
Oct 30 12:58:37.445 INFO Downloading latest blocks from Ethereum. This may take a few minutes…, component: BlockIngestor
Oct 30 12:58:37.983 INFO Block 0x04d2…1144 contains no transactions, component: BlockIngestor
Oct 30 13:00:05.450 WARN Possible contention in DB connection pool, wait_ms: 10, component: Store
but ‘npm run deploy-graph’ ends with an error
Error: Deployment failed! Graph node "http://127.0.0.1:8020/" is invalid: URL is not defined
at deploy (/root/DAOstack-Hackers-Kit/starter-template/subgraph/ops/graph-deploy.js:75:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
while I’m able to telnet to http://127.0.0.1:8020/
telnet localhost 8020
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
GET / HTTP/1.1
host:dasadas
HTTP/1.1 405 Method Not Allowed
content-type: text/plain; charset=utf-8
content-length: 61
date: Wed, 30 Oct 2019 13:21:13 GMT
Used HTTP Method is not allowed. POST or OPTIONS is required
Any ideas?
Thanks
Bye
Daniele
UPDATE: I was using node 8. Using node 10 the error is now
Compile subgraph
✖ Failed to compile subgraph: Failed to compile data source mapping: Import file 'src/types/GenericScheme/GenericScheme.ts' not found.
at deploy (/root/DAOstack-Hackers-Kit/starter-template/subgraph/ops/graph-deploy.js:75:11)
at process._tickCallback (internal/process/next_tick.js:68:7)