Blockchain-postgres-sync


#1

Hi.
https://github.com/wavesplatform/blockchain-postgres-sync -
Do the project works on Win7x64 (i5, 8GB , SSD hard drive)?
It works, if I set the small range between blocks( npm run download 600 700).
I set – blocksPerRequest: 50 , but that did not help me.

I have log errors

Summary

0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘download’,
1 verbose cli ‘201’,
1 verbose cli ‘500’ ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ ‘predownload’, ‘download’, ‘postdownload’ ]
5 info lifecycle [email protected]~predownload: [email protected]
6 info lifecycle [email protected]~download: [email protected]
7 verbose lifecycle [email protected]~download: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~download: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Code_repository\Waves\blockchain-postgres-sync\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Istiv\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Istiv\AppData\Roaming\npm;C:\Users\Istiv\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle [email protected]~download: CWD: D:\Code_repository\Waves\blockchain-postgres-sync
10 silly lifecycle [email protected]~download: Args: [ ‘/d /s /c’, ‘node src/runForRange.js “201” “500”’ ]
11 silly lifecycle [email protected]~download: Returned: code: 1 signal: null
12 info lifecycle [email protected]~download: Failed to exec download script
13 verbose stack Error: [email protected] download: node src/runForRange.js "201" "500"
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd D:\Code_repository\Waves\blockchain-postgres-sync
16 verbose Windows_NT 6.1.7601
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “download” “201” “500”
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] download: node src/runForRange.js "201" "500"
22 error Exit status 1
23 error Failed at the [email protected]3.1 download script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]


#3

The node from which you’re downloading the updates returned an error so the download failed. Try to choose a more stable node, otherwise you should keep downloading in smaller batches and to be prepared for retry.


#4

Which node “is stable” ? for example? I use https://nodes.wavesnodes.com default node in this script.
I won’t create new node for my self…I want use public node.