# Problem with PMM - Exit code 70

**URL:** https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042
**Category:** PMM 3.x
**Created:** [May 21, 2025, 3:06pm UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042 "2025-05-21T15:06:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander\_Tachev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alexander_tachev/32/21070_2.png) [@Alexander\_Tachev](https://forums.percona.com/u/Alexander_Tachev)
#### Post date: [May 21, 2025, 3:06pm UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042/1 "2025-05-21T15:06:30Z")

</div>

Hello, I have a very weird problem with PMM. The Clickhouse inside restarts continuously with exit code 70. It is deployed in Kubernetes from Helm Chart version 1.4.0 and App version 3.0.0

The log messages I see are like:

```auto
2025-05-21 15:03:46,213 INFO spawned: 'clickhouse' with pid 656566
2025-05-21 15:03:47,395 INFO success: clickhouse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2025-05-21 15:03:47,463 INFO exited: clickhouse (exit status 70; not expected)

```

Please, advise on what could be wrong.  
Thank you in advance.

---

<div class="post-metadata">

### Author: ![Agustin\_G](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/agustin_g/32/14111_2.png) [@Agustin\_G](https://forums.percona.com/u/Agustin_G)
#### Post date: [May 22, 2025, 12:26am UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042/2 "2025-05-22T00:26:55Z")

</div>

Hi @Alexander_Tachev,

You can find the actual ClickHouse logs under (inside the pmm server pod):

```auto
/srv/logs/

```

You can also get logs via:

```auto
https://address-of-your-pmm-server/logs.zip

```

---

<div class="post-metadata">

### Author: ![Alexander\_Tachev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alexander_tachev/32/21070_2.png) [@Alexander\_Tachev](https://forums.percona.com/u/Alexander_Tachev)
#### Post date: [May 22, 2025, 6:51am UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042/3 "2025-05-22T06:51:24Z")

</div>

Huge thanks for your help. The error is:

```auto
2025.05.22 06:44:56.559067 [1245807] {} <Error> Application: filesystem error: in remove_all: Directory not empty ["/srv/clickhouse/store/34a/34a44088-121c-4d8d-846b-5c1ce49e80cd/delete_tmp_202502_10543_10543_0/"]

```

The folders are owned by root and the pmm user is not allowed to remove them. Is there any other command I can execute with it and tell ClickHouse to remove those folders?

---

<div class="post-metadata">

### Author: ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)
#### Post date: [May 22, 2025, 11:08am UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042/4 "2025-05-22T11:08:30Z")

</div>

Did you upgrade from PMM 2? In this case please follow this instruction to change ownership before upgrade [Migrate PMM 2 to PMM 3 - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/3/pmm-upgrade/migrating_from_pmm_2.html#__tabbed_2_3)

---

<div class="post-metadata">

### Author: ![Alexander\_Tachev](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alexander_tachev/32/21070_2.png) [@Alexander\_Tachev](https://forums.percona.com/u/Alexander_Tachev)
#### Post date: [May 23, 2025, 12:36pm UTC](https://forums.percona.com/t/problem-with-pmm-exit-code-70/38042/5 "2025-05-23T12:36:45Z")

</div>

Sincere thanks to both of you ❤
