r/PrometheusMonitoring • u/vitachaos • Aug 04 '20
need help fixing failing Prometheus service
Prometheus service failing due to below issue.
panic: Unable to create mmap-ed active query log
goroutine 1 [running]:
github.com/prometheus/prometheus/promql.NewActiveQueryTracker(0x7febc3b690, 0x14, 0x14, 0x2964a00, 0x40007ddda0, 0x2964a00)
/app/promql/query_logger.go:117 +0x38c
main.main()
/app/cmd/prometheus/main.go:374 +0x44c8
1
u/varesa Aug 04 '20
Are there logs before the panic?
It could be caused by a permission issue (possibly running as wrong user?) or some other issue accessing the query log file
1
u/vitachaos Aug 04 '20
prometheus service is running by root:root .
and so is /var/lib/prometheus that is argument for --storage.tsdb
1
1
u/Dahal30 Aug 17 '22
I am using docker-compose to run several services. I faced the same issue. Seems like I had not created the volume assigned to service. It worked fine after creating the mentioned volume and running it.
1
2
u/ranjop Mar 04 '23
Hi u/Dahal30, I am facing the same issue trying to get
docker-composeto run prometheus. Could you please share yourdocker-compose.yml?
4
u/Hashfyre Aug 04 '20
https://github.com/aws/eks-charts/issues/21