# How To Forget Untrusted Satellites

**URL:** <https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821>\
**Category:** FAQ\
**Created:** [September 25, 2023, 10:01am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821 "2023-09-25T10:01:05Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Ruskiem](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ruskiem/32/64_2.png) [@Ruskiem](https://forum.storj.io/u/Ruskiem)\
**Post date:** [December 11, 2023, 8:29pm UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/62 "2023-12-11T20:29:13Z")

</div>

Is method 2 safe as a first method?

`& "C:\Program Files\Storj\Storage Node\storagenode.exe" forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir "C:\Program Files\Storj\Storage Node\\" --identity-dir "$env:AppData\Storj\Identity\storagenode\\"`

just used it, only because it was easiest to use:  
i typed it in PowerShell with admin rights and after some HDD work, it deletes the 2 folders in Storj/blobs  
(Wonder if i need additionally edit in the config.yaml? it’s Windows 10, GUI storagenode)  
(i got 1,5TB on some node for those 2, just decomistioned satelities)

But the command don’t work for the ever first test satelite, an old stefan-benten leftovers folder abforhuxbzyd35blusvrifvdwmfx4hmocsva4vmpp3rgqaaaaaaa (118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW)  
and i want to tottaly eradicate all 3 of those from the memory of storagenode, so it even wont try FileWalker on those please, when i turn it full ON at start by command:  
`storage2.piece-scan-on-startup: true`

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 12, 2023, 3:17am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/63 "2023-12-12T03:17:01Z")

</div>

