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

You can zip it before deletion.
To delete log you need to stop the service, zip the log, delete the log, start the service.

You can also use this script: GitHub - AlexeyALeonov/storagenode_win_log_rotate: Windows GUI storagenode log rotation script (doesn't compatible with logrotate)

1 Like

thx, node is finaly back online

2022-08-08T19:36:41.458+0800 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:379\n\tmain.cmdRun:210\n\tstorj.io/private/process.cleanup.func1.4:372\n\tstorj.io/private/process.cleanup.func1:390\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.ExecWithCustomConfigAndLogger:93\n\tstorj.io/private/process.ExecWithCustomConfig:75\n\tstorj.io/private/process.Exec:65\n\tmain.(*service).Execute.func1:61\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:57”}

Hello, I had to shutdown the computer for maintenance, and now the node doesnt start anymore…

I have this fatal error :
2022-11-24T13:15:51.612+0100 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:95\n\tstorj.io/storj/storagenode/trust.LoadCache:35\n\tstorj.io/storj/storagenode/trust.NewPool:90\n\tstorj.io/storj/storagenode.New:401\n\tmain.cmdRun:210\n\tstorj.io/private/process.cleanup.func1.4:377\n\tstorj.io/private/process.cleanup.func1:395\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.ExecWithCustomConfigAndLogger:92\n\tstorj.io/private/process.ExecWithCustomConfig:74\n\tstorj.io/private/process.Exec:64\n\tmain.(*service).Execute.func1:61\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:75”}

I tried to reboot the computer multiple times still doesnt work.
What can I do ?

2 Likes

That was a fast solution, thank you

доброго времени, такая проблема логи такие

2023-02-12T15:52:53.633+0300 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:95\n\tstorj.io/storj/storagenode/trust.LoadCache:35\n\tstorj.io/storj/storagenode/trust.NewPool:90\n\tstorj.io/storj/storagenode.New:398\n\tmain.cmdRun:210\n\tstorj.io/private/process.cleanup.func1.4:377\n\tstorj.io/private/process.cleanup.func1:395\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.ExecWithCustomConfigAndLogger:92\n\tstorj.io/private/process.ExecWithCustomConfig:74\n\tstorj.io/private/process.Exec:64\n\tmain.(*service).Execute.func1:61\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:75”}

инструкция https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error не помогает

починил, переустановкой gui, перед установкой удалил старые файлы в C:\Program Files\Storj\Storage Node

Здравствуйте @Sarumanvar,

Попробуйте в следующий раз воспользоваться поиском: Search results for 'trust: malformed cache: invalid character' - Storj Community Forum (official), переустановка не требовалась…

THANK YOU!!!

That’s EXACTLY my problem. I nearly deleted Srorj and was going to give up…

1 Like

hi, we getting this error when starting the node.
what should i do?

2024-01-03T07:36:09+08:00 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:110\n\tstorj.io/storj/storagenode/trust.LoadCache:36\n\tstorj.io/storj/storagenode/trust.NewPool:91\n\tstorj.io/storj/storagenode.New:405\n\tmain.cmdRun:79\n\tmain.newRunCmd.func1:32\n\tstorj.io/private/process.cleanup.func1.4:393\n\tstorj.io/private/process.cleanup.func1:411\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.ExecWithCustomOptions:112\n\tstorj.io/private/process.ExecWithCustomConfigAndLogger:77\n\tstorj.io/private/process.ExecWithCustomConfig:72\n\tstorj.io/private/process.Exec:62\n\tmain.(*service).Execute.func1:77\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:75”}