Open fsalhab opened 7 months ago
I think that might be the case with a peer trying to connect CouchDB before it's ready. It seems we don't have depends_on
section for peers in our Docker compose template: https://github.com/hyperledger-labs/fablo/blob/main/src/setup-docker/templates/fabric-docker/docker-compose.yaml
There should be something similar to:
<%= peer.address %>:
container_name: <%= peer.address %>
...
<%_ if(peer.db.type==="CouchDb") { _%>
depends_on:
couchdb.<%= peer.name %>.<%= org.domain %>:
condition: service_healthy
<%_ } _%>
networks:
- basic
Would you like to contribute?
I like to contribute to this issue. Please assign me to this issue.
Is this issue resolved?
This PR #443 may close this issue.
The fix should be available in 1.2.1-unstable.0
version of Fablo
Hey, I have a network with 3 orgs and single peer that works perfectly when using LevelDb as option in the
fablo-config.json
file. However, when I change to CouchDb I start having this error:I found a few similar issues but the solutions didn't work for me. I'm running Linux on a VM, but I have enough RAM so this isn't the problem. Also, all containers are running. This is my
docker ps -a
output:I really appreciate any help!
Edit: Sometimes it works correctly when I do
fablo recreate
, but it's really inconsistent. Also, most of the times I dofablo reset
it fails again, so I need to fix this.