# PMM Docker, QAN not starting after container restart

**URL:** <https://forums.percona.com/t/pmm-docker-qan-not-starting-after-container-restart/6199>\
**Category:** PMM 1.x\
**Created:** [February 16, 2018, 8:57am UTC](https://forums.percona.com/t/pmm-docker-qan-not-starting-after-container-restart/6199 "2018-02-16T08:57:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acidepl](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@acidepl](https://forums.percona.com/u/acidepl)\
**Post date:** [February 16, 2018, 8:57am UTC](https://forums.percona.com/t/pmm-docker-qan-not-starting-after-container-restart/6199/1 "2018-02-16T08:57:07Z")

</div>

Hello,  
Recently I’ve encountered an issue while deploying PMM on AWS ECS, however this issue will also apply to Docker deployments.  
As per Percona documentation [url][Percona Monitoring and Management](https://www.percona.com/doc/percona-monitoring-and-management/deploy/server/docker.setting-up.html%5B/url%5D) in order to make configuration persistent fallowing path have to be persistent:  
-v /opt/prometheus/data   
-v /opt/consul-data   
-v /var/lib/mysql   
-v /var/lib/grafana \

Looks that currently QAN agent configuration is stored in:  
/usr/local/percona/qan-agent/config  
/usr/local/percona/qan-agent/instance  
Due to that in order to make sure that all agents are up and running after container crash etc. those paths currently have to be set as permanent as well.  
In case that those paths are not persistent, QAN agent is not collecting Query stats from PS resulting with only partial startup of PMM in Docker Container after “crash” etc.

I think that it should be updated in documentation, and/or qan-agent paths modified.

Cheers,  
Robert

---

<div class="post-metadata">

**Author:** ![RoelVandePaar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roelvandepaar/32/16893_2.png) [@RoelVandePaar](https://forums.percona.com/u/RoelVandePaar)\
**Post date:** [February 18, 2018, 1:51pm UTC](https://forums.percona.com/t/pmm-docker-qan-not-starting-after-container-restart/6199/2 "2018-02-18T13:51:37Z")

</div>

Hi Robert, I’ve now logged this as [url][[PMM-2106] [DOC?] [Forum] Permanent/persistent paths - Percona JIRA](https://jira.percona.com/browse/PMM-2106%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [February 20, 2018, 4:19am UTC](https://forums.percona.com/t/pmm-docker-qan-not-starting-after-container-restart/6199/3 "2018-02-20T04:19:08Z")

</div>

[acidepl](https://percona.vanillacommunities.com/profile/x/x/41809) , If there just a question - then our tests are good and everything will work. We use permanent storage to save the configuration and after a restart, the qan configuration will be restored.
