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:

1 Like

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

Hey there,

got a small problem starting my storagenode since today. As soon as I am trying to start my node via service I am prompted with an unexpected error 1067.

The storagenode.log got the following entries:

|2021-06-10T07:42:22.229+0200|INFO|Configuration loaded|{Location: C:\\Program Files\\Storj\\Storage Node\\config.yaml}|
|---|---|---|---|
|2021-06-10T07:42:22.236+0200|INFO|Operator email|{Address: ---}|
|2021-06-10T07:42:22.236+0200|INFO|Operator wallet|{Address: ---}|
|2021-06-10T07:42:22.262+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:378\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:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.(*service).Execute.func1:64\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57}|
|2021-06-10T07:42:25.953+0200|INFO|Configuration loaded|{Location: C:\\Program Files\\Storj\\Storage Node\\config.yaml}|
|2021-06-10T07:42:25.961+0200|INFO|Operator email|{Address: ---}|
|2021-06-10T07:42:25.961+0200|INFO|Operator wallet|{Address: ---}|
|2021-06-10T07:42:25.986+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:378\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:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.(*service).Execute.func1:64\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57}|

I can start the node via commandline without any errors. Is there anything I can do to fix the service-thingy?

Sincerely,

Stefan

PS: I am using the windows gui.

Hello @chesterz ,
Welcome to the forum!

See

Hi there,

My node is not working, the service give error 1067

2021-08-29T11:37:12.359+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:89\n\tstorj.io/storj/storagenode.New:378\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:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.Exec:65\n\tmain.(*service).Execute.func1:64\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57”}

any idea??? thank you

That’s what Alexey proposes:

To fix an issue - please:

  1. Stop the storagenode service either from the Services applet or from the elevated PowerShell:
Stop-Service storagenode
  1. Check disk for errors with correction.
  2. Remove the trust-cache.json from the data location
  3. Restart the storagenode service either from the Services applet or from the elevated PowerShell:
Restart-Service storagenode
  1. Check your logs.