Skip to content

Fail to Start Application due to CouchDB #173

@AmaVic

Description

@AmaVic

Hello there,

I am trying to use microfab on a ubuntu server (v.24.04 LTS), and I'm having trouble starting the microfab instance because of a timeout related to CouchDB.

Reproducing the Bug

When I am running the following command:

./microfab start --configFile=./microfab-config.json --logs

With the following content in the microfab-config.json file:

{
    "timeout": "120s",
    "ordering_organization": {
        "name": "SampleOrg"
    },
    "endorsing_organizations":[
        {
            "name": "SampleOrg"
        }
    ],
    "channels":[
        {
            "name": "mychannel",
            "endorsing_organizations":[
                "SampleOrg"
            ]
        }
    ]
}

I am getting the following output:

2024/09/08 10:54:57 Starting microfab container..
2024/09/08 10:54:57 Checking for any image already
2024/09/08 10:54:57 Pulling image ghcr.io/hyperledger-labs/microfab:latest
2024/09/08 10:55:37 Status: Downloaded newer image for ghcr.io/hyperledger-labs/microfab:latest
2024/09/08 10:55:37 Checking if 'microfab' already running
2024/09/08 10:55:38 Container ID c0b8731492251c12ef5089f40767bd23d5a8e072da359db4c8cbbf8918662d50
2024/09/08 10:55:38 Microfab is up and running
[       microfabd] 2024/09/08 08:55:38 Starting Microfab ...
[       microfabd] 2024/09/08 08:55:38 Creating endorsing organization SampleOrg ...
[       microfabd] 2024/09/08 08:55:38 Creating ordering organization SampleOrg ...
[         console] 2024/09/08 08:55:38 Creating new x509 cert '*.127-0-0-1.nip.io'
[         console] 2024/09/08 08:55:38 Creating new x509 cert '*.127-0-0-1.nip.io'
[         console] 2024/09/08 08:55:38 Creating new x509 cert 'SampleOrg CA'
[         console] 2024/09/08 08:55:38 Creating new x509 cert 'SampleOrg CA'
[         console] 2024/09/08 08:55:38 Creating new x509 cert 'SampleOrg Admin'
[         console] 2024/09/08 08:55:38 Creating new x509 cert 'SampleOrg Admin'
[       microfabd] 2024/09/08 08:55:38 Created ordering organization SampleOrg
[       microfabd] 2024/09/08 08:55:38 Created endorsing organization SampleOrg
[       microfabd] 2024/09/08 08:55:38 Waiting for CouchDB to start ...
[       microfabd] 2024/09/08 08:57:38 Failed to start application: timeout whilst waiting for CouchDB to start

With a 2 minutes timeout I assumed it should be enough time for CouchDB to start.

Additional Information

Microfab version: 0.0.19 arm 64
Ubuntu VM version 24.04 LTS
Hosting Machine:

  • MacBook Pro M3 8Gb unified memory

Would someone be able to help me with this?

Thanks already for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions