HandyHost icon indicating copy to clipboard operation
HandyHost copied to clipboard

sia is not starting after a power failure when resizing a folder

Open esaumell opened this issue 3 years ago • 0 comments

sia is not starting. When I use siac -a localhost:10801 host I get: Could not fetch host settings: [failed to get reader response; GET request failed; Get "http://localhost:10801/host": dial tcp 127.0.0.1:10801: connect: connection refused]

This happened after a power failure while resizing a folder with siac host folder resize

To see whats going on the siad logs: sudo tail -n 50 /root/.HandyHost/siaData/siad-output.log

siad v1.5.7
Git Revision ✗-6939e2464
Loading...
(1/8) Loading siad...
(2/8) Loading gateway...
(3/8) Loading consensus...
(4/8) Loading transaction pool...
(5/8) Loading wallet...
(6/8) Loading host...
ERROR: [server is unable to create the Sia node; unable to create host; [error during contract manager startup; error while loading the WAL at startup; failed to recover WAL: walFile metadata mismatch: WAL metadata header does not match header found in WAL file]; [error while loading the WAL at startup; failed to recover WAL: walFile metadata mismatch: WAL metadata header does not match header found in WAL file]]
[server is unable to create the Sia node; unable to create host; [error during contract manager startup; error while loading the WAL at startup; failed to recover WAL: walFile metadata mismatch: WAL metadata header does not match header found in WAL file]; [error while loading the WAL at startup; failed to recover WAL: walFile metadata mismatch: WAL metadata header does not match header found in WAL file]]

Since I could find nothing about WAL, walFile, metadata or mismatch on github issues I asked on Sia Discord. There, someone pointed me that contractmanager.wal was corrupted. I just renamed it and siad it's up again.

esaumell avatar Apr 18 '22 18:04 esaumell