How To Forget Untrusted Satellites

Following the announcement to decommission Europe-north-1 and US2 satellites, manually deleting the remaining data of these satellites from the node can be a tedious task as it requires finding the blobs folder name for each satellite, so we wanted to improve the storagenode CLI to semi-automate cleaning up a satellite data after it is marked as untrusted.

The storagenode CLI (versions from 1.88.0) provides a forget-satellite subcommand to remove satellites from the trust cache and clean up the available data.

  • General Usage

    storagenode forget-satellite [satelliteID] --config-dir <config-dir> --identity-dir <identity-dir>
    
  • You can specify multiple satellite IDs to remove multiple satellites at once.

     storagenode forget-satellite [satelliteID1] [satelliteID2] [satelliteID3] --config-dir <config-dir> --identity-dir <identity-dir>
    
  • To remove all untrusted satellites, you can use the --all-untrusted flag.

     storagenode forget-satellite --all-untrusted --config-dir <config-dir> --identity-dir <identity-dir>
    

Docker nodes

For storagenodes running in a docker container, you can use the following command to remove all untrusted satellites.

docker exec -it storagenode /app/config/bin/storagenode forget-satellite --all-untrusted --config-dir <config-dir> --identity-dir <identity-dir>

Or specify the satellite IDs to remove.

docker exec -it container_name /app/config/bin/storagenode forget-satellite [satelliteID1] [satelliteID2] [satelliteID3] ...

Cleaning Up Data for the Decommissioned Satellites

Method 1

  1. Add the satellites (Europe-north-1 and US2) to the exclusions list in your storagenode’s config.yaml file.

    storage2.trust.exclusions: "12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB@europe-north-1.tardigrade.io:7777,12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo@us2.storj.io:7777"
    
  2. Run the storagenode forget-satellite command

    storagenode forget-satellite --all-untrusted --config-dir /path/to/config --identity-dir /path/to/identity
    

    Or for docker nodes:

    docker exec -it storagenode /app/config/bin/storagenode forget-satellite --all-untrusted --config-dir config --identity-dir identity
    
  3. Restart the node

Method 2

You can directly specify the satellite IDs of the decommissioned satellites as arguments and --force flag to force cleanup

storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB  12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo   --config-dir /path/to/config --identity-dir /path/to/identity

For docker nodes:

docker exec -it storagenode /app/config/bin/storagenode forget-satellite --force 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB  12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo   --config-dir config  --identity-dir identity
15 Likes
Your Node has gone offline emails from delisted satellites (no reason for concern)
Удалённые сателиты
October 9, 2023, September payouts complete and more payouts announcements
Getting stuck held amount cleared from dashboard
Quick dq question
Quick dq question
Is all testdata removed from nodes?
Проблема: Your node has been disqualified, но audit score 96%
Delete blobs of europe-north-1 and us2?
Delete blobs of europe-north-1 and us2?
The node does not recheck the occupied space and therefore the disk is full
The node does not recheck the occupied space and therefore the disk is full
Abnormal storage visualisation and extra high traffic
When will average node space be the same as my currently used space?
Announcement: Storj to shut down europe-north-1 and us2
Dicommissioned servers: when do we receive held amount?
Проверка работы узла извне
Win GUI Storj Node Toolbox
Восстановление ноды после миграции с проблемного узла - часть 2
Node Dashboard: Online Status and QUIC Functionality OK, but Charts, Suspension, and Audit Features Unavailable
Node Dashboard: Online Status and QUIC Functionality OK, but Charts, Suspension, and Audit Features Unavailable
Удалённые сателиты
Удалённые сателиты
Why such low ingress
Announcement: Changes to node payout rates as of December 1st 2023 (Open for comment)
Data from deactivated satellites
Am I late because of shut down nodes? (europe-north-1 and us2)
Us1.storj.io disk average 30% lower than actual disk usage
Высокая нагрузка на ноде
November 9, 2023, October payouts complete
QUIC Misconfigured after upgrade to v1.90.2
My disk is now full
Storage node CPU usage unusualy high
“error”: “pieces error: filestore error: rename config/storage/temp/blob-yyyy.partial config/storage/blobs/xxxx.sj1: input/output error
An error occurred. Is it possible to fix this?
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Node disqualified on saltlake.tardigrade.io
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Web dashboard - loading errors (14002)
Disk usage discrepancy?
Forgot Saltlake satellite by mistake
Disk usage discrepancy?
Abnormal storage visualisation and extra high traffic
Abnormal storage visualisation and extra high traffic
Node disqualified, best actions
Filewalker not running when disabling lazyfilewalker
HDD Failing - Couldnt migrate data. Suggestions?
Disk usage discrepancy?
Fatal Error on my Node / Timeout after 1 min
Траффик на windows-gui ноде
4 Storj Nodes kill my system performance
Disk usage discrepancy?
Node causes PC to restart every 4 hours
Should I just start this node over?
Sehr wenig Traffic...normal?
Return of used data
Fatal Error on my Node / Timeout after 1 min
Resetting node used data amount keeps returning to 0
Disk usage discrepancy?
Graceful Exit Guide (new procedure as of 2023-10-?)
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Node (in docker) memory increase 4GB+ leading to container restart (v1.111.4)
Disk usage discrepancy?
Disk usage discrepancy?
When will "Uncollected Garbage" be deleted?
When will "Uncollected Garbage" be deleted?
When will "Uncollected Garbage" be deleted?
HDD Broken in the middle of the month, Node payout?
My node has been disqualified a few hours before I restore it. Is there any hope?
Old decommissioned sattelites in blobs folder
When will "Uncollected Garbage" be deleted?
Storj node take much more space in my hdd than in the node deashboard what is the probleme
Не совпадает размер ноды и обьем занятого места на диске
Disk usage discrepancy?
Removing a disqualified satellite from node
The node does not recheck the occupied space and therefore the disk is full
Significant data left over after graceful exit
Abnormal storage visualisation and extra high traffic
CLI dashboard shows incorrect disk usage
Disk usage discrepancy?
Disk usage discrepancy?
Disk usage discrepancy?
Received Node Disqualified Email But Node Still 100% Audit 100% Suspension
Earnings calculator (Detailed earnings info and health status of your node, including vetting progress and garbage collection status)
Disk usage discrepancy?
Storage.allocated-disk-space not updating in config
Disquali Satellite Data
Log errors I am seeing
How often can I expect GC to run?
Why such low ingress
“error”: “pieces error: filestore error: rename config/storage/temp/blob-yyyy.partial config/storage/blobs/xxxx.sj1: input/output error
“error”: “pieces error: filestore error: rename config/storage/temp/blob-yyyy.partial config/storage/blobs/xxxx.sj1: input/output error

Can this command be issued while storagenode binary process is already running and serving requests?

Thank you for that, guys!
As I still have a lot of free space on my nodes I think I’ll wait a few weeks to make sure everything works fine and no bugs are uncovered before doing mine :slight_smile:

3 Likes

I think it is important to note that 1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE is not a satellite to be decommissioned.

The satellite ids should be:

  • 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB for Europe-north-1

  • 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo for US2

3 Likes

@zip Yes, you can run this command while the process is still running.

2 Likes

Oops! It was a mistake. Thanks @jammerdan! The post has been updated

2 Likes

If a new node is created as of today will it still add Europe-north-1 and US2?

Yes they will be in the trust cache since we have EUN and US2 listed at https://storj.io/dcs-satellites, unless these two satellites are explicitly excluded when setting up the node but there won’t be any new orders from these satellites.

These satellites will be removed from the storj.io/dcs-satellites source soon.

Is there a check to not forget currently running satellites? Like you accidently typed in US1 as the satellite to forget but you didn’t even trigger the GE or put it into the untrusted list.

Shouldn’t be this handled by the network? Not to put preessure on us, making changes that can ruin the entire node by mistake?
If the nodes will be removed from the official DCS trust list, that can be the trigger to remove the data on our end, without us making any changes to settings.
Here, only 7% of SNOs enter and read posts. The rest are left with unwanted data.

12 Likes

I have 2 nodes, at 1.87.1 one has 4 blob folders, one has 6.

will the one with 6 be able to delete the decommissioned 2 soon?

fine, i will answer myself, yes its looking good, the dashboard already does not show the stats but the blobs folders are still there. will wait for GC to get work done.

That seems somewhat ass about. I would have thought the first step would have been to avoid any new nodes creating the mess that then needs to be cleaned up.

Some of my nodes are having now the version 1.88.3 and I tried to forget. Unfortunately I’m getting the error message that the identity couldn’t be loaded. It is there and the right folder but somehow not fetching the identity.cert.

I don’t know which is your setup, but If your node is running inside a container you must use the path inside the container, not the path on the host

2 Likes

It is Docker and yes leaving it as /app/identity works fine. Now it’s working with this command:

docker exec -it storagenode /app/storagenode forget-satellite 12rfG3sh9NCWiX3ivPjq2HtdLmbqCrvHVEzJubnzFzosMuawymB 12tRQrMTWUWwzwGh18i7Fqs67kmdhH9t6aToeiwbo5mfS2rUmo --identity-dir /app/identity --config-dir /app/config

Unfortunately even after decommissioning the entries still remain on the dashboard. So leave them in the untrust seems to be better:

And the to be decommissioned satellites must be in the untrusted-list:

1 Like

Good morning,

I would like to know if after executing this command, the files of the 2 satellites are deleted.

Because it’s been 24 hours since I ran this command and the files are still there.

did you try with --force?

1 Like

The command executed more than 48 hours ago must have passed because I just relaunched it and in the logs it shows me this, and the files of the 2 satellites have been deleted

Thanks

1 Like

What are the commands to remove the satellites through the GUI (Powershell)?

1 Like

Hello @DanielTB80,
Welcome to the forum!

From the first topic

You should provide paths to the config file and to the identity. If you didn’t move the identity, the default location is in %AppData%\Storj\Identity\storagenode, so the command would be:

& "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\\"
1 Like