0

This is the error I get when I run my Nest js app in Docker, It runs perfectly without Docker :

 DEBUG: Starting HTTP inbound transport {
   "port": 8000
 }
 DEBUG: Starting HTTP outbound transport
DEBUG: Mediator routing record not loaded yet, retrieving from storage
 DEBUG: Connecting to ledger pool 'BCOVRIN_TEST_GENESIS' {
   "genesisPath": "/tmp/afj/genesis-BCOVRIN_TEST_GENESIS.txn"
 }
 DEBUG: Pool 'BCOVRIN_TEST_GENESIS' does not exist yet, creating. {
   "indyError": "PoolLedgerNotCreatedError"
 }
 ERROR: Connection to pool: /tmp/afj/genesis-BCOVRIN_TEST_GENESIS.txn failed. {
   "error": {
     "name": "IndySdkError",
    "message": "IndyError(CommonInvalidStructure): CommonInvalidStructure",
     "stack": "IndySdkError: IndyError(CommonInvalidStructure): CommonInvalidStructure\n    at IndyPool.connectToLedger (/app/node_modules/@aries-framework/core/build/modules/ledger/IndyPool.js:84:52)",
     "cause": {
      "name": "IndyError",
       "stack": "IndyError: CommonInvalidStructure\n    at Object.callback (/app/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)",
      "message": "CommonInvalidStructure",
       "indyCode": 113,
       "indyName": "CommonInvalidStructure",
       "indyCurrentErrorJson": null
     }
   }
 }
 WARN: Error connecting to ledger, will try to reconnect when needed. {
   "error": {
    "name": "IndySdkError",
     "message": "IndyError(CommonInvalidStructure): CommonInvalidStructure",
    "stack": "IndySdkError: IndyError(CommonInvalidStructure): CommonInvalidStructure\n    at IndyPool.connectToLedger (/app/node_modules/@aries-framework/core/build/modules/ledger/IndyPool.js:84:52)",
     "cause": {
      "name": "IndyError",
       "stack": "IndyError: CommonInvalidStructure\n    at Object.callback (/app/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)",
      "message": "CommonInvalidStructure",
       "indyCode": 113,
       "indyName": "CommonInvalidStructure",
      "indyCurrentErrorJson": null
     }
   }
 }  

I tried passing in genesis tx directly rather than environment file and also tried sending genesis url, Both are gaving this same error.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770

0 Answers0