question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dat-cli crashes syncing

See original GitHub issue

Here’s my output on a Ubuntu 16.04 machine running nodejs v4.2.6:

icarito@sunjammer:~/public_html/Workspace$ dat sync .                                                                                         │···············
(node) Buffer.set is deprecated. Use array indexes instead.                                                                                   │···············
dat v13.8.1                                                                                                                                   │···············
Downloading dat: 136 files (2.4 MB)                                                                                                           │···············
                                                                                                                                              │···············
1 connection | Download 0 B/s Upload 0 B/s                                                                                                    │···············
                   7 files (2.4 MB)                                                                                                           │···············
dat synced, waiting8 files (2.4 MB)                                                                                                           │···············
[=======================0 B/s Upload 0 B/s                                                                                                    │···············
0 connections | Download 595 B/s Upload 0 B/s                                                                                                 │···············
dat synced, waiting for updates.                                                                                                              │···············
Downloading updates...                                                                                                                        │···············
                                               1.22%                                                                                          │···············
                                                                                                                                              │···············
                                                                                                                                              │···············
                                                                                                                                              │···············
/usr/local/lib/node_modules/dat/src/lib/download.js:33                                                                                        │···············
      debug('archive sync', state.stats.get())                                                                                                │···············
      ^                                                                                                                                       │···············
                                                                                                                                              │···············
RangeError: Maximum call stack size exceeded                                                                                                  │···············
    at Hyperdrive.<anonymous> (/usr/local/lib/node_modules/dat/src/lib/download.js:33:7)                                                      │···············
    at emitNone (events.js:67:13)                                                                                                             │···············
    at Hyperdrive.emit (events.js:166:7)                                                                                                      │···············
    at /usr/local/lib/node_modules/dat/node_modules/hyperdrive/index.js:141:14                                                                │···············
    at kick (/usr/local/lib/node_modules/dat/node_modules/hyperdrive/index.js:236:5)                                                          │···············
    at Object.callback (/usr/local/lib/node_modules/dat/node_modules/hyperdrive/index.js:223:7)                                               │···············
    at Peer._downloadRange (/usr/local/lib/node_modules/dat/node_modules/hypercore/lib/replicate.js:368:13)                                   │···············
    at Peer.update (/usr/local/lib/node_modules/dat/node_modules/hypercore/lib/replicate.js:299:12)                                           │···············
    at Peer.update (/usr/local/lib/node_modules/dat/node_modules/hypercore/lib/replicate.js:300:51)                                           │···············
    at Peer.update (/usr/local/lib/node_modules/dat/node_modules/hypercore/lib/replicate.js:300:51)                                           │···············

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
millettecommented, Sep 15, 2017

Reinstalled on 3 machines yesterday, no failures since.

0reactions
icaritocommented, Apr 22, 2018

Thanks for this fix! I confirm my dat’s been running fine for a couple of months now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

WSUS Keeps Crashing during Sync - TechNet - Microsoft
I recently setup SCCM with WSUS to sync with Windows 7, 10 and Server 2008 R2, 2012 R2. Half way through the sync...
Read more >
Seems to have trouble connecting to dats after awaking ...
If I run "dat clone" or "dat sync", then it downloads latest data as it should be, without any problem. Moreover, if I...
Read more >
App Crash When Syncing Huge Folders
Hi, I've been struggling for a while with syncing a a folder of 300GB on Windows server. As my experiments show, the problem...
Read more >
datproject - Bountysource
Sometimes it just crashes. Note that I am opening 163 archives at the same time, waiting for them to finish their initial sync....
Read more >
Fix Wallet Crashing or Not Syncing Issues - NoLimitCoin
If you open the NoLimitcoin Wallet and see the following error: Error loading blkindex.dat or if your wallet gets stuck syncing or it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found