Re: chaincode invoke is succesful but i can't see database and data into couchdb #fabric-questions


pavon@...
 

Hello, Kumari:

A few things I would like to run by you:

1.  Did you expose Port 5984? In general, CouchDB databases are configured by default to NOT expose that port to the outside world.  If you want to see your data in Futon, you would have to expose the port using port mapping or another method.  For example, if your database is in a Docker container, you would have to expose the port by typing in 

docker run -d -p 5984 f6b23wat5 

...where f6b23... is the container ID for Docker.

2.  In your CLI, when you run 

curl -X GET http://couchdbuser:couchdbpass@....0.1:5984/_all_dbs 

...do you see a list of the default databases and yours you created in JSON format?  Or do you see just the default ones (like replicator and users, for example)?

3.  Did you make yourself an admin in CouchDB by adding your credentials in the local.ini file CouchDB provides upon installation?

 

Just a few things to consider.  Good luck.

Pavon

 

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