> [@Ruskiem](#):
>
> (Wonder if i need additionally edit in the config.yaml? it’s Windows 10, GUI storagenode)

no

> [@Ruskiem](#):
>
> But the command don’t work for the ever first test satelite, an old stefan-benten leftovers folder abforhuxbzyd35blusvrifvdwmfx4hmocsva4vmpp3rgqaaaaaaa (118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW)

did you run the command with the `--force` flag? Is this folder empty?

---

<div class="post-metadata">

**Author:** ![Ruskiem](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ruskiem/32/64_2.png) [@Ruskiem](https://forum.storj.io/u/Ruskiem)\
**Post date:** [December 12, 2023, 3:28am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/64 "2023-12-12T03:28:08Z")

</div>

Yes just like in the example. Folders inside “abforhuxbzyd35blusvrifvdwmfx4hmocsva4vmpp3rgqaaaaaaa” are mostly empty, but still some 249MB there some single files left.  
Other folders from 2 recent test satelites are completly gone.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 12, 2023, 3:40am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/65 "2023-12-12T03:40:12Z")

</div>

Then you likely can remove it manually. Perhaps some records are missing in the database, so the node is unable to delete it itself.

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [December 24, 2023, 6:43am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/66 "2023-12-24T06:43:07Z")

</div>

Hi!

I’m rolls up this command and it not works somehow:

```auto
docker exec -it storagenode3 ./storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir E:\data\ --identity-dir E:\identity\storagenode3\
INFO Anonymized tracing enabled {"process": "storagenode"}
FATAL Failed to load identity. {"process": "storagenode", "error": "file or directory not found: open E:\\identity\\storagenode3\\/identity.cert: no such file or directory", "errorVerbose": "file or directory not found: open E:\\identity\\storagenode3\\/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdForgetSatellite:83\n\tmain.newForgetSatelliteCmd.func1:71\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\tmain.main:30\n\truntime.main:267"}

```

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 24, 2023, 7:23am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/67 "2023-12-24T07:23:26Z")

</div>

You need to provide the path to the identity and data inside the container, not your external paths. So, you need to execute it as is, i.e. literally without any modifications (except a container name):

> [@clement](#):
>
> ```auto
> docker exec -it storagenode ./storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir config --identity-dir identity
> 
> ```

In your case

```auto
docker exec -it storagenode3 ./storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir config --identity-dir identity

```

---

<div class="post-metadata">

**Author:** ![karacurt](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/karacurt/32/60_2.png) [@karacurt](https://forum.storj.io/u/karacurt)\
**Post date:** [December 24, 2023, 7:26am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/68 "2023-12-24T07:26:30Z")

</div>

> [@Alexey](#):
>
> You need to provide the path to the identity and data inside the container, not your external paths. So, you need to execute it as is, i.e. literally without any modifications (except a container name):

Nice, it works)  
Thank you!

---

<div class="post-metadata">

**Author:** ![Mad\_Max](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mad_max/32/1127_2.png) [@Mad\_Max](https://forum.storj.io/u/Mad_Max)\
**Post date:** [December 26, 2023, 7:32am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/69 "2023-12-26T07:32:28Z")

</div>

> [@Alexey](#):
>
> So, yeah. There is a one command to remove it from your node(s), if it (they) missed the party.

Must be something wrong with these “bloom filters” again. My nodes did not “missed the party” - they was running and online (\>=99% online score) during summer satellite shutdown.

and I’VE SEEN massive automatic file deletion at that time back in summer. But for some unknown reason (more bugs in bloom filters?) it deleted only about 85-90% of the total data stored for these satellites on my nodes. The rest lay untouched until now. Now I have found this topic and am doing manual cleaning according to the instructions given in the first post.  
As a result, about 500 thousand files (~600 GB) and ~ 8 thousand garbage folders ((1024 in blobs + 1024 in trash) x2 satellites x2 nodes) still remaining from 2 decommissioned satellites have been deleted on 2 nodes.

On the 3rd node i just deleted blob folders about a month ago before found this instruction. It was a small node (slightly more than 1 TB of data), so there was less debris from these satellites left on it. “Only” about 40k useless files and 4k folders.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 27, 2023, 7:48am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/70 "2023-12-27T07:48:24Z")

</div>

My nodes didn’t miss the party and removed almost all data (and not only mine), so I guess our setups are different.  
However, running this command should help to remove all remained data anyway.

> [@Mad\_Max](#):
>
> more bugs in bloom filters?) it deleted only about 85-90% of the total data

This is how the bloom filter is configured. It’s exactly tuned to delete not more than 90% at once (this is by design, otherwise it could delete something excess). So it’s required to run several bloom filters, this is mean that your node should not miss any of these requests (mine have them two times in the week). Satellites were running almost two months after the data were deleted before shutdown.  
So, I guess your setup suffer from a slow disk response for a long time already.  
I hope that the new version 1.93.2 is more robust even if the disk is too slow, however, if your node restarts/stops because of other errors (FATAL in particular), the filewalker may not finish its work in time.

---

<div class="post-metadata">

**Author:** ![Toyoo](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toyoo/32/1126_2.png) [@Toyoo](https://forum.storj.io/u/Toyoo)\
**Post date:** [December 27, 2023, 2:12pm UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/71 "2023-12-27T14:12:10Z")

</div>

> [@Alexey](#):
>
> This is how the bloom filter is configured. It’s exactly tuned to delete not more than 90% at once (this is by design, otherwise it could delete something excess). So it’s required to run several bloom filters, this is mean that your node should not miss any of these requests (mine have them two times in the week). Satellites were running almost two months after the data were deleted before shutdown.

The 90% parameter is a bit misleading here in this corner case. Usually it means: on average 10% of data to be removed will be mistaken for data to be kept. But for this to happen, there has to be some data to be kept, otherwise there’s nothing for which a false positive can be mistaken for.

A bloom filter representing an empty set is just zeros, and a single run should be able to remove everything. As such, there must have been other operational problems at the time deletions and GC filters were being sent.

My nodes also kept around enough files for these satellites to account for about 3% of total data stored, despite having a pretty good online score. Might have just been problems on my side though, can’t debug it anymore.

---

<div class="post-metadata">

**Author:** ![snorkel](https://storj.bcdn.literatehosting.com/letter_avatar/snorkel/32/6_449c533f586939b6e5f246632a46421f.png) [@snorkel](https://forum.storj.io/u/snorkel)\
**Post date:** [December 27, 2023, 10:02pm UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/72 "2023-12-27T22:02:08Z")

</div>

This problem with leftovers from defunct sats should be resolved by the code in the future, without user intervention, because you made possible the implemantation of private satellites, and the auto-maintenance of the stored data should be spot on, in order to make that ecosystem work flowlessly. FW, GC, bloom filters and all the other Santa’s elfs should take care of the files and trash, not requesting users to input commands for each private sat that they join and leave. So, put a pin in it and revisit this problem with the garbage/trash that is discussed on so many threads.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 28, 2023, 7:15am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/73 "2023-12-28T07:15:13Z")

</div>

> [@Toyoo](#):
>
> A bloom filter representing an empty set is just zeros, and a single run should be able to remove everything.

I believe the satellites have a protection against this, so I think it was sent as a normal bloom filter, not zeroed. Because my nodes have had a few GBs of not removed data in total after the satellites shutdown. So I think your nodes were ok.

> [@snorkel](#):
>
> This problem with leftovers from defunct sats should be resolved by the code in the future, without user intervention, because you made possible the implemantation of private satellites

Perhaps you are right, but you know - priorities… And we (SNOs) have a command to override.  
Especially if the satellite operator will shutdown their satellite without waiting while data would be removed from nodes (operational costs, you know).

But I think, first we need to fix the leftovers of filewalkers.

---

<div class="post-metadata">

**Author:** ![bobbll](https://storj.bcdn.literatehosting.com/letter_avatar/bobbll/32/6_449c533f586939b6e5f246632a46421f.png) [@bobbll](https://forum.storj.io/u/bobbll)\
**Post date:** [January 4, 2024, 8:45am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/74 "2024-01-04T08:45:59Z")

</div>

i have a pi4 node .I have a pi node with docker. How is the command for docker forget-satellite --all-untrusted. Sry i am new in linux. And will the data be deleted or do I have to do something else?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 4, 2024, 9:07am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/75 "2024-01-04T09:07:14Z")

</div>

You should use the full command:

> [@clement](#):
>
> ```auto
> docker exec -it storagenode ./storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir config --identity-dir identity
> 
> ```

Don’t modify this command unless the node name is different (this is the only parameter which should be modified in this command).

---

<div class="post-metadata">

**Author:** ![bobbll](https://storj.bcdn.literatehosting.com/letter_avatar/bobbll/32/6_449c533f586939b6e5f246632a46421f.png) [@bobbll](https://forum.storj.io/u/bobbll)\
**Post date:** [January 4, 2024, 9:20am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/76 "2024-01-04T09:20:42Z")

</div>

This is my Docker command is it ok?  
docker run -d --restart unless-stopped --stop-timeout 300   
-p 28867:28967/tcp   
-p 28867:28967/udp   
-p 14002:14002   
-e WALLET=“xxxxxxxxxxxxxxxxxxxxxxxxxxxxx”   
-e EMAIL=“xxxxxxxxxxxxxxxxxx”   
-e ADDRESS=“xxx.xxx.xxx.xxx:28867”   
-e STORAGE=“3600GB”   
–sysctl net.ipv4.tcp\_fastopen=3   
–mount type=bind,source=“/mnt/vpnberlin/identity”,destination=/app/identity   
–mount type=bind,source=“/mnt/vpnberlin”,destination=/app/config   
–mount type=bind,source=“/mnt/vpnberlin”,destination=/app/log   
–name vpnberlin storjlabs/storagenode:latest   
–storage2.piece-scan-on-startup=false \

and and where do I insert it

---

<div class="post-metadata">

**Author:** ![Roberto](https://storj.bcdn.literatehosting.com/letter_avatar/roberto/32/6_449c533f586939b6e5f246632a46421f.png) [@Roberto](https://forum.storj.io/u/Roberto)\
**Post date:** [January 4, 2024, 10:37am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/77 "2024-01-04T10:37:06Z")

</div>

You don’t have to put it in the docker command. It should only be given once

---

<div class="post-metadata">

**Author:** ![bobbll](https://storj.bcdn.literatehosting.com/letter_avatar/bobbll/32/6_449c533f586939b6e5f246632a46421f.png) [@bobbll](https://forum.storj.io/u/bobbll)\
**Post date:** [January 4, 2024, 10:53am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/78 "2024-01-04T10:53:27Z")

</div>

and how. i dont understand

---

<div class="post-metadata">

**Author:** ![Roberto](https://storj.bcdn.literatehosting.com/letter_avatar/roberto/32/6_449c533f586939b6e5f246632a46421f.png) [@Roberto](https://forum.storj.io/u/Roberto)\
**Post date:** [January 4, 2024, 11:00am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/79 "2024-01-04T11:00:46Z")

</div>

Access your host via ssh and copy and paste the command, replacing the identity and config paths with yours

---

<div class="post-metadata">

**Author:** ![bobbll](https://storj.bcdn.literatehosting.com/letter_avatar/bobbll/32/6_449c533f586939b6e5f246632a46421f.png) [@bobbll](https://forum.storj.io/u/bobbll)\
**Post date:** [January 4, 2024, 11:17am UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/80 "2024-01-04T11:17:59Z")

</div>

pi@raspberrypinode:~ $ sudo docker exec -it storagenode-1 ./storagenode forget-satellite --all-untrusted --config-dir ./mnt/storagenode-1 --identity-dir ./mnt/storagenode-1/identity

2024-01-04T11:17:24Z INFO Anonymized tracing enabled {“process”: “storagenode”}  
2024-01-04T11:17:24Z FATAL Failed to load identity. {“process”: “storagenode”, “error”: “file or directory not found: open mnt/storagenode-1/identity/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found: open mnt/storagenode-1/identity/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdForgetSatellite:83\n\tmain.newForgetSatelliteCmd.func1:71\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\tmain.main:30\n\truntime.main:267”}

how is the problem?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 4, 2024, 12:53pm UTC](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821/81 "2024-01-04T12:53:20Z")

</div>

No.  
You need to execute it AS IS, i.e.

> [@clement](#):
>
> ```auto
> docker exec -it storagenode ./storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --config-dir config --identity-dir identity
> 
> ```

As I said - **do not modify anything** except node’s name ( **only** if it’s different).

[Previous page](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821.md?page=3)

[Next page](https://forum.storj.io/t/how-to-forget-untrusted-satellites/23821.md?page=5)
