Manual logs - ascendia-network/community-wiki GitHub Wiki

Manual log

There are several components where logs are tracked:

  • atlas_worker - downloads and stores bundles (Atlas only)
  • atlas_server - provides public API, shows /nodeinfo (Atlas only)
  • mongod - Mongo database stores bundles and other data for Atlas (Atlas only)
  • parity - blockchain node, atlas_worker use it to interact with AMB-NET
  • ethstats - client to transfer status information to the network statistics page (stats.ambrosus.com)

The following commands can be used to get the logs per component:

docker logs atlas_worker --tail 10

docker logs atlas_server --tail 10

docker logs parity --tail 10

docker logs mongod --tail 10

With the –tail argument you specify how many log entries should be displayed. To list errors only from the log:

docker-compose logs --tail=25 | grep error

A normal working Atlas node should display:

cd ambrosus-nop/output/

docker logs atlas_worker --tail 100

It should show you every second lines like these. {"message":"Transfers preselected for resolution: 0 (out of which 0 have failed recently)","level":"info","timestamp":"2019-10-25T18:47:34.256Z"}

{"message":"Challenges preselected for resolution: 1 (out of which 0 have failed recently)","level":"info","timestamp":"2019-10-25T18:47:39.223Z"}

{"message":"Not the node's turn to resolve","level":"info","timestamp":"2019-10-25T18:47:39.230Z"}

{"message":"Transfers preselected for resolution: 0 (out of which 0 have failed recently)","level":"info","timestamp":"2019-10-25T18:47:39.242Z"}

{"message":"Challenges preselected for resolution: 1 (out of which 0 have failed recently)","level":"info","timestamp":"2019-10-25T18:47:44.223Z"}

A normal working Apollo node should display every few seconds the new block should appear, which matches the latest block from the explorer

cd ambrosus-nop/output/

docker logs parity --tail 100

Working apollo