# mongodb problem

**URL:** <https://forums.percona.com/t/mongodb-problem/5175>\
**Category:** PMM 1.x\
**Created:** [October 27, 2016, 6:27am UTC](https://forums.percona.com/t/mongodb-problem/5175 "2016-10-27T06:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scar2yjs](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@scar2yjs](https://forums.percona.com/u/scar2yjs)\
**Post date:** [October 27, 2016, 6:27am UTC](https://forums.percona.com/t/mongodb-problem/5175/1 "2016-10-27T06:27:08Z")

</div>

if i add mongo metrix to pmm-admin , then below error is appeared. how can i fix this?

TokuMX mongo shell v2.0.2-mongodb-2.4.10

goroutine 34 [running]:  
panic(0x74e180, 0xc420012050)  
/usr/local/go1.7.1/src/runtime/panic.go:500 +0x1a1  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod.(\*PreloadStats).Export](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongod.(*PreloadStats).Export)(0x0, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod/metrics.go:363 +0x38  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod.(\*ReplStats).Export](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongod.(*ReplStats).Export)(0xc4201ce1c0, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod/metrics.go:352 +0x90  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod.(\*MetricsStats).Export](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongod.(*MetricsStats).Export)(0xc420195440, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod/metrics.go:435 +0x4c7  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod.(\*ServerStatus).Export](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector/mongod.(*ServerStatus).Export)(0xc4200b4300, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongod/server\_status.go:116 +0x2a7  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector.(\*MongodbCollector).collectMongod](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector.(*MongodbCollector).collectMongod)(0xc4200d7d20, 0xc4201831e0, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongodb\_collector.go:96 +0xd4  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector.(\*MongodbCollector).collectMongodReplSet](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector.(*MongodbCollector).collectMongodReplSet)(0xc4200d7d20, 0xc4201831e0, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongodb\_collector.go:101 +0x49  
[github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector.(\*MongodbCollector).Collect](http://github.com/Percona-Lab/prometheus_mongodb_exporter/collector.(*MongodbCollector).Collect)(0xc4200d7d20, 0xc4200512c0)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/Percona-Lab/prometheus\_mongodb\_exporter/collector/mongodb\_collector.go:71 +0x370  
[github.com/prometheus/client\_golang/prometheus.(\*Registry).Gather.func2](http://github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2)(0xc42019a780, 0xc4200512c0, 0x93db20, 0xc4200d7d20)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/prometheus/client\_golang/prometheus/registry.go:433 +0x63  
created by [github.com/prometheus/client\_golang/prometheus.(\*Registry).Gather](http://github.com/prometheus/client_golang/prometheus.(*Registry).Gather)  
/mnt/workspace/pmm-client-tarball/pmm-client-1.0.5/src/github.com/prometheus/client\_golang/prometheus/registry.go:434 +0x326

### Warning: the exporter is in beta/experimental state and field names are very

### likely to change in the future and features may change or get removed!

### See: [https://github.com/Percona-Lab/prometheus\_mongodb\_exporter](https://github.com/Percona-Lab/prometheus_mongodb_exporter) for updates

mongodb\_exporter version: 1.0.5, git commit hash: 4651d4d535ed6c807606daf6a864338c90e06e35  
Listening on 172.17.0.1:42003  
panic: runtime error: invalid memory address or nil pointer dereference  
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5b9bd8]

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [October 27, 2016, 8:51am UTC](https://forums.percona.com/t/mongodb-problem/5175/2 "2016-10-27T08:51:09Z")

</div>

I have reported this on github for more technical investigation [url][https://github.com/Percona-Lab/prometheus\_mongodb\_exporter/issues/30[/url]](https://github.com/Percona-Lab/prometheus_mongodb_exporter/issues/30%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![weber](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@weber](https://forums.percona.com/u/weber)\
**Post date:** [October 27, 2016, 10:19am UTC](https://forums.percona.com/t/mongodb-problem/5175/3 "2016-10-27T10:19:49Z")

</div>

Looks like this is a very old version of Mongo and has been EOL’d.
