storj-archived / core

Deprecated. Implementation of the Storj v2 protocol for Node.js.
https://storj.io
Other
395 stars 88 forks source link

ExchangeReport 'SHARD_UPLOADED' and 'SHARD_DOWNLOADED' never send #640

Closed littleskunk closed 6 years ago

littleskunk commented 7 years ago

Package Versions

Replace the values below using the output from npm list storj. Use npm list -g storj if installed globally.

└─┬ storjshare-daemon@2.1.2
  └── storj-lib@6.0.15

Replace the values below using the output from node --version.

v6.9.4

Expected Behavior

Please describe the program's expected behavior. Include an example of your usage code in the back ticks below if applicable.

Every time a Shard upload completed my farmer should send a SHARD_UPLOADED ExchangeReport.

Actual Behavior

Please describe the program's actual behavior. Please include any stack traces or log output in the back ticks below.

I see only MIRROR_SUCCESS reports. SHARD_UPLOADED is never send.

root@storj:~/.config/storjshare/logs# grep 'Shard upload completed' 188071ba7cfd974a9e47b59e24b0737ebf845db3.log | grep -v '2017-01-31T16' | wc -l                                                                                                               
13                                                                                                                                                                                                                                                               
root@storj:~/.config/storjshare/logs# grep 'SHARD_UPLOADED' 188071ba7cfd974a9e47b59e24b0737ebf845db3.log | grep -v '2017-01-31T16' | wc -l                                                                                                                       
0                                                                                                                                                                                                                                                                
root@storj:~/.config/storjshare/logs# grep 'MIRROR_SUCCESS' 188071ba7cfd974a9e47b59e24b0737ebf845db3.log | grep -v '2017-01-31T16' | wc -l                                                                                                                       
249 

Steps to Reproduce

Please include the steps the reproduce the issue, numbered below. Include as much detail as possible.

  1. Run farmer on loglevel debug.
  2. Wait for Shard upload completed
  3. Search for SHARD_UPLOADED reports.
littleskunk commented 7 years ago

SHARD_DOWNLOADED is missing as well.

littleskunk commented 6 years ago

Outdated. Farmer is now sending both reports.