storj-archived / core

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

Shard cleanup exception after 24 hours #629

Closed littleskunk closed 7 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.0
-- storj-lib@6.0.14

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

v6.9.1

Expected Behavior

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

Run cleanup every 24 hours.

Actual Behavior

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

Running for 24 hours and than comes this exception:

C:\Users\Server\AppData\Roaming\npm\node_modules\storjshare-daemon\node_modules\storj-lib\lib\storage\manager.js:212
if (this._options.disableReaper) {
^

TypeError: Cannot read property '_options' of undefined
at StorageManager._initShardReaper (C:\Users\Server\AppData\Roaming\npm\node_modules\storjshare-daemon\node_modules\storj-lib\lib\storage\manager.js:212:11)
at Readable.<anonymous> (C:\Users\Server\AppData\Roaming\npm\node_modules\storjshare-daemon\node_modules\storj-lib\lib\storage\manager.js:178:5)
at emitNone (events.js:86:13)
at Readable.emit (events.js:185:7)
at endReadableNT (C:\Users\Server\AppData\Roaming\npm\node_modules\storjshare-daemon\node_modules\readable-stream\lib\_stream_readable.js:926:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Steps to Reproduce

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

  1. Start node and wait 24 hours.