# Metricbeat couchdb module crash with CouchDB 3.x

**URL:** https://discuss.elastic.co/t/metricbeat-couchdb-module-crash-with-couchdb-3-x/247789
**Category:** Beats
**Tags:** beats-module, metricbeat
**Created:** [September 7, 2020, 4:34pm UTC](https://discuss.elastic.co/t/metricbeat-couchdb-module-crash-with-couchdb-3-x/247789 "2020-09-07T16:34:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vmwiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vmwiz/32/75227_2.png) [@vmwiz](https://discuss.elastic.co/u/vmwiz)
#### Post date: [September 7, 2020, 4:34pm UTC](https://discuss.elastic.co/t/metricbeat-couchdb-module-crash-with-couchdb-3-x/247789/1 "2020-09-07T16:34:49Z")

</div>

The metricbeat module for CouchDB crash when targetting CouchDB 3.1

**Metricbeat version** : 7.8.1  
**CouchDB version** : 3.1.0 (6 nodes cluster)  
**OS** : RedHat 7.8

```
# /etc/metricbeat/modules.d/couchdb.yaml
- module: couchdb
  metricsets ["server"]
  period: 10s
  hosts: ["localhost:5984/_node/_local/_stats"]
  username: admin
  password: ******

```

Starting metricbeat `metricbeat -e` shows:

```auto
ERROR runtime/panic.go:199 recovered from panic while fetching 'couchdb/server' for host 'localhost:5984'. Recovering, but please report this.
{ 
  "panic": "runtime error: invalid memory address or nil pointer dereference",
  "stack": "
    github.com/elastic/beats/v7/libbeat/logp.Recover
      /go/src/github.com/elastic/beats/libbeat/logp/global.go:101
    runtime.gopanic
      /usr/local/go/src/runtime/panic.go:679
    runtime.panicmem
      /usr/local/go/src/runtime/panic.go:199
    runtime.sigpanic
      /usr/local/go/src/runtime/signal_unix.go:394
    github.com/elastic/beats/v7/metricbeat/module/couchdb/server.(*MetricSet).Fetch
      /go/src/github.com/elastic/beats/metricbeat/module/couchdb/server/server.go:101
    github.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).fetch
      /go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:256
    github.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).startPeriodicFetching
      /go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:224
    github.com/elastic/beats/v7/metricbeat/mb/module.(*metricSetWrapper).run
      /go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:208
    github.com/elastic/beats/v7/metricbeat/mb/module.(*Wrapper).Start.func1
      /go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:147
"}

```

---

<div class="post-metadata">

### Author: ![marcelo.noga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcelo.noga/32/48133_2.png) [@marcelo.noga](https://discuss.elastic.co/u/marcelo.noga)
#### Post date: [September 23, 2020, 9:41am UTC](https://discuss.elastic.co/t/metricbeat-couchdb-module-crash-with-couchdb-3-x/247789/2 "2020-09-23T09:41:30Z")

</div>

I'm having the exact same issue with CouchDb 3.1.0 and Metricbeat 7.9.1.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 21, 2020, 11:41am UTC](https://discuss.elastic.co/t/metricbeat-couchdb-module-crash-with-couchdb-3-x/247789/3 "2020-10-21T11:41:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
