Last active
February 5, 2021 03:20
-
-
Save mburns/181fb1372e316659d9a7a6e54e7f0416 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm run bitcoin --scripts-prepend-node-path | |
> [email protected] bitcoin /usr/local/src/ion | |
> node dist/src/bitcoin.js | |
Environment variable ION_BITCOIN_CONFIG_FILE_PATH undefined, using default path ../json/testnet-bitcoin-config.json instead. | |
Environment variable ION_BITCOIN_VERSIONING_CONFIG_FILE_PATH undefined, using default ION bitcoin versioning config path ../json/testnet-bitcoin-versioning.json instead. | |
Creating bitcoin wallet using the import string passed in. | |
Sidetree bitcoin service configuration: | |
Collection 'service' found. | |
Collection 'blocks' found. | |
Transaction collection already exists. | |
Checking if bitcoin contains a wallet for 16tZEHugrK3AbNQEi94iQBbLFAEyzghDmc | |
Checking if bitcoin wallet for 16tZEHugrK3AbNQEi94iQBbLFAEyzghDmc exists | |
Sending jRPC request: id: miflfrciie, method: getaddressinfo | |
Error: Fetch failed [500]: {"result":null,"error":{"code":-5,"message":"Invalid address"},"id":"miflfrciie"} | |
at BitcoinClient.<anonymous> (/usr/local/src/ion/node_modules/@decentralized-identity/sidetree/dist/lib/bitcoin/BitcoinClient.js:670:31) | |
at Generator.next (<anonymous>) | |
at fulfilled (/usr/local/src/ion/node_modules/@decentralized-identity/sidetree/dist/lib/bitcoin/BitcoinClient.js:5:58) | |
at processTicksAndRejections (internal/process/task_queues.js:97:5) | |
Sidetree-Bitcoin node initialization failed with error: {"stack":"Error: Fetch failed [500]: {\"result\":null,\"error\":{\"code\":-5,\"message\":\"Invalid address\"},\"id\":\"miflfrciie\"}\n\n at BitcoinClient.<anonymous> (/usr/local/src/ion/node_modules/@decentralized-identity/sidetree/dist/lib/bitcoin/BitcoinClient.js:670:31)\n at Generator.next (<anonymous>)\n at fulfilled (/usr/local/src/ion/node_modules/@decentralized-identity/sidetree/dist/lib/bitcoin/BitcoinClient.js:5:58)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","message":"Fetch failed [500]: {\"result\":null,\"error\":{\"code\":-5,\"message\":\"Invalid address\"},\"id\":\"miflfrciie\"}\n"} | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! [email protected] bitcoin: `node dist/src/bitcoin.js` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] bitcoin script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /root/.npm/_logs/2021-02-04T18_10_24_994Z-debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /root/.npm/_logs/2021-02-04T18_10_24_994Z-debug.log | |
0 info it worked if it ends with ok | |
1 verbose cli [ | |
1 verbose cli '/snap/node/3292/bin/node', | |
1 verbose cli '/snap/node/3292/bin/npm', | |
1 verbose cli 'run', | |
1 verbose cli 'bitcoin', | |
1 verbose cli '--scripts-prepend-node-path' | |
1 verbose cli ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-script [ 'prebitcoin', 'bitcoin', 'postbitcoin' ] | |
5 info lifecycle [email protected]~prebitcoin: [email protected] | |
6 info lifecycle [email protected]~bitcoin: [email protected] | |
7 verbose lifecycle [email protected]~bitcoin: unsafe-perm in lifecycle true | |
8 verbose lifecycle [email protected]~bitcoin: PATH: /snap/node/3292/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/src/ion/node_modules/.bin:/snap/node/3292/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin | |
9 verbose lifecycle [email protected]~bitcoin: CWD: /usr/local/src/ion | |
10 silly lifecycle [email protected]~bitcoin: Args: [ '-c', 'node dist/src/bitcoin.js' ] | |
11 silly lifecycle [email protected]~bitcoin: Returned: code: 1 signal: null | |
12 info lifecycle [email protected]~bitcoin: Failed to exec bitcoin script | |
13 verbose stack Error: [email protected] bitcoin: `node dist/src/bitcoin.js` | |
13 verbose stack Exit status 1 | |
13 verbose stack at EventEmitter.<anonymous> (/snap/node/3292/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) | |
13 verbose stack at EventEmitter.emit (events.js:314:20) | |
13 verbose stack at ChildProcess.<anonymous> (/snap/node/3292/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) | |
13 verbose stack at ChildProcess.emit (events.js:314:20) | |
13 verbose stack at maybeClose (internal/child_process.js:1021:16) | |
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) | |
14 verbose pkgid [email protected] | |
15 verbose cwd /usr/local/src/ion | |
16 verbose Linux 5.4.0-54-generic | |
17 verbose argv "/snap/node/3292/bin/node" "/snap/node/3292/bin/npm" "run" "bitcoin" "--scripts-prepend-node-path" | |
18 verbose node v12.19.0 | |
19 verbose npm v6.14.8 | |
20 error code ELIFECYCLE | |
21 error errno 1 | |
22 error [email protected] bitcoin: `node dist/src/bitcoin.js` | |
22 error Exit status 1 | |
23 error Failed at the [email protected] bitcoin script. | |
23 error This is probably not a problem with npm. There is likely additional logging output above. | |
24 verbose exit [ 1, true ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testnet=1 | |
server=1 | |
datadir=/data/bitcoin | |
rpcuser=admin | |
rpcpassword=SECRET | |
txindex=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bitcoinDataDirectory": "/data/bitcoin", | |
"bitcoinFeeSpendingCutoffPeriodInBlocks": 1, | |
"bitcoinFeeSpendingCutoff": 0.001, | |
"bitcoinPeerUri": "http://localhost:18332", | |
"bitcoinRpcUsername": "admin", | |
"bitcoinRpcPassword": SECRET, | |
"bitcoinWalletOrImportString": GENERATED, | |
"databaseName": "ion-testnet-bitcoin", | |
"genesisBlockNumber": 1900000, | |
"logRequestError": true, | |
"mongoDbConnectionString": "mongodb://localhost:27017/", | |
"port": 3002, | |
"sidetreeTransactionFeeMarkupPercentage": 1, | |
"sidetreeTransactionPrefix": "ion:", | |
"transactionPollPeriodInSeconds": 60, | |
"valueTimeLockUpdateEnabled": false, | |
"valueTimeLockAmountInBitcoins": 0, | |
"valueTimeLockPollPeriodInSeconds": 600, | |
"valueTimeLockTransactionFeesAmountInBitcoins": 0.0001 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"batchingIntervalInSeconds": 600, | |
"blockchainServiceUri": "http://127.0.0.1:3002", | |
"databaseName": "ion-testnet-core", | |
"didMethodName": "ion:test", | |
"ipfsHttpApiEndpointUri": "http://127.0.0.1:5001", | |
"maxConcurrentDownloads": 20, | |
"mongoDbConnectionString": "mongodb://localhost:27017/", | |
"observingIntervalInSeconds": 60, | |
"port": 3000 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment