ipfs / ipfs/kubo

corehttp/metrics.go: ERROR with more than one RPC API listener

Open
#9,397 1 comment 2 reactions 0 assignees View on GitHub
kind/bug need/triage
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

### Version

```Text
0.17.0-rc1
```

### Config

```json
> ipfs config --json Addresses.API
[
"/ip4/127.0.0.1/tcp/5001",
"/ip6/::1/tcp/5001"
]
```

### Description

```
Daemon is ready
2022-11-10T22:46:26.286Z ERROR core/server corehttp/metrics.go:64 OC default registry ERROR {"error": "cannot register the collector: duplicate metrics collector registration attempted"}
```

A potential fix would be to detect that metrics are already registered, and reuse the existing instance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.