how to check witness node status?[solved]
steem-witness·@fuli·
0.000 HBDhow to check witness node status?[solved]
**Solved * Thanks @drakos and @timcliff for your kind support. Here is my new config.ini for my 16G RAM/200G SSD witness node.
```
root@crypto:~/steem-docker# cat data/witness_node_data_dir/config.ini
# Endpoint for P2P node to listen on
#p2p-endpoint = 0.0.0.0:2001
# Maxmimum number of incoming connections on P2P endpoint
# p2p-max-connections =
# Shared file size
shared-file-size = 15G
shared-file-dir = /shm/
# Target blocks to flush
flush = 100000
# P2P nodes to connect to on startup (may specify multiple times)
seed-node = anyx.co:2001 # @anyx (CA)
seed-node = gtg.steem.house:2001 # @gtg (PL)
seed-node = seed.jesta.us:2001 # @jesta (US)
seed-node = 212.117.213.186:2016 # @liondani (SWISS)
seed-node = seed.riversteem.com:2001 # @riverhead (NL)
seed-node = 52.74.152.79:2001 # @smooth (SG)
seed-node = seed.steemd.com:34191 # @roadscape (US)
seed-node = seed.steemnodes.com:2001 # @wackou (NL)
# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
# checkpoint =
# Endpoint for websocket RPC to listen on
rpc-endpoint = 0.0.0.0:8090
# Endpoint for TLS websocket RPC to listen on
# rpc-tls-endpoint =
# The TLS certificate file for this server
# server-pem =
# Password for this certificate
# server-pem-password =
# Block signing key to use for init witnesses, overrides genesis file
# dbg-init-key =
# API user specification, may be specified multiple times
# api-user =
# Set an API to be publicly available, may be specified multiple times
public-api = database_api login_api network_node_api network_broadcast_api
# Plugin(s) to enable, may be specified multiple times
enable-plugin = witness
# Defines a range of accounts to track as a json pair ["from","to"] [from,to)
# track-account-range =
# RPC endpoint of a trusted validating node (required)
# trusted-node =
# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
bucket-size = [15,60,300,3600,86400]
# How far back in time to track history for each bucket size, measured in the number of buckets (default: 5760)
history-per-size = 5760
# Defines a range of accounts to private messages to/from as a json pair ["from","to"] [from,to)
# pm-account-range =
# Enable block production, even if the chain is stale.
enable-stale-production = false
# Percent of witnesses (0-99) that must be participating in order to produce blocks
required-participation = false
# name of witness controlled by this node (e.g. initwitness )
witness = "fuli"
# name of miner and its private key (e.g. ["account","WIF PRIVATE KEY"] )
# miner =
# Number of threads to use for proof of work mining
# mining-threads =
# WIF PRIVATE KEY to be used by one or more witnesses or miners
private-key = 5KdKqvF3AD4NN4AQzz5MEKQnZVpD5z1ChqnPrwzVGyVBjguQhjh
# Account creation fee to be voted on upon successful POW - Minimum fee is 100.000 STEEM (written as 100000)
# miner-account-creation-fee =
# Maximum block size (in bytes) to be voted on upon successful POW - Max block size must be between 128 KB and 750 MB
# miner-maximum-block-size =
# SBD interest rate to be vote on upon successful POW - Default interest rate is 10% (written as 1000)
# miner-sbd-interest-rate =
# declare an appender named "stderr" that writes messages to the console
[log.console_appender.stderr]
stream=std_error
# declare an appender named "p2p" that writes messages to p2p.log
[log.file_appender.p2p]
filename=logs/p2p/p2p.log
# filename can be absolute or relative to this config file
# route any messages logged to the default logger to the "stderr" logger we
# declared above, if they are info level are higher
[logger.default]
level=warn
appenders=stderr
# route messages sent to the "p2p" logger to the p2p appender declared above
[logger.p2p]
level=warn
appenders=p2p
```
---
This screen has been lasting for more than 24 hours.


Is my witness node working fine? I broadcasted my witness last night and I was able to vote myself.


Here is my config file
```
root@crypto:~/# cat ~/steem-docker/data/witness_node_data_dir/config.ini
# Endpoint for P2P node to listen on
#p2p-endpoint = 0.0.0.0:2001
# Maxmimum number of incoming connections on P2P endpoint
# p2p-max-connections =
# Shared file size
shared-file-size = 50G
shared-file-dir = /shm/
# Target blocks to flush
flush = 100000
# P2P nodes to connect to on startup (may specify multiple times)
seed-node = gtg.steem.house:2001 # @gtg (PL)
# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
# checkpoint =
# Endpoint for websocket RPC to listen on
rpc-endpoint = 0.0.0.0:8090
# Endpoint for TLS websocket RPC to listen on
# rpc-tls-endpoint =
# The TLS certificate file for this server
# server-pem =
# Password for this certificate
# server-pem-password =
# Block signing key to use for init witnesses, overrides genesis file
# dbg-init-key =
# API user specification, may be specified multiple times
# api-user =
# Set an API to be publicly available, may be specified multiple times
public-api = database_api login_api
# Plugin(s) to enable, may be specified multiple times
enable-plugin = witness
# Defines a range of accounts to track as a json pair ["from","to"] [from,to)
# track-account-range =
# RPC endpoint of a trusted validating node (required)
# trusted-node =
# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
bucket-size = [15,60,300,3600,86400]
# How far back in time to track history for each bucket size, measured in the number of buckets (default: 5760)
history-per-size = 5760
# Defines a range of accounts to private messages to/from as a json pair ["from","to"] [from,to)
# pm-account-range =
# Enable block production, even if the chain is stale.
enable-stale-production = false
# Percent of witnesses (0-99) that must be participating in order to produce blocks
required-participation = false
# name of witness controlled by this node (e.g. initwitness )
witness = "fuli"
# name of miner and its private key (e.g. ["account","WIF PRIVATE KEY"] )
# miner =
# Number of threads to use for proof of work mining
# mining-threads =
# WIF PRIVATE KEY to be used by one or more witnesses or miners
private-key = 5KdKqvF3AD4NN4AQzz5MEKQnZVpD5z1ChqnPrwzVGyVBjguQzmH
# Account creation fee to be voted on upon successful POW - Minimum fee is 100.000 STEEM (written as 100000)
# miner-account-creation-fee =
# Maximum block size (in bytes) to be voted on upon successful POW - Max block size must be between 128 KB and 750 MB
# miner-maximum-block-size =
# SBD interest rate to be vote on upon successful POW - Default interest rate is 10% (written as 1000)
# miner-sbd-interest-rate =
# declare an appender named "stderr" that writes messages to the console
[log.console_appender.stderr]
stream=std_error
# declare an appender named "p2p" that writes messages to p2p.log
[log.file_appender.p2p]
filename=logs/p2p/p2p.log
# filename can be absolute or relative to this config file
# route any messages logged to the default logger to the "stderr" logger we
# declared above, if they are info level are higher
[logger.default]
level=warn
appenders=stderr
# route messages sent to the "p2p" logger to the p2p appender declared above
[logger.p2p]
level=warn
appenders=p2p
```
I can't find clue from the log file --> logs/p2p/p2p.log . Most of the messages are similar to this one:
```
2017-08-06T02:14:11 p2p:message read_loop process_ordinary_mes ] client rejected message sent by peer 192.151.158.106:12150, {"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"database.cpp","line":2826,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2017-08-06T02:14:11"},"format":"(skip & skip_transaction_dupe_check) || trx_idx.indices().get<by_trx_id>().find(trx_id) == trx_idx.indices().get<by_trx_id>().end(): Duplicate transaction check failed","data":{"trx_ix":"4c422accc12c3af3304cc870918942e97b12d008"}},{"context":{"level":"warn","file":"database.cpp","line":2889,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2017-08-06T02:14:11"},"format":"","data":{"trx":{"ref_block_num":38289,"ref_block_prefix":1131685322,"expiration":"2017-08-06T02:15:09","operations":[["comment",{"parent_author":"dadview","parent_permlink":"usian-bolts-loses-final-100m-race-201785t22849737z","author":"lukestokes","permlink":"re-dadview-usian-bolts-loses-final-100m-race-201785t22849737z-20170806t021410506z","title":"","body":"He's a legend in his sport, like a Tiger Woods, Michael Jordan, or Kelly Slater. Unequaled.","json_metadata":"{\"tags\":[\"100m\"],\"app\":\"steemit/0.1\"}"}]],"extensions":[],"signatures":["1f2b29e6559dae42efb955901331a4f1510af7ada7b96e5ea7b5b6886d2c535e8c3d77d63d99c7ba6ea8c9223ba8b2555f4935e2fb30865d842a9648c7ac27c7a1"]}}},{"context":{"level":"warn","file":"database.cpp","line":660,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2017-08-06T02:14:11"},"format":"","data":{"trx":{"ref_block_num":38289,"ref_block_prefix":1131685322,"expiration":"2017-08-06T02:15:09","operations":[["comment",{"parent_author":"dadview","parent_permlink":"usian-bolts-loses-final-100m-race-201785t22849737z","author":"lukestokes","permlink":"re-dadview-usian-bolts-loses-final-100m-race-201785t22849737z-20170806t021410506z","title":"","body":"He's a legend in his sport, like a Tiger Woods, Michael Jordan, or Kelly Slater. Unequaled.","json_metadata":"{\"tags\":[\"100m\"],\"app\":\"steemit/0.1\"}"}]],"extensions":[],"signatures":["1f2b29e6559dae42efb955901331a4f1510af7ada7b96e5ea7b5b6886d2c535e8c3d77d63d99c7ba6ea8c9223ba8b2555f4935e2fb30865d842a9648c7ac27c7a1"]}}},{"context":{"level":"warn","file":"application.cpp","line":535,"method":"handle_transaction","hostname":"","thread_name":"th_a","timestamp":"2017-08-06T02:14:11"},"format":"","data":{"transaction_message":{"trx":{"ref_block_num":38289,"ref_block_prefix":1131685322,"expiration":"2017-08-06T02:15:09","operations":[["comment",{"parent_author":"dadview","parent_permlink":"usian-bolts-loses-final-100m-race-201785t22849737z","author":"lukestokes","permlink":"re-dadview-usian-bolts-loses-final-100m-race-201785t22849737z-20170806t021410506z","title":"","body":"He's a legend in his sport, like a Tiger Woods, Michael Jordan, or Kelly Slater. Unequaled.","json_metadata":"{\"tags\":[\"100m\"],\"app\":\"steemit/0.1\"}"}]],"extensions":[],"signatures":["1f2b29e6559dae42efb955901331a4f1510af7ada7b96e5ea7b5b6886d2c535e8c3d77d63d99c7ba6ea8c9223ba8b2555f4935e2fb30865d842a9648c7ac27c7a1"]}}}}]} node.cpp:3874
```