Skip to content

Fix console CouchDB connection error (Issue #1179)#1403

Open
SurbhiAgarwal1 wants to merge 2 commits into
hyperledger:mainfrom
SurbhiAgarwal1:fix-1179-console-couchdb-error
Open

Fix console CouchDB connection error (Issue #1179)#1403
SurbhiAgarwal1 wants to merge 2 commits into
hyperledger:mainfrom
SurbhiAgarwal1:fix-1179-console-couchdb-error

Conversation

@SurbhiAgarwal1

Copy link
Copy Markdown

Description

This PR resolves Issue #1179 where the Fabric Operations Console fails to start due to a CouchDB connection error (ECONNREFUSED).

Changes

  • Explicit Connection String: Added connectionString to the IBPConsole resource. This ensures the console uses pre-defined credentials (admin:password) immediately upon startup, eliminating the race condition with the operator's automatic credential generation.
  • CouchDB Storage: Added the missing storage.couchdb configuration to the manifest to ensure stable persistent storage for the database sidecar across all Kubernetes distributions.

Benefit

These changes ensure that just console reliably reaches the Ready state without getting stuck or failing to connect to its internal database.

Fixes: #1179

Addresses issue hyperledger#1233. Adds a new README.md for the sample and updates the root README.md to include asset history and TypeScript support.

Signed-off-by: SurbhiAgarwal1 <agarwalsurbhi1807@gmail.com>
@SurbhiAgarwal1
SurbhiAgarwal1 requested a review from a team as a code owner April 14, 2026 16:14
…to console

Signed-off-by: SurbhiAgarwal1 <agarwalsurbhi1807@gmail.com>
@SurbhiAgarwal1
SurbhiAgarwal1 force-pushed the fix-1179-console-couchdb-error branch from 26cbc1f to dfbcff3 Compare April 14, 2026 16:17

@bestbeforetoday bestbeforetoday left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution. It seems that most of the automated build workflows did not trigger for this pull request. Perhaps you could amend the last commit — no changes necessary — and force-push to your PR branch to re-trigger the build pipeline.

There are some suggestions for small changes in comment that you might want to make but I am OK to merge this PR as-is once we have a passing build.

./network.sh deployCC -ccn ledger -ccp ../asset-transfer-ledger-queries/chaincode-typescript/ -ccl typescript
```

3. Run the application (from the `asset-transfer-ledger-queries/application-javascript` folder).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to also include the steps to run the Java version of the client application here. The command (from the application-java directory would be:

./gradlew run

```shell
cd application-javascript
npm install
node app.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might consider renaming the run script with the Node applications package.json file to start, which would be consistent with most of the other samples. The command to launch the application would then be:

npm start

@bestbeforetoday

Copy link
Copy Markdown
Member

@SurbhiAgarwal1 In addition to the console CouchDB change, this PR looks to include the commit from PR #1402. The comments I made above actually apply to that commit. You might consider including only the PR for the CouchDB change in this PR rather than both commits. You could achieve that by resetting your local PR branch to the state of the main branch in this repository, then cherry-pick only your commit dfbcff3 to that branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

full stack asset transfer guide, cannot start fabric operations console due to couchdb error

2 participants