Skip to content

Crashloop while running as sidecar for initial minutes #46

@sijuu

Description

@sijuu

I am running cosmos-validator-watcher as sidecar with my cosmos node. The cosmos-validator-watcher container crashloops till the node is synced with following error.

11:00PM WRN node http://localhost:26657/ is catching up at block 2688992
11:00PM WRN connected to http://localhost:26657/ (but node is catching up) chainID=athens_7001-1 height=2688992
11:00PM ERR error="no nodes synced"

This causes panic as the container is crashlooping. When a pod restarts, its understandable that it will take some time for the node to be synced. It would be better if cosmos-validator has a while condition check ( as a flag atleast ) which checks for the node to be available and then start the watcher rather than just crashlooping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions