Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.85k stars 451 forks source link

Strange token balance drain without much downloads active. #5310

Closed vi closed 11 months ago

vi commented 4 years ago

Tribler version/branch+revision:

ea923d8a6f55582da6523ad81e53d33d9cb74116 release-7.5

Operating system and version:

Linux, non-Dockerized

Steps to reproduce the behavior:
  1. Run a Tribler profile with long history of usage though various version (including recent rollback to v7.3.2). Most of token balance just remains from what was earned about two-three years ago.
  2. Update to release-7.5 branch from Git.
  3. Start, wait, ensure Token Balance is OK.
  4. Observe Token Balance slowly growing (maybe due to exit node being on) on the plots.
  5. Not have any serious downloads or uploads active (just one mostly idling, very slow bootstrap.block download and the rest seeding that are rarely actually active). Channels are updating, but they are not that big.
Expected behavior:

It keeps on going like this further.

Actual behavior:

Strange drastic Token balance drain, maybe even faster than network connection allows uploading or downloading.

screenshot

vi commented 4 years ago

Looks like it has petered out:

screenshot

Has the balance stabilized on just today's transit traffic?


No, it has continued the fall and hit the negatives:

screenshot

Let's leave it overnight and see what happens.


screenshot

devos50 commented 4 years ago

When leaving the Tribler instance without any (active) downloads, it could relay data. However, an increase in 'bytes given' should be accompanied with a (higher) increase in 'bytes taken'.

Now, we recently addressed a Python 3-related bug where payouts between Tribler 7.4 and 7.5 instances were not working correctly, due to a database error. I think that this behaviour is the result of an interaction between a 7.5 instance (you) and 7.4 instance, which is still not properly functioning. Particularly, it seems that the downloader (running 7.4) is not initiating the final payout. We should look into this.

The last screenshot indicates a glitch in the token balance graph, which is probably related to #5255. So far, we have only seen this weird behaviour on Linux.

vi commented 4 years ago

However, an increase in 'bytes given' should be accompanied with a (higher) increase in 'bytes taken'.

Do you mean the reverse?

The last screenshot indicates a glitch in the token balance graph, which is probably related to #5255. So far, we have only seen this weird behaviour on Linux.

Display was locked and Tribler window minimized at that time. Maybe that's why there are no points on the graph?

seems that the downloader (running 7.4) is not initiating the final payout.

Should it lead to the drain much faster than current total network load or just lead to non-increase of the balance where it should?

vi commented 4 years ago

In the end, "Taken from community plot" reached some limit (maybe it was total amount of very old tokens) and stopped growing:

screenshot

synctext commented 4 years ago

Thx @vi for helping us extensively. This token balance issue has been haunting us for a while.

For next release we will aim to fix this, do an upgrade, and add additional debug panel info. We will provide more details on your community standing and split the various token income source and spending. For instance, relaying income, relaying spending, exit node spending, and end-to-end seeding income.

FYI. Our historical designs and prototypes from April 2007 (pre-Bitcoin:-) tribler_e_4 0 0 Tribler_4 1__video_credit_and_detailed_statistics 4_0_0_ profile

lucy2812 commented 2 years ago

Since I'm experiencing token drain while not downloading anything, I presume I'm taking away value from fellow Triblers, and it makes me feel bad.

Since I'm not adding value (relaying or being available) to Triblers, should I exit Tribler and not use it?

devos50 commented 2 years ago

@lucy2812 thank you for your report. We have listed potential reasons for a token balance decrease in our FAQ. When I'm using Tribler, I noticed that my balance tends to go up and down, and I'm currently slightly in the negative.

Since I'm not adding value (relaying or being available) to Triblers, should I exit Tribler and not use it?

We appreciate it that you are using Tribler and there is certainly no need to stop using the software :). Keeping Tribler up and running should eventually increase your balance since you have the possibility to help other users (anonymously) download their content. We are also considering different ways to present ones overall performance in the user interface (e.g., "you are in the top X%").

Please let us know if you have any other question!

drew2a commented 11 months ago

@egbertbouman, could this issue be closed as we don't use the balance anymore?

egbertbouman commented 11 months ago

It's probably OK to close it, assuming the problem is in the graph itself.