xDai Stable Chain xDai Stable Chain BlockScout BlockScout TokenBridge TokenBridge

Cant start BlockScout

Hi all,

I followed manual deployment page and installed BlockScout on Ubuntu 18.04 LTS.
Unfortunately I can’t start it. Need suggestion how to resolve this.
When I start app with mix phx.server, it fails with following error:

2019-07-10T08:09:51.352 fetcher=block_catchup [error] Task #PID<0.2803.0> started from Indexer.Block.Catchup.BoundIntervalSupervisor terminating
** (MatchError) no match of right hand side value: {:error, :econnrefused}
(indexer) lib/indexer/block/catchup/fetcher.ex:75: Indexer.Block.Catchup.Fetcher.task/1
(elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &Indexer.Block.Catchup.Fetcher.task/1
Args: [%Indexer.Block.Catchup.Fetcher{block_fetcher: %Indexer.Block.Fetcher{broadcast: :catchup, callback_module: Indexer.Block.Catchup.Fetcher, json_rpc_named_arguments: [transport: EthereumJSONRPC.HTTP, transport_options: [http: EthereumJSONRPC.HTTP.HTTPoison, url: “http://localhost:7545”, http_options: [recv_timeout: 60000, timeout: 60000, hackney: [pool: :ethereum_jsonrpc]]], variant: EthereumJSONRPC.Ganache], receipts_batch_size: 250, receipts_concurrency: 10}, blocks_batch_size: 10, blocks_concurrency: 10, memory_monitor: Indexer.Memory.Monitor}]
2019-07-10T08:09:51.352 application=indexer fetcher=block_catchup [error] Catchup index stream exited with reason ({{:badmatch, {:error, :econnrefused}}, [{Indexer.Block.Catchup.Fetcher, :task, 1, [file: ‘lib/indexer/block/catchup/fetcher.ex’, line: 75]}, {Task.Supervised, :invoke_mfa, 2, [file: ‘lib/task/supervised.ex’, line: 90]}, {Task.Supervised, :reply, 5, [file: ‘lib/task/supervised.ex’, line: 35]}, {:proc_lib, :init_p_do_apply, 3, [file: ‘proc_lib.erl’, line: 249]}]}). Restarting

Hi, what is started on http://localhost:7545? It should be full archive Etherum node. Is it?

Thanks for your question.
I dont have anything running on that port. My env is:
Elixir 1.8.1
Erlang 21.0.5 OTP
Ubuntu 18.0.4 LTS

I’m wondering is manual setup doc is complete? Seems some steps are missing.
Initially this step was failing:

pg_ctl -D /usr/local/var/postgres start

But I checked service status. Its up and running. mix created and migrated db successfuly. Can see db and even tables in postgres.

I have no idea what to do. Completely new to elixir and erlang.
Any help is appreciated.

Could it be that ETHEREUM_JSONRPC_HTTP_URL must be setup to run blockscout? But that is mentioned only in blockscout/docker/README.md

I’m wondering is manual setup doc is complete? Seems some steps are missing.

There are no missing steps in instruction. Please read it again thoroughly https://poanetwork.github.io/blockscout/#/manual-deployment?id=manual-deployment

  1. Set your environment variables as needed. For example:

The full list of env vars https://poanetwork.github.io/blockscout/#/env-variables

thanks @viktorbaranov, i had to run geth and set env variables accordingly. would be good to include in the manual some links, e.g. further steps(geth, parity, etc.) . would be very helpful to newbies like me :slight_smile: