# Multinode payout information bug

**URL:** <https://forum.storj.io/t/multinode-payout-information-bug/27843>\
**Category:** Developer Discussions\
**Tags:** multi-node-dashboard\
**Created:** [September 11, 2024, 4:40am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843 "2024-09-11T04:40:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [September 11, 2024, 4:40am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/1 "2024-09-11T04:40:20Z")

</div>

Hey @Alexey is there any node with payouts available I was looking into [this issue](https://github.com/storj/storj/issues/5993) but my nodes don’t have payouts or that much disk usage.

---

<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:** [September 11, 2024, 6:13am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/2 "2024-09-11T06:13:40Z")

</div>

You may use storj-up node and generate a usage

```auto
storj-up testdata payment 2024-07

```

Then add one of the nodes to the multinode dashboard

```auto
docker compose exec storagenode1 storagenode info

```

It would show also the public address like `storagenode1:30001`, but you need to use the IP of your host instead of `storagenode1`, also you need to expose the 30001 port of course.

---

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [September 11, 2024, 6:42am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/3 "2024-09-11T06:42:22Z")

</div>

Oh ok, thanks for the help.  
My multinode is working fine. I am adding some error notifications to the multinode dashboard. Eg: Node is down or connection error type.

---

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [October 3, 2024, 8:12pm UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/4 "2024-10-03T20:12:51Z")

</div>

I have generated the payout testdata but all the nodeIDs are randomly generated. So I am still getting 0 in the payout section.  
I tried with `storj-up testdata payment <node_id>` but it also didn’t work.  
How to link the test data with a particular node?

---

<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:** [October 4, 2024, 7:34am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/5 "2024-10-04T07:34:20Z")

</div>

I’m not sure, that it’s possible to make it for the one node only, so asked for help.

---

<div class="post-metadata">

**Author:** ![dlmorgan](https://storj.bcdn.literatehosting.com/letter_avatar/dlmorgan/32/6_22734026db12803ebb3e059622ac3534.png) [@dlmorgan](https://forum.storj.io/u/dlmorgan)\
**Post date:** [October 4, 2024, 6:26pm UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/6 "2024-10-04T18:26:57Z")

</div>

The testdata command doesn’t support specifying a specific node when generate payment and paystub entries, but that would be a great feature addition!

You can request new features for storj-up by adding an issue here as a feature request.

> **[Issues · storj/up](https://github.com/storj/up/issues)**
>
> Docker-compose files for running full Storj network locally - Issues · storj/up

Currently, the `testdata payment` command will create a random amount of fake stored data for each node that has contacted the satellite. Then it will use this amount, to calculate the paystub and compensation payouts. These payouts are then stored in the database table `storagenode_paystubs`.

If you are not seeing anything in the payout section of the node dashboard, can you verify that the database has populated this table?

---

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [October 6, 2024, 4:24am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/7 "2024-10-06T04:24:29Z")

</div>

Yeah I was looking into this. The `storagenode_paystubs` is populated with dummy data.

 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/f/7/f7ebe8a1d439bf72d79a90c17db034639ae15852.png)  
But the node’s id’s are not my running node id’s. So my node dashboard is empty.  
 ![image](https://storj-s3.bcdn.literatehosting.net/original/3X/7/9/79d41a3745c69376e101cc23fbd8d25782c00bff.png)  
However I am seeing the payout api is running

```auto
`SELECT
			satellite_id,
			created_at,
			codes,
			usage_at_rest,
			usage_get,
			usage_put,
			usage_get_repair,
			usage_put_repair,
			usage_get_audit,
			comp_at_rest,
			comp_get,
			comp_put,
			comp_get_repair,
			comp_put_repair,
			comp_get_audit,
			surge_percent,
			held,
			owed,
			disposed,
			paid,
			distributed
		FROM paystubs WHERE period = ?`

```

This query to the database.  
Does the `paystubs` database fetches data from the `storagenode_paystubs` while creaton of nodes??

---

<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:** [October 6, 2024, 7:01am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/8 "2024-10-06T07:01:24Z")

</div>

Usually on restart or every some fixed amount of time (in production once at 12h), but in `storj-up` setup I got data on the node’s dashboard much faster. So, if the node’s dashboard shows this info, it must be in the database too.  
However, if you would do `docker compose down`, then this data would be lost, unless you use a persistent storage (`storj-up persist`) for the satellite and nodes.

---

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [October 6, 2024, 7:25am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/9 "2024-10-06T07:25:17Z")

</div>

I ran `storj-up start` to run the containers then ran `storj-up testdata payment` and it generate dummy data and populate the the `storagenode_payments` and `storagenode_paystubs` table. But my storagenode UI is still empty.  
Do I need to add somthing to my docker compose file?

---

<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:** [October 6, 2024, 8:23am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/10 "2024-10-06T08:23:38Z")

</div>

I do not think so, I did nothing to get it on the multinode dashboard, it’s just refreshed after a while (~20 minutes I think).  
However, I did run it for the past period (because the current version of the multinode seems cannot use the data for the current period), maybe this makes a difference?  
Could you please also try to generate a project usage before the payment?

```auto
storj-up testdata project-usage 2024-09
storj-up testdata payment 2024-09

```

---

<div class="post-metadata">

**Author:** ![ptdatta](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ptdatta/32/1133_2.png) [@ptdatta](https://forum.storj.io/u/ptdatta)\
**Post date:** [October 6, 2024, 3:20pm UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/11 "2024-10-06T15:20:42Z")

</div>

I am getting this records

```auto
-[RECORD 1]
period | 2024-01
node_id | \x1ffb39fb36a3f6dfa21a053b16ff7132030a00092e428468c46bd4b476b22200
created_at | 2024-10-06 15:09:53.401937+00
codes | 
usage_at_rest | 396720
usage_get | 787
usage_put | 865
usage_get_repair | 0
usage_put_repair | 26
usage_get_audit | 0
comp_at_rest | 0
comp_get | 0
comp_put | 0
comp_get_repair | 0
comp_put_repair | 0
comp_get_audit | 0
surge_percent | 0
held | 0
owed | 0
disposed | 0
paid | 0
distributed | 0

```

data. But my dashboard is still empty.

---

<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:** [October 7, 2024, 6:18am UTC](https://forum.storj.io/t/multinode-payout-information-bug/27843/12 "2024-10-07T06:18:08Z")

</div>

The single node dashboard doesn’t allow to select a past period, so you wouldn’t see a usage for past months on a SND, you need to use a multinode for that.  
By the way, to be able to safe restart the node you need to remove the file

```auto
docker compose exec storagenode1 rm /var/lib/storj/.local/share/storj/storagenode/storage/trash/.trash-uses-day-dirs-indicator
docker compose restart storagenode1

```

After that the Payout history would allow to see 10 months of payments. However, the selector “Custom Date Range” wouldn’t still allow to select a period.
