FATAL Unrecoverable error {"error": "trust: malformed cache: invalid character '\\x00' looking for beginning of value"

I got following errors on node startup:

|2021-05-02T05:13:17.264+0200|FATAL|Unrecoverable error|{error: trust: malformed cache: invalid character '\\x00' looking for beginning of value, errorVerbose: trust: malformed cache: invalid character '\\x00' looking for beginning of value\n\tstorj.io/storj/storagenode/trust.LoadCacheData:96\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:86\n\tstorj.io/storj/storagenode.New:379\n\tmain.cmdRun:177\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(*Command).execute:842\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:950\n\tgithub.com/spf13/cobra.(*Command).Execute:887\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:385\n\truntime.main:204}|
|---|---|---|---|
|2021-05-02T05:17:16.249+0200|FATAL|Unrecoverable error|{error: trust: malformed cache: invalid character '\\x00' looking for beginning of value, errorVerbose: trust: malformed cache: invalid character '\\x00' looking for beginning of value\n\tstorj.io/storj/storagenode/trust.LoadCacheData:96\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:86\n\tstorj.io/storj/storagenode.New:379\n\tmain.cmdRun:177\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(*Command).execute:842\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:950\n\tgithub.com/spf13/cobra.(*Command).Execute:887\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:385\n\truntime.main:204}|
|2021-05-02T05:17:16.403+0200|FATAL|Unrecoverable error|{error: trust: malformed cache: invalid character '\\x00' looking for beginning of value, errorVerbose: trust: malformed cache: invalid character '\\x00' looking for beginning of value\n\tstorj.io/storj/storagenode/trust.LoadCacheData:96\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:86\n\tstorj.io/storj/storagenode.New:379\n\tmain.cmdRun:177\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(*Command).execute:842\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:950\n\tgithub.com/spf13/cobra.(*Command).Execute:887\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:385\n\truntime.main:204}|
|2021-05-02T05:31:52.699+0200|FATAL|Unrecoverable error|{error: trust: malformed cache: invalid character '\\x00' looking for beginning of value, errorVerbose: trust: malformed cache: invalid character '\\x00' looking for beginning of value\n\tstorj.io/storj/storagenode/trust.LoadCacheData:96\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:86\n\tstorj.io/storj/storagenode.New:379\n\tmain.cmdRun:177\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(*Command).execute:842\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:950\n\tgithub.com/spf13/cobra.(*Command).Execute:887\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:385\n\truntime.main:204}|
|2021-05-02T05:37:33.141+0200|FATAL|Unrecoverable error|{error: trust: malformed cache: invalid character '\\x00' looking for beginning of value, errorVerbose: trust: malformed cache: invalid character '\\x00' looking for beginning of value\n\tstorj.io/storj/storagenode/trust.LoadCacheData:96\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:86\n\tstorj.io/storj/storagenode.New:379\n\tmain.cmdRun:177\n\tstorj.io/private/process.cleanup.func1.4:363\n\tstorj.io/private/process.cleanup.func1:381\n\tgithub.com/spf13/cobra.(*Command).execute:842\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:950\n\tgithub.com/spf13/cobra.(*Command).Execute:887\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:385\n\truntime.main:204}|

Can you please help me?

If you expect an answer, please provide more details, e.g. how in which system do you run the node …

Yeah, sorry. I am running on Windows 10, command line. This started to happen after a bluescreen.

Sorry, I can’t help with the node in Windows (I am not using Windows), but does Windows support a node with CLI? I don’t know, there are Windows specialists here…

This is Windows without a GUI and Docker?

Yes, it is without GUI and Docker, I have manually configured my nodes and update them manually too. I use CLI to run it and was successfull from October 2020.

Unusual “construction” … sorry, I don’t have the knowledge to help

Ok, it seems my trust-cache.json has been corrupted. I removed it and new one has been downloaded. I am back online :slight_smile:

How did you discover it?

“Malformed cache” message in logs sounded like trust-cache.json. “Invalid character …” seemed there is something wrong with this file so I opened it in notepad and saw only this:

image

Now it was clear this file has been corrupted so I removed it and lunched node again. To be honest I was surprised storagenode.exe has downloaded this without any hussle and node became online.

Yes, it is unusual but this is the easiest and clearest solution for me to run multiple nodes on the same Windows machine. I have everything in control and don’t need to fight with docker or program files garbage