github.com/amazechain/amc@v0.1.3/docs/run/troubleshooting.md (about) 1 # Troubleshooting 2 3 As amc is still in alpha, while running the node you can experience some problems related to different parts of the system: pipeline sync, blockchain tree, p2p, database, etc. 4 5 This page tries to answer how to deal with the most popular issues. 6 7 ## Database 8 9 ### Database write error 10 11 If you encounter an irrecoverable database-related errors, in most of the cases it's related to the RAM/NVMe/SSD you use. For example: 12 ```console 13 Error: A stage encountered an irrecoverable error. 14 15 Caused by: 16 0: An internal database error occurred: Database write error code: -30796 17 1: Database write error code: -30796 18 ``` 19 20 or 21 22 ```console 23 Error: A stage encountered an irrecoverable error. 24 25 Caused by: 26 0: An internal database error occurred: Database read error code: -30797 27 1: Database read error code: -30797 28 ``` 29 30 1. Check your memory health: use [memtest86+](https://www.memtest.org/) or [memtester](https://linux.die.net/man/8/memtester). If your memory is faulty, it's better to resync the node on different hardware. 31 2. Check database integrity: 32 33 ```bash 34 git clone https://github.com/amaze/amc 35 cd amc 36 make db-tools 37 db-tools/mdbx_chk $(amc db path)/mdbx.dat | tee mdbx_chk.log 38 ``` 39 If mdbx_chk has detected any errors, please open an issue and post the output from the mdbx_chk.log file.