Error running miner

I’m running a miner on my macbook pro, and it gets stuck for some reason.

I downloaded the latest .jam file published on the google drive (State Jams - Google Drive)
Then I ran it for an hour or so.. and now it’s just stuck. Doesn’t matter if I restart, and I don’t want to remove the .data.nockchain because I assume I have to redo all the blocks from the .jam file and spend another hour to catch up where I’m at now (14635)?

Any help would be greatly appreciated!

I (18:53:39) candidate block timestamp updated: 0x8000000d371b2c93
I (18:53:44) serf: cold: register: could not match parent battery at given axis: 0x_0000000000007874_2d7761722d646461 7

thread 'tokio-runtime-worker' panicked at crates/nockchain-libp2p-io/src/nc.rs:111:14:
failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 0, error_len: Some(1) })
E (18:53:51) nc: Task error: JoinError::Panic(Id(199), "failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 0, error_len: Some(1) })", ...)

Running the miner with RUST_LOG=debug gives me the following logs:

I (19:12:58) dumbnet born
D (19:12:58) driver_init: poke acknowledged
D (19:12:58) mining: received new candidate block header: "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"
I (19:12:58) mining: starting mining threads
D (19:12:58) dialer_select: Dialer: Proposed protocol protocol=/nockchain-1-req-res
D (19:12:58) dialer_select: Dialer: Received confirmation for protocol protocol=/nockchain-1-req-res
D (19:12:59) endpoint: dropping packet with invalid CID
D (19:13:00) mining: starting mining attempt on thread 0 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "2ApYhkVzAfZkX8HnYnU4ZdUQfvvCthrPsAkdg582YnGGDPFmLQWpbYw"
D (19:13:01) endpoint: dropping packet with invalid CID
D (19:13:01) mining: starting mining attempt on thread 1 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "32rC9YM8fVhpjLQoBESkFZfF7VpBWmcb1njXW26LLWVsBGQhLjb2wtQ"
I (19:13:02) serf: cold: register: could not match parent battery at given axis: 0x_0000000000007874_2d7761722d646461 7
D (19:13:03) mining: starting mining attempt on thread 2 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "4T7T33e54Ce5sRab1gsAZ6bSfWjsijhhXLRe7hLxuvHEa5NGnTL7vZn"
D (19:13:05) mining: starting mining attempt on thread 3 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "3gqu59cyHu8Sc99id78mBaN1SPCLfBJ3psxzZ73cpqp2fKCNA6q8Rxj"
D (19:13:05) endpoint: dropping packet with invalid CID
D (19:13:06) mining: starting mining attempt on thread 4 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "AncezphKmHAuk2BtbC6yHFkfWLWLBoXbBY1F5qsaUF8ZsCE3jzCBZfA"
D (19:13:07) listener_select: Listener: confirming protocol protocol=/nockchain-1-req-res
D (19:13:07) listener_select: Listener: sent confirmed protocol protocol=/nockchain-1-req-res
D (19:13:08) mining: starting mining attempt on thread 5 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "5SxeSQFkmRhdLdW8tc5xnSSfoVVCMRGKCZZciwzjanWNoDq2XGikZiz"

thread 'tokio-runtime-worker' panicked at crates/nockchain-libp2p-io/src/nc.rs:111:14:
failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 0, error_len: Some(1) })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
D (19:13:08) log: Resuming session    
D (19:13:08) log: No cached session for DnsName("l")    
D (19:13:08) log: Not resuming any session    
D (19:13:08) log: No cached session for DnsName("l")    
D (19:13:08) log: Not resuming any session    
D (19:13:08) log: No cached session for DnsName("l")    
D (19:13:08) log: Not resuming any session    
E (19:13:08) nc: Task error: JoinError::Panic(Id(75), "failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 0, error_len: Some(1) })", ...)
I (19:13:08) heard block: duplicate block
I (19:13:09) heard block: duplicate block
D (19:13:10) mining: starting mining attempt on thread 6 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "8ovNdep2cEqdMJswxQXrDYot5jU3BuaJE7GXMCwj2sdUwgNfwNp2Utf"
D (19:13:12) mining: starting mining attempt on thread 7 on header "3NjKQKBMqvKmSEouzEnvUnxZuUuePx982QBfjnPdq76chBhaDhaGqz6"with nonce: "5nB9PxMqAHCsAy1exrev1voms9yo4epmkZoXNRzxTVR3fC2hgY4UdiT"
I (19:13:12) mining: mining threads started with 8 threads
D (19:13:13) endpoint: dropping packet with invalid CID
D (19:13:17) dialer_select: Dialer: Proposed protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Proposed protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Proposed protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Proposed protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Received confirmation for protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Received confirmation for protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Received confirmation for protocol protocol=/nockchain-1-req-res
D (19:13:17) dialer_select: Dialer: Received confirmation for protocol protocol=/nockchain-1-req-res
D (19:13:17) connection: discarding possible duplicate packet
I (19:13:21) serf: cold: register: could not match parent battery at given axis: 0x_0000000000007874_2d7761722d646461 7
D (19:13:23) log: No cached session for DnsName("l")    
D (19:13:23) log: Not resuming any session    
D (19:13:23) log: No cached session for DnsName("l")    
D (19:13:23) log: Not resuming any session    
D (19:13:23) log: No cached session for DnsName("l")    
D (19:13:23) log: Not resuming any session    
D (19:13:23) endpoint: dropping packet with invalid CID
D (19:13:23) endpoint: dropping packet with invalid CID
D (19:13:23) log: Using ciphersuite TLS13_CHACHA20_POLY1305_SHA256    
D (19:13:23) log: Not resuming    
1 Like

Ok, there seems to be some issue when the miner gets to block 14636.
I ran it on two different machines, and the result is the same.
I used the latest .jam file from the google drive 13353.jam

thread 'tokio-runtime-worker' panicked at crates/nockchain-libp2p-io/src/nc.rs:111:14:
failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })
E (18:00:38) nc: Task error: JoinError::Panic(Id(14012), "failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })", ...)
I (18:00:38) heard block 4wBkYTr4TkLKmRHDgZ79Rm1u5puREfioFPmNoVktP6ub3sFHeTq5418 at height 16234 but we only have blocks up to height 14635: requesting next highest block.
I (18:00:39) heard block 4wBkYTr4TkLKmRHDgZ79Rm1u5puREfioFPmNoVktP6ub3sFHeTq5418 at height 16234 but we only have blocks up to height 14635: requesting next highest block.
I (18:00:40) potential reorg: requesting elders for block TB15JRPJFHtGKgSJuKa5gmyryKBtNSQSXiHF6yfBRF4rpGQ52f7VNx at height 14636
I (18:00:41) potential reorg: requesting elders for block TB15JRPJFHtGKgSJuKa5gmyryKBtNSQSXiHF6yfBRF4rpGQ52f7VNx at height 14636
I (18:00:42) potential reorg: requesting elders for block TB15JRPJFHtGKgSJuKa5gmyryKBtNSQSXiHF6yfBRF4rpGQ52f7VNx at height 14636
I (18:00:43) potential reorg: requesting elders for block TB15JRPJFHtGKgSJuKa5gmyryKBtNSQSXiHF6yfBRF4rpGQ52f7VNx at height 14636
I (18:00:51) serf: cold: register: could not match parent battery at given axis: 0x_0000000000007874_2d7761722d646461 7

thread 'tokio-runtime-worker' panicked at crates/nockchain-libp2p-io/src/nc.rs:111:14:
failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })
E (18:00:55) nc: Task error: JoinError::Panic(Id(14068), "failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })", ...)
I (18:01:01) serf: cold: register: could not match parent battery at given axis: 0x_0000000000007874_2d7761722d646461 7

thread 'tokio-runtime-worker' panicked at crates/nockchain-libp2p-io/src/nc.rs:111:14:
failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })
E (18:01:06) nc: Task error: JoinError::Panic(Id(14078), "failed to strip null bytes: Utf8Error(Utf8Error { valid_up_to: 1, error_len: Some(1) })", ...)
./scripts/run_nockchain_miner.sh: line 28: 160177 Killed                  nockchain --mining-pubkey ${MINING_PUBKEY} --mine --num-threads $num_threads
2 Likes

They just pushed an update so I pulled it and reinstalled nockchain and it seems to be getting past the failed to strip null bytes error. But right now it’s not progressing that much because it’s removing quite a few peers

2 Likes

I still can’t get past block 14635. :upside_down_face:
The client doesn’t crash, but it doesn’t advance either, it’s just stuck trying to process the same block over and over again.

1 Like

We are investigating this issue. Get on Telegram and check periodically today and tomorrow to be alerted to any fix we find and deploy

2 Likes

Can we somehow unban me in Telegram?