networkObj error ------ Error: Error creating wallet database to store membership data: Error: No DB shards could be opened. #couchdb #fabric-kubernetes #hyperledger-fabric #kubernetes #fabric-sdk-node


Vijaya Bhaskar
 

Hello, 

I have a HLF running on azure AKS cluster. I have a couchdb acting as a wallet to store the identities of the blockchain admin and users. It is hosted along with all the other pods.
when i create an user and make a txn with my smartcontract, I am facing this issue intermittently with the probability of 40-50% of the times.
the storage fileshare and the cluster are in the same region. it is using azure AKS with 2 nodes of standard_Ds2_v2. each node has 2 vCPUs and 7Gigs of ram.
apart from 2 peer nodes(with couchdb), 2-orderers , a docker dind pod, a CA, not much load is there on the cluster.
the storage is azurefileshare. 

has anyone come across this or have any idea?
can we tweak any configs of db or others?

i am pasting the error log below

Error processing transaction. Error: Error creating wallet database to store membership data: Error: No DB shards could be opened.
  at Request._callback (/usr/src/asset/node_modules/fabric-client/node_modules/nano/lib/nano.js:252:15)
  at Request.self.callback (/usr/src/asset/node_modules/request/request.js:185:22)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at Request.<anonymous> (/usr/src/asset/node_modules/request/request.js:1154:10)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at IncomingMessage.<anonymous> (/usr/src/asset/node_modules/request/request.js:1076:12)
  at Object.onceWrapper (events.js:286:20)
  at IncomingMessage.emit (events.js:203:15)
  at IncomingMessage.EventEmitter.emit (domain.js:448:20)
  at endReadableNT (_stream_readable.js:1145:12)
  at process._tickCallback (internal/process/next_tick.js:63:19)
Done connecting to network.
networkObj error ------ Error: Error creating wallet database to store membership data: Error: No DB shards could be opened.
  at Request._callback (/usr/src/asset/node_modules/fabric-client/node_modules/nano/lib/nano.js:252:15)
  at Request.self.callback (/usr/src/asset/node_modules/request/request.js:185:22)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at Request.<anonymous> (/usr/src/asset/node_modules/request/request.js:1154:10)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at IncomingMessage.<anonymous> (/usr/src/asset/node_modules/request/request.js:1076:12)
  at Object.onceWrapper (events.js:286:20)
  at IncomingMessage.emit (events.js:203:15)
  at IncomingMessage.EventEmitter.emit (domain.js:448:20)
  at endReadableNT (_stream_readable.js:1145:12)
  at process._tickCallback (internal/process/next_tick.js:63:19)
  at dbClient.db.get (/usr/src/asset/node_modules/fabric-client/lib/impl/CouchDBKeyValueStore.js:79:21)
  at Request._callback (/usr/src/asset/node_modules/fabric-client/node_modules/nano/lib/nano.js:245:7)
  at Request.self.callback (/usr/src/asset/node_modules/request/request.js:185:22)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at Request.<anonymous> (/usr/src/asset/node_modules/request/request.js:1154:10)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at IncomingMessage.<anonymous> (/usr/src/asset/node_modules/request/request.js:1076:12)
  at Object.onceWrapper (events.js:286:20)
  at IncomingMessage.emit (events.js:203:15)
  at IncomingMessage.EventEmitter.emit (domain.js:448:20)
  at endReadableNT (_stream_readable.js:1145:12)
  at process._tickCallback (internal/process/next_tick.js:63:19)
Error: Error creating wallet database to store membership data: Error: No DB shards could be opened.
  at Request._callback (/usr/src/asset/node_modules/fabric-client/node_modules/nano/lib/nano.js:252:15)
  at Request.self.callback (/usr/src/asset/node_modules/request/request.js:185:22)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at Request.<anonymous> (/usr/src/asset/node_modules/request/request.js:1154:10)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at IncomingMessage.<anonymous> (/usr/src/asset/node_modules/request/request.js:1076:12)
  at Object.onceWrapper (events.js:286:20)
  at IncomingMessage.emit (events.js:203:15)
  at IncomingMessage.EventEmitter.emit (domain.js:448:20)
  at endReadableNT (_stream_readable.js:1145:12)
  at process._tickCallback (internal/process/next_tick.js:63:19)
  at dbClient.db.get (/usr/src/asset/node_modules/fabric-client/lib/impl/CouchDBKeyValueStore.js:79:21)
  at Request._callback (/usr/src/asset/node_modules/fabric-client/node_modules/nano/lib/nano.js:245:7)
  at Request.self.callback (/usr/src/asset/node_modules/request/request.js:185:22)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at Request.<anonymous> (/usr/src/asset/node_modules/request/request.js:1154:10)
  at Request.emit (events.js:198:13)
  at Request.EventEmitter.emit (domain.js:448:20)
  at IncomingMessage.<anonymous> (/usr/src/asset/node_modules/request/request.js:1076:12)
  at Object.onceWrapper (events.js:286:20)
  at IncomingMessage.emit (events.js:203:15)
  at IncomingMessage.EventEmitter.emit (domain.js:448:20)
  at endReadableNT (_stream_readable.js:1145:12)
  at process._tickCallback (internal/process/next_tick.js:63:19)
192.169.4.98 - S6ESRCB-31QMQXK-MK1NHAP-KNAHEDQ [28/Jun/2022:06:55:59 +0000] "POST /fabric/persona/onboard HTTP/1.1" 400 2820 "-" "-"

Join fabric@lists.hyperledger.org to automatically receive all group messages.