Docker container stops after few minutes

Hi!

I deloyed the nkn docker image on a Raspberry Pi 4 and tried it on windows docker desktop too but on both device the nkn container stopped working after a few minutes with the following errors:

[WARN ] GID 27826, Get blocks error: Wait for reply timeout
[WARN ] GID 27827, Get blocks error: Wait for reply timeout
[WARN ] GID 27828, Get blocks error: Wait for reply timeout
[WARN ] GID 27829, Get blocks error: Wait for reply timeout
[WARN ] GID 27830, Get blocks error: Wait for reply timeout

[ERROR] GID 8922, Sync blocks error with batch size 1: all workers failed
[FATAL] GID 8922, [consensus.go:L341 func2()] Error syncing blocks: sync blocks error: all workers failed

I checked the 30000-30005 ports from outside and they are ok.
I see connections to neighbours.

What could be the problem? I appreciate every suggestion. :slight_smile:

Thanks!

Just for info: I added “SyncMode”: “light” to config.json and the container started to work.

It seems like you’re encountering a common issue with the NKN docker image. Based on similar cases, the problem might be related to the synchronization mode. A potential solution is to modify the config.json file of your NKN node and add the following line:

"SyncMode": "light"

This change switches the synchronization mode to “light,” which can help resolve issues with syncing blocks and prevent the container from stopping unexpectedly.

If this doesn’t resolve the issue, it might be worth checking:

  1. Resource Allocation: Ensure your Raspberry Pi 4 and Docker Desktop have sufficient CPU and memory allocated for the container.
  2. Network Stability: Verify that your internet connection is stable and not causing interruptions.
  3. Docker Image Version: Make sure you’re using the latest version of the NKN docker image, as updates often include bug fixes.

Hello!
The solution worked for me thanks to the community and the members for the solution.

Hello!
Thanks for the info I will try to figure it out for more.