# Error: trust: open config/trust-cache.json: structure needs cleaning

**URL:** <https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648>\
**Category:** troubleshooting\
**Tags:** iscsi\
**Created:** [April 4, 2020, 9:57pm UTC](https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648 "2020-04-04T21:57:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brizio71](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brizio71/32/1129_2.png) [@brizio71](https://forum.storj.io/u/brizio71)\
**Post date:** [April 4, 2020, 9:57pm UTC](https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648/1 "2020-04-04T21:57:01Z")

</div>

What is this error ?

looking my files the trust-cache.json is in strage state:

fabrizio@snode:/mnt$ ll  
ls: cannot access ‘trust-cache.json’: Structure needs cleaning  
total 208  
drwxr-xr-x 8 root root 4096 Apr 4 23:24 ./  
drwxr-xr-x 26 root root 4096 Mar 31 10:59 …/  
drwxrwxrwx 2 root root 4096 Sep 25 2019 certs/  
drwxr-xr-x 2 root root 4096 Sep 25 2019 config/  
-rw-r–r-- 1 root root 877 Mar 9 14:58 config.yaml  
drwxr-xr-x 3 root root 4096 Sep 19 2019 identity/  
-rw------- 1 root root 131072 Oct 4 2019 kademlia  
drwx------ 2 root root 16384 Sep 25 2019 lost+found/  
drwxr-xr-x 7 root root 4096 Apr 1 03:46 mnt/  
-rw------- 1 root root 32768 Apr 5 00:02 revocations.db  
drwxr-xr-x 7 root root 4096 Apr 4 23:39 storage/  
-??? ? ? ? ? ? trust-cache.json

How I can fix it ?

thx

---

<div class="post-metadata">

**Author:** ![anon27637763](https://storj.bcdn.literatehosting.com/letter_avatar/anon27637763/32/6_22734026db12803ebb3e059622ac3534.png) [@anon27637763](https://forum.storj.io/u/anon27637763)\
**Post date:** [April 4, 2020, 10:28pm UTC](https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648/2 "2020-04-04T22:28:51Z")

</div>

My `trust-cache.json` has permissions `600`

Here are the contents of my file you may be able to simply copy/paste:

```
{
  "entries": {
    "https://tardigrade.io/trusted-satellites": [
      {
        "SatelliteURL": {
          "id": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S",
          "host": "us-central-1.tardigrade.io",
          "port": 7777
        },
    "authoritative": true
      },
      {
        "SatelliteURL": {
          "id": "12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs",
          "host": "europe-west-1.tardigrade.io",
          "port": 7777
        },
        "authoritative": true
      },
      {
        "SatelliteURL": {
          "id": "121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6",
          "host": "asia-east-1.tardigrade.io",
          "port": 7777
        },
        "authoritative": true
      },
      {
        "SatelliteURL": {
          "id": "118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW",
          "host": "satellite.stefan-benten.de",
          "port": 7777
        },
        "authoritative": false
      },
      {
        "SatelliteURL": {
          "id": "1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE",
          "host": "saltlake.tardigrade.io",
          "port": 7777
        },
        "authoritative": true
      }
    ]
  }
}
```

---

<div class="post-metadata">

**Author:** ![brizio71](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brizio71/32/1129_2.png) [@brizio71](https://forum.storj.io/u/brizio71)\
**Post date:** [April 4, 2020, 10:54pm UTC](https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648/3 "2020-04-04T22:54:09Z")

</div>

I have solve using fsck.ext4 that delete the corrupted trust-cache.json and than I have restore this file from a backup

---

<div class="post-metadata">

**Author:** ![anon27637763](https://storj.bcdn.literatehosting.com/letter_avatar/anon27637763/32/6_22734026db12803ebb3e059622ac3534.png) [@anon27637763](https://forum.storj.io/u/anon27637763)\
**Post date:** [April 5, 2020, 1:39am UTC](https://forum.storj.io/t/error-trust-open-config-trust-cache-json-structure-needs-cleaning/5648/4 "2020-04-05T01:39:41Z")

</div>

> [@brizio71](#):
>
> fsck.ext4 that delete the corrupted trust-cache.json

Did your OS unexpectedly shutdown? Power outage? Some external event that would result in your filesystem corrupting files? Or did the problem just occur somewhat randomly?

EXT4 is a journaling filesystem and is usually configured to perform an fsck every 50 or so boots. Usually, the only time I see corrupted files is when I forget to set an fsck interval or when a hard drive begins to fail.
