Closed christroutner closed 3 years ago
The crash above was run with npm start
. It crashed a second time with the same message. I am now running it with this start command:
tsc && node --max_old_space_size=8192 index run
This version of SLPDB hasn't been optimized to work with every SLP Token ID for the whole blockchain. This version also doesn't work very well with NFT children.
If you are interested in an enterprise version of SLPDB please send me a message on Telegram (user @jscramer).
I'm late to this issue, but I just noticed my node (https://slpdb.devops.cash) has stopped at block # 664399.
@christroutner I'm already running --max_old_space_size=8192
, so I'm not sure what else I should try other than restart and wait to see if it sorts itself out. how did you eventually resolve this?
@jcramer Here is my Statuses output before I reset the node:
{
"_id": "5fd06bab7a96dd65da22777c",
"version": "1.0.0-beta-rc12",
"versionHash": "2f23af5122f11c24fb86026bea2b198a024c8f9b",
"deplVersionHash": null,
"startCmd": "node ProcessContainerFork.js run",
"context": "SLPDB",
"lastStatusUpdate": {
"utc": "Wed, 09 Dec 2020 06:16:11 GMT",
"unix": 1607494571
},
"lastIncomingTxnZmq": null,
"lastIncomingBlockZmq": null,
"lastOutgoingTxnZmq": null,
"lastOutgoingBlockZmq": null,
"state": "STARTUP_BLOCK_SYNC",
"stateHistory": [
{
"utc": "Tue, 08 Dec 2020 22:28:54 GMT",
"state": "PRE_STARTUP"
},
{
"utc": "Tue, 08 Dec 2020 22:28:54 GMT",
"state": "STARTUP_BLOCK_SYNC"
},
{
"utc": "Wed, 09 Dec 2020 00:23:44 GMT",
"state": "PRE_STARTUP"
},
{
"utc": "Wed, 09 Dec 2020 00:23:44 GMT",
"state": "STARTUP_BLOCK_SYNC"
},
{
"utc": "Wed, 09 Dec 2020 02:08:20 GMT",
"state": "PRE_STARTUP"
},
{
"utc": "Wed, 09 Dec 2020 02:08:20 GMT",
"state": "STARTUP_BLOCK_SYNC"
},
{
"utc": "Wed, 09 Dec 2020 04:11:24 GMT",
"state": "PRE_STARTUP"
},
{
"utc": "Wed, 09 Dec 2020 04:11:24 GMT",
"state": "STARTUP_BLOCK_SYNC"
},
{
"utc": "Wed, 09 Dec 2020 05:49:11 GMT",
"state": "PRE_STARTUP"
},
{
"utc": "Wed, 09 Dec 2020 05:49:11 GMT",
"state": "STARTUP_BLOCK_SYNC"
}
],
"network": "mainnet",
"bchBlockHeight": 664399,
"bchBlockHash": "00000000000000000413c48242a18a65b0179c59b309f6f7c9405cdb2e7ed107",
"slpProcessedBlockHeight": null,
"mempoolInfoBch": {
"loaded": true,
"size": 84,
"bytes": 42955,
"usage": 134032,
"maxmempool": 300000000,
"mempoolminfee": 0.00001,
"minrelaytxfee": 0.00001
},
"mempoolSizeSlp": -1,
"tokensCount": 57190,
"pastStackTraces": [
"[Thu, 03 Dec 2020 08:09:26 GMT] Error: _dbQuery failed with query {\"v\":3,\"q\":{\"db\":\"c\",\"find\":{\"blk.h\":\"000000000000000001a21edc5cb0d9cf63ee4b8eb309ba45add8c6ae9fdf4e29\"},\"limit\":10000000},\"r\":{\"f\":\"[ .[] | { txid: .tx.h, timestamp: (if .blk? then (.blk.t | strftime(\\\"%Y-%m-%d %H:%M:%S\\\")) else null end), slp: .slp } ]\"}} has response {\"errors\":[\"Error: spawn ENOMEM\"]}\n at Function.<anonymous> (/usr/src/slpdb/query.ts:43:27)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/src/slpdb/query.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)",
"[Wed, 02 Dec 2020 18:41:33 GMT] Error: _dbQuery failed with query {\"v\":3,\"q\":{\"db\":\"c\",\"find\":{\"blk.h\":\"0000000000000000019fed3bc703f938fbbc464acb48e53fc2600595250ec504\"},\"limit\":10000000},\"r\":{\"f\":\"[ .[] | { txid: .tx.h, timestamp: (if .blk? then (.blk.t | strftime(\\\"%Y-%m-%d %H:%M:%S\\\")) else null end), slp: .slp } ]\"}} has response {\"errors\":[\"Error: spawn ENOMEM\"]}\n at Function.<anonymous> (/usr/src/slpdb/query.ts:43:27)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/src/slpdb/query.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)",
"[Wed, 25 Nov 2020 22:36:15 GMT] Error: _dbQuery failed with query {\"v\":3,\"q\":{\"db\":\"c\",\"find\":{\"blk.h\":\"00000000000000000132f48224f26a4b46afa322d80d517f54acbb90bcbd4fec\"},\"limit\":10000000},\"r\":{\"f\":\"[ .[] | { txid: .tx.h, timestamp: (if .blk? then (.blk.t | strftime(\\\"%Y-%m-%d %H:%M:%S\\\")) else null end), slp: .slp } ]\"}} has response {\"errors\":[\"Error: spawn ENOMEM\"]}\n at Function.<anonymous> (/usr/src/slpdb/query.ts:43:27)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/src/slpdb/query.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)",
"[Fri, 02 Oct 2020 05:12:15 GMT] Error: _dbQuery failed with query {\"v\":3,\"q\":{\"db\":\"c\",\"find\":{\"blk.h\":\"000000000000000000f596d1f95cde5d0dbcdbe34254f86e74a8b01258bcb967\"},\"limit\":10000000},\"r\":{\"f\":\"[ .[] | { txid: .tx.h, timestamp: (if .blk? then (.blk.t | strftime(\\\"%Y-%m-%d %H:%M:%S\\\")) else null end), slp: .slp } ]\"}} has response {\"errors\":[\"Error: spawn ENOMEM\"]}\n at Function.<anonymous> (/usr/src/slpdb/query.ts:43:27)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/src/slpdb/query.js:5:58)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"
],
"doubleSpends": [],
"reorgs": [],
"mongoDbStats": {
"db": "slpdb",
"collections": 5,
"views": 0,
"objects": 2360306,
"avgObjSize": 3188.8848674705737,
"dataSize": 7178.062520980835,
"storageSize": 3048.87890625,
"indexes": 71,
"indexSize": 1388.00390625,
"totalSize": 4436.8828125,
"scaleFactor": 1048576,
"fsUsedSize": 102635.66796875,
"fsTotalSize": 253854.44140625,
"ok": 1
},
"publicUrl": "slpdb.devops.cash",
"telemetryHash": null,
"system": {
"loadAvg1": 1.154296875,
"loadAvg5": 1.05078125,
"loadAvg15": 1.42236328125,
"platform": "linux",
"cpuCount": 4,
"freeMem": 139.3046875,
"totalMem": 7980.99609375,
"uptime": 7099532,
"processUptime": 1622.466977569
}
}
will update if anything changes...
@nyusternie I was able to get my SLPDB past this block by increasing the memory to 32GB and using --max_old_space_size=28000
@christroutner thanks man!
i can't upgrade past 16GB on my vps, so I'll try that and see if it works, otherwise I'll have to migrate and re-build from scratch
This issue captures the results of a crash.
54714dfec7f82487d6d08dca19ae88918e7f8eef
Output of SLPDB