# Earnings calculator (Detailed earnings info and health status of your node, including vetting progress and garbage collection status)

**URL:** <https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794>\
**Category:** Node Operators\
**Tags:** earnings-calculator, useful-tools\
**Created:** [September 19, 2019, 7:37pm UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794 "2019-09-19T19:37:51Z")\
**Posts on this page:** 20\
**Page:** 26

<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 10, 2023, 4:28am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/508 "2023-01-10T04:28:40Z")

</div>

Split this topic on January 10, 2023, 4:28am UTC

17 posts were split to a new topic: [I’m confused by the results of the calculator and the dashboard](https://forum.storj.io/t/i-m-confused-by-the-results-of-the-calculator-and-the-dashboard/20956)

---

<div class="post-metadata">

**Author:** ![Salman](https://storj.bcdn.literatehosting.com/letter_avatar/salman/32/6_449c533f586939b6e5f246632a46421f.png) [@Salman](https://forum.storj.io/u/Salman)\
**Post date:** [January 15, 2023, 4:56pm UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/509 "2023-01-15T16:56:07Z")

</div>

![image](https://storj-s3.bcdn.literatehosting.net/original/2X/f/f25884961afcd71ce271109f44ac1bd0f820fc45.png)

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/5/5493ae14f1d4d0c694e64bf2b2ac8588a05f9d23.png)  
why my usde space only half of it real space  
v1.69.2

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [January 15, 2023, 9:47pm UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/510 "2023-01-15T21:47:53Z")

</div>

I’m not sure. Garbage collection should have cleaned up the majority of stale data by now. Have you had any performance issues with your node?

---

<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:** [January 16, 2023, 12:25am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/511 "2023-01-16T00:25:01Z")

</div>

I just realised… in the newest version, the Reputation fields are empty. Is this on purpose? Or some king of bug?

---

<div class="post-metadata">

**Author:** ![Salman](https://storj.bcdn.literatehosting.com/letter_avatar/salman/32/6_449c533f586939b6e5f246632a46421f.png) [@Salman](https://forum.storj.io/u/Salman)\
**Post date:** [January 16, 2023, 2:40am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/512 "2023-01-16T02:40:27Z")

</div>

actually my node is normal，and my other 4 nodes have the same problem

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [January 16, 2023, 9:21am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/513 "2023-01-16T09:21:42Z")

</div>

> [@snorkel](#):
>
> the Repution fields are empty

They are empty if you use a month parameter (and always have been empty in that scenario). This is because there is no historic reputation info. Omit that parameter and the reputation will be filled.

> [@Salman](#):
>
> actually my node is normal，and my other 4 nodes have the same problem

Then I’m not sure how that happened. What I can say is that this means the satellites think you have a lot less data on your node than your node itself does. This can happen if you missed deletes by being offline, or lost a lot of races to get pieces within the first 80 nodes. However, normally garbage collection would clean that up. I made those debug lines to show this issue when garbage collection was disabled for a while. At that time it was expected for there to be a mismatch. But it has been reenabled for a while now and it should have already been cleaned up. So I have no explanation for such a massive discrepancy between the two numbers.

---

<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 16, 2023, 10:52am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/514 "2023-01-16T10:52:55Z")

</div>

It is a known bug of dashnoard v.1.70.2

> [@Dashboard: Calculation error for "Disk space used This Month" and "Disk Average Month"?](https://forum.storj.io/t/dashboard-calculation-error-for-disk-space-used-this-month-and-disk-average-month/20172/28):
>
> I see this on one of my nodes, it’s updated to v1.70.2 and has this discrepancy. Notified the team. But perhaps it’s better to have an issue on our GitHub.

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [January 16, 2023, 11:00am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/515 "2023-01-16T11:00:50Z")

</div>

I see that dashboard bug on some of my nodes, but my calculator still displays correct values on those nodes. So I’m not convinced this is the same issue.

---

<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 18, 2023, 4:06am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/516 "2023-01-18T04:06:37Z")

</div>

You are correct - v1.70.2 has issue with displaying the disk usage on the graph, but I see a previous version on the screenshot, so it’s something different - like corrupted databases.  
@Salman could you please check your databases?

> **[How to fix a "database disk image is malformed"](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-)**
>
> Problem
> Sometimes a Storage Node Operator may encounter the "database disk image is malformed" error in their log. This could happen during unplanned shutdown or reboot. The error indicates that on...

And also - when you hover mouse above graph - how much TB used it displays?

---

<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 30, 2023, 5:00am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/517 "2023-01-30T05:00:15Z")

</div>

Split this topic on January 30, 2023, 5:00am UTC

A post was split to a new topic: [Disk usage graph discrepancy in v1.69.2](https://forum.storj.io/t/disk-usage-graph-discrepancy-in-v1-69-2/21198)

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 22, 2023, 2:38pm UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/518 "2023-03-22T14:38:46Z")

</div>

Hello - i have this problem when running the earnings script:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/8/82f739577f96d77fdde0d9ba6176f6f723ec682e.jpeg)

---

<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:** [March 23, 2023, 2:52am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/519 "2023-03-23T02:52:03Z")

</div>

Perhaps your databases got corrupted, please check them:

> **[How to fix a "database disk image is malformed"](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-)**
>
> Problem
> Sometimes a Storage Node Operator may encounter the "database disk image is malformed" error in their log. This could happen during unplanned shutdown or reboot. The error indicates that on...

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 23, 2023, 7:10am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/520 "2023-03-23T07:10:03Z")

</div>

I can check but its a brand new node - runnning just fine. So whould be weird

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [March 23, 2023, 7:29am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/521 "2023-03-23T07:29:26Z")

</div>

What node version are you running? And are you using the latest version of this script?

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 23, 2023, 7:30am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/522 "2023-03-23T07:30:28Z")

</div>

1.74.1 - is my current version 🙂

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [March 23, 2023, 7:32am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/523 "2023-03-23T07:32:27Z")

</div>

The folder name suggests you’re running an old version of this script. Please download the latest. This error popped up when Storj made changes in the database layout, but it has long since been fixed in the earnings script.

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 23, 2023, 7:58am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/524 "2023-03-23T07:58:23Z")

</div>

Maybe im dumb 😃 Can you send a link to the newest version - i cant seem to find it 🙂

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [March 23, 2023, 8:00am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/525 "2023-03-23T08:00:36Z")

</div>

All the links are in the top post. It’s tagged as the latest version on github, there are direct links to the latest version and even a CLI command to get the latest version. I’m not sure what else I can link to get you there…

---

<div class="post-metadata">

**Author:** ![HGPlays](https://storj.bcdn.literatehosting.com/letter_avatar/hgplays/32/6_449c533f586939b6e5f246632a46421f.png) [@HGPlays](https://forum.storj.io/u/HGPlays)\
**Post date:** [March 23, 2023, 8:10am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/526 "2023-03-23T08:10:07Z")

</div>

Sorry i will get the newest version - must have just downloaded an older one 🙂

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [April 20, 2023, 11:07am UTC](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794/527 "2023-04-20T11:07:03Z")

</div>

I have a pretty big update today. Due to the [upcoming changes to payouts](https://forum.storj.io/t/update-proposal-for-storage-node-operators-open-for-comments/22339) as well as [upcoming community satellites](https://forum.storj.io/t/announcing-community-satellite-pilot-program/21666), the calculator needed to be updated to be able to handle different payout schemes per satellite. This required some more extensive changes to both the code and layout as payout details were hard coded before and the layout didn’t allow for different payout schemes. I used this opportunity to also split out storage, egress and repair payouts on the per satellite view to aid in making decisions to exit specific satellites.  
As part of this change, the listed payout rates in the top overview now show a calculated weighted average across satellites. While per satellite payout rates are listed in the bottom overview.

I’m looking forward to your feedback. Since this was a larger refactor than normal, issues might occur. Please feel free to report them and I will look into fixing them asap.

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/d/d0cec889b91abfe80b675db949861a73b787a50c.png)

#### Note: this new version uses pricing.db to source payout information. If you copy db’s before running the script, make sure you include this db from now on.

### Known issues

- Payout details in the storagenode db’s do not include historic information. As a result, internal calculations for payouts in historic months will display wrong information if a satellite has changed payout schemes since then. There isn’t much I can do about this unless Storj Labs chooses to add historic data for this.
- When satellites use a long name and you have a warning status, the layout may break. This won’t happen on current production satellites, but might happen on test/community satellites or future production satellites if the names are longer.

## Changelog

### v13.0.0 - Refactor for different payout schemes per satellite

- Calculate weighted average payout per TB for top overview
- Add payout scheme per satellite
- Split out payouts for storage, egress and repair/audit
- Add estimated total by end of month to per satellite overview
- Change layout to keep output compact with newly data added
- Source payout data from pricing.db instead of hard coded (note: new db required to use the script)

[Previous page](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794.md?page=25)

[Next page](https://forum.storj.io/t/earnings-calculator-detailed-earnings-info-and-health-status-of-your-node-including-vetting-progress-and-garbage-collection-status/1794.md?page=27)
