couchdbhyperledger-fabricfauxton

Cannot connect to http://localhost:5984/_utils


I have successfully created and joined the channel following the session Create & Join Channel of Hyperledger Fabric Tutorials. And I followed the instruction of Using CouchDB to interact with the marbles02 chaincode without error.

However, I cannot navigate to the http://localhost:5984/_utils by the browser to view the state database through the CouchDB web interface.

Do I miss any steps to set my network?


Solution

  • If you inspect the docker-compose-couch.yaml you will find that the ports have been mapped to the host:

      couchdb1:
        container_name: couchdb1
        image: hyperledger/fabric-couchdb
        # Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
        # for example map it to utilize Fauxton User Interface in dev environments.
        ports:
          - "6984:5984"
    

    In this case, the compose file maps the default CouchDB port of 5984 to 6984 on the host. If you want to inspect the CouchDB running in the container started in this example, open http://localhost:6984/_utils/ in your browser.