Service receives following error "INTERNAL ERROR, it's zero ID in account"

After starting service, everything looks good, but I receive following errors whenever I check the status of the service:

nknd[662]: 2019/07/08 15:06:56.818089 [INFO ] GID 1, GetID got resp: {"error":{"code":-45023,"data":null,"message":"INTERNAL ERROR, it's zero ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0024.nkn.org:30003
nknd[662]: 2019/07/08 15:06:56.984661 [INFO ] GID 1, GetID got resp: {"error":{"code":-45023,"data":null,"message":"INTERNAL ERROR, it's zero ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0015.nkn.org:30003
nknd[662]: 2019/07/08 15:06:57.132658 [INFO ] GID 1, GetID got resp: {"error":{"code":-45023,"data":null,"message":"INTERNAL ERROR, it's zero ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0018.nkn.org:30003

Although explorer shows it online and mining, I’d like to know why these errors are coming.
Is this problem on my side? Am I missing any critical setting?

Thanks.

1 Like
  • When a node with a new wallet joins the network for the first time, it takes a few minutes to generate a node ID (automatically). After the first time, it will be as fast as before.

So in the first few minutes, you will see such error message because the freshly started node do not have a NKN ID yet. No worries there as long as it is properly in mining status after a few minutes.

1 Like

Alright, thank you…

Hello! One of my node can’t generate ID after update to the 1.1b version of nknd, trying with “RegisterIDTxnFee”: 1, and without - same result. In the log generated many errors:

2019/09/10 15:20:47.202314 ←[0;32m[INFO ]←[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0016.nkn.org:30003
2019/09/10 15:20:47.202314 ←[0;33m[WARN ]←[m GID 1, create ID from http://mainnet-seed-0016.nkn.org:30003 met error: CreateID(http://mainnet-seed-0016.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}

This is normal. It will take between 15min - 1 hour to generate ID, since we introduced a small crypto puzzle to solved before new mining nodes join the network.

Ok, but process working about 10-15 sec and then terminated with message:
[ERROR]←[m GID 1, Panic: Get or create id error: create ID failed

Hello everyone! Please help me resolve trouble with generating ID for new wallet… As I described before nknd process working about 10-15 sec and then terminated with message:
[ERROR]←[m GID 1, Panic: Get or create id error: create ID failed
I Try make new wallet on different pc using command:
.\nknc.exe wallet -c
After that start mining:
.\nknd.exe -p @Password@
What i doing wrong?

Do you have more logs about why create ID fails?

Hello, typical log look like this:

2019/09/06 17:47:28.473342 e[0;32m[INFO ]e[m GID 1, Node version: v1.1-beta
2019/09/06 17:47:28.474342 e[0;32m[INFO ]e[m GID 1, Getting my IP address...
2019/09/06 17:47:28.612350 e[0;32m[INFO ]e[m GID 1, GetMyExtIP got resp: {"id":"1","jsonrpc":"2.0","result":{"RemoteAddr":"x.x.x.72"}} from http://mainnet-seed-0021.nkn.org:30003
2019/09/06 17:47:28.613350 e[0;32m[INFO ]e[m GID 1, From http://mainnet-seed-0021.nkn.org:30003 got myself ExtIP: {"id":"1","jsonrpc":"2.0","result":{"RemoteAddr":"x.x.x.72"}}
2019/09/06 17:47:28.615350 e[0;32m[INFO ]e[m GID 1, My IP address is x.x.x.72
2019/09/06 17:47:28.676354 e[0;32m[INFO ]e[m GID 1, database Version: 1
2019/09/06 17:47:28.677354 e[0;32m[INFO ]e[m GID 1, state root: a86c96961085f6b26fc6ca32036eeee0f58c976aa44f079ff905ef4f6a6befb0
2019/09/06 17:47:28.678354 e[0;32m[INFO ]e[m GID 1, get no ID from local ledger
2019/09/06 17:47:29.106378 e[0;32m[INFO ]e[m GID 1, GetID got resp: {"error":{"code":-45022,"data":null,"message":"INTERNAL ERROR, there is no ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0009.nkn.org:30003
2019/09/06 17:47:29.520402 e[0;32m[INFO ]e[m GID 1, GetID got resp: {"error":{"code":-45022,"data":null,"message":"INTERNAL ERROR, there is no ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0014.nkn.org:30003
2019/09/06 17:47:29.679411 e[0;32m[INFO ]e[m GID 1, GetID got resp: {"error":{"code":-45022,"data":null,"message":"INTERNAL ERROR, there is no ID in account"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0019.nkn.org:30003
2019/09/06 17:47:29.942426 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0030.nkn.org:30003
2019/09/06 17:47:29.944426 e[0;32m[INFO ]e[m GID 1, Creating generate ID txn. This process may take quite a few minutes...
2019/09/06 17:47:30.076434 e[0;32m[INFO ]e[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0030.nkn.org:30003
2019/09/06 17:47:30.078434 e[0;33m[WARN ]e[m GID 1, create ID from http://mainnet-seed-0030.nkn.org:30003 met error: CreateID(http://mainnet-seed-0030.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}
2019/09/06 17:47:30.389452 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0023.nkn.org:30003
2019/09/06 17:47:30.521459 e[0;32m[INFO ]e[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0023.nkn.org:30003
2019/09/06 17:47:30.523459 e[0;33m[WARN ]e[m GID 1, create ID from http://mainnet-seed-0023.nkn.org:30003 met error: CreateID(http://mainnet-seed-0023.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}
2019/09/06 17:47:30.904481 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0016.nkn.org:30003
2019/09/06 17:47:31.095492 e[0;32m[INFO ]e[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0016.nkn.org:30003
2019/09/06 17:47:31.097492 e[0;33m[WARN ]e[m GID 1, create ID from http://mainnet-seed-0016.nkn.org:30003 met error: CreateID(http://mainnet-seed-0016.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}
2019/09/06 17:47:31.338506 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0022.nkn.org:30003
2019/09/06 17:47:31.482514 e[0;32m[INFO ]e[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0022.nkn.org:30003
2019/09/06 17:47:31.484514 e[0;33m[WARN ]e[m GID 1, create ID from http://mainnet-seed-0022.nkn.org:30003 met error: CreateID(http://mainnet-seed-0022.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}
2019/09/06 17:47:31.613522 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0009.nkn.org:30003
2019/09/06 17:47:31.743529 e[0;32m[INFO ]e[m GID 1, CreateID got resp: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"} from http://mainnet-seed-0009.nkn.org:30003
2019/09/06 17:47:31.745529 e[0;33m[WARN ]e[m GID 1, create ID from http://mainnet-seed-0009.nkn.org:30003 met error: CreateID(http://mainnet-seed-0009.nkn.org:30003) resp error: {"error":{"code":-45021,"data":"[VerifyTransaction] txn hash is greater than MaxGenerateIDTxnHash","message":"INTERNAL ERROR, can not append tx to txpool"},"id":"1","jsonrpc":"2.0"}
2019/09/06 17:47:32.335563 e[0;32m[INFO ]e[m GID 1, GetNonceByAddr got resp: {"id":"1","jsonrpc":"2.0","result":{"currentHeight":253324,"nonce":0,"nonceInTxPool":0}} from http://mainnet-seed-0017.nkn.org:30003

working time less than 1 minute.

This is the log from Sep 6, which is quite old and has different mechanism. Do you have newer logs?

Hm… try to upgrade to v1.1.0-beta1 and process start as expected. Thank you for your advice!