xapi crash loop
- 
 Hi, after recovering from a power failure, xapi keeps crashing with this obscure error in xensource.log: Aug 13 11:34:20 hostname xapi: [debug||0 ||xapi] xapi top-level caught exception: INTERNAL_ERROR: [ (Scanf.Scan_failure\x0A "scanf: bad input at char number 6: looking for ':', found '.'") ]Does anyone have an idea what causes this situation? All the best, 
 Sven
- 
 Probably some corruption in your xapi database. Do you have a backup of the pool metadata? 
- 
 @Danp unfortunately not, at least not externally. And I think restore metadata would be kind of tricky, since the xapi tools won't work, XO is inside a VM and reinstalling xcp-ng would kill the SR on the primary disk. It's a test/dev system at home anyway and not too important. I'll erase it and make a new one. However, I do now understand the importance of metadata backups better. 
- 
 Are there any tools to edit state.db? 
- 
 Found it. Error is related to https://github.com/xapi-project/xen-api/issues/4141 Somehow, the PCIe bus address of the server's ASPEED VGA adapter changed. I got the new bus address with lspci and edited state.db accordingly. Works now. However, this seems to be a very strange bug. 

