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?

2 Likes

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

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

1 Like

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.
1 Like

hi, my node stoped working since 4 days, i checked everything, hdd has no errors, have an static ipv4, restard diddnt helped, identity is ok. but port is shown as closed and i cant figure out why. reseted my router and made a new rule, puplic ip hasnt changed and is correct in yams. in the log it looks like it startet with an clocksync error, fixed that, but now i get an fatal error since 4 days. can post log because new mewmember?

Hello @Lumicron ,
Welcome to the forum!

1 Like

thx for the quick response. but where is trust-cache.json exactly located? i diddnt changed the install path.

In the data location. The folder, which contains all customers data. Depending on type of your storagenode itā€™s either specified in the storage.path: parameter of your config.yaml or in the --mount type=bind,source=/here/your/path/to/the/data/location,destination=/app/config option of the docker run command.

found itā€¦under programs/storjā€¦in jams its just c:ā€¦searched for hoursā€¦

can i delete storagenode.log after i got my node back online? it is almost 4 GB bigā€¦and i need a special programm that needs more than 10 minutes to open it.