Skip to content

[Bug]: duplicate metrics collector registration error after upgrading to oracle release #938

@kaustubhkapatral

Description

@kaustubhkapatral

What went wrong?

After upgrading to oracle release binary, the following error is reported every time after a node is restarted.

Nov 08 15:41:55 validator1-eu-devnet cosmovisor[3038267]: 3:41PM INF running app args=["start"] module=cosmovisor path=/home/cheqd/.cheqdnode/cosmovisor/upgrades/v4-feature/bin/cheqd-nod
ed
Nov 08 15:42:13 validator1-eu-devnet cosmovisor[3059562]: {"level":"error","module":"server","err":"duplicate metrics collector registration attempted","time":"2025-11-08T15:42:13Z","mes
sage":"Error starting Oracle Keeper price feeder"}

It doesn't affect the operation of the price feeder but it doesn't emit prometheus metrics related to the price feeder.

It's possible that the duplicate registration happens here:

metrics, err := telemetry.New(telemetryCfg)
when telemetry.New() is called whenever price feeder is started.

How can we reproduce this bug?

1.Start a devnet using v4.1.5 binaries and submit software upgrade proposal to upgrade to v4-feature handler
2. Upgrade devnet to v4.2.0-develop.2
3. Restart node after software upgrade.

Environment

Not applicable

Bug prevalence

No response

Which browser/client application did you encounter the bug in? (if applicable)

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions