The interface is stuck at '0% Blocks Indexed - We’re indexing this chain right now. Some of the counts may be inaccurate.".
The deployment is within a docker container using the puppeth/blockscout image. The geth node is running in another docker in the same subnet. The Postgres database is runing within the bockscout container. All these elements (db and geth node) are correctly accessible via a bash command line running within the blockscout container. The different postgres tables are apparently ok, but the blocks table for example remains empty.
Is there an api call (e.g. /api?module=admin&action=status) that could help diagnose the issues on this deployment?
Hi. Apparently, Blockscout doesn’t see the node. There is no API endpoint to diagnose deployment. Do you see any errors in the logs in Blockscout container? Which values are set for ETHEREUM_JSONRPC_ env variables family?
Logs are located in ./logs/…
At the end of the message a tail of /opt/app/apps//block_scout_web/logs/prod/error.log
ETHEREUM_JSONRPC_TRACE_URL should be the same as ETHEREUM_JSONRPC_HTTP_URL
tried to set ETHEREUM_JSONRPC_TRACE_URL in the startup bash script, but it did not change the result
DATABASE_URL=…
this is set by container’s image and is:
DATABASE_URL=postgresql://postgres:@localhost:5432/explorer?ssl=false
Are RPC requests are passed with http://192.168.xxx.xxx:8545 endpoint?
executing within the container from bash command line:
$ curl -H “Content-Type: application/json” --data “{“jsonrpc”:“2.0”,“method”:“net_version”,“params”:[],“id”:67}” http://192.168.xxx.xxx:8545
is working as expected.
As a more generic question, is there a documented procedure to make a container operational after running:
$ docker run -it puppeth/blockscout /bin/bash
Thx
2020-04-22T08:49:34.455 [error] Task #PID<0.1364.1> started from Explorer.ExchangeRates terminating
** (FunctionClauseError) no function clause matching in Access.get/3
(elixir) lib/access.ex:320: Access.get(“error code: 1015”, “error”, nil)
(explorer) lib/explorer/exchange_rates/source.ex:32: Explorer.ExchangeRates.Source.fetch_exchange_rates_from_paginable_source/2
(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: #Function<0.14719208/0 in Explorer.ExchangeRates.fetch_rates/0>
Args: []
2020-04-22T08:54:34.486 [error] Task #PID<0.1370.1> started from Explorer.ExchangeRates terminating
** (FunctionClauseError) no function clause matching in Access.get/3
(elixir) lib/access.ex:320: Access.get(“error code: 1015”, “error”, nil)
(explorer) lib/explorer/exchange_rates/source.ex:32: Explorer.ExchangeRates.Source.fetch_exchange_rates_from_paginable_source/2
(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: #Function<0.14719208/0 in Explorer.ExchangeRates.fetch_rates/0>
Args: []
2020-04-22T09:06:41.532 application=phoenix [error] Could not find static manifest at “/opt/app/_build/prod/lib/block_scout_web/priv/static/cache_manifest.json”. Run “mix phx.digest” after building your static files or remove the configuration from “config/prod.exs”.