# Pmm3.00 /srv is not writable for pmm user

**URL:** <https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037>\
**Category:** PMM 3.x\
**Tags:** pmm\
**Created:** [March 4, 2025, 10:00am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037 "2025-03-04T10:00:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaerring](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/chaerring/32/20365_2.png) [@chaerring](https://forums.percona.com/u/chaerring)\
**Post date:** [March 4, 2025, 10:00am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/1 "2025-03-04T10:00:17Z")

</div>

## Description:

[Detailed description of the issue or question]  
IF pmm3 execution user and pmm2 execution user are different ?  
The following error occurs when running the pmm3 Docker container:

```auto
----------------------------------------------------------------------------------------------------------------------------
FATAL: /srv is not writable for pmm user.
Please make sure that /srv is owned by uid 1000 and gid 1000 and try again.
You can change ownership by running: sudo chown -R 1000:1000 /srv
----------------------------------------------------------------------------------------------------------------------------

```

Therefore I set it like this:

1. Create pmm user with gid, uid 1000
2. Change permissions of /srv to Pmm

However, the same log continues to occur and the container does not start.

## Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]  
This script has been converted to run on rocky8. I ran the script right after that :  
[https://raw.githubusercontent.com/percona/pmm/refs/heads/v3/get-pmm.sh](https://raw.githubusercontent.com/percona/pmm/refs/heads/v3/get-pmm.sh)

## Version:

[Insert the version number of the software]  
PMM 3.0.0 Version

## Logs:

[If applicable, include any relevant log files or error messages]  
This is a My Pmm3 Docker Container Logs :

FATAL: /srv is not writable for pmm user.  
Please make sure that /srv is owned by uid 1000 and gid 1000 and try again.  
You can change ownership by running: sudo chown -R 1000:1000 /srv

## Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]  
So I installed pmm2 container.  
The pmm2 container operates completely normally.  
So, Are the users running pmm2 and pmm3 different?  
I want to hope solves the problem.

---

<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:** [March 4, 2025, 2:26pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/2 "2025-03-04T14:26:35Z")

</div>

Hi, yes, we made PMM 3 rootless for better security.  
Here is our migration guide [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)  
You said that the script was converted to run on rocky8, what exactly was done? Can you share converted script?  
By default our script should be able to migrate to PMM 3 if PMM 2 was installed using easy install script.

---

<div class="post-metadata">

**Author:** ![chaerring](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/chaerring/32/20365_2.png) [@chaerring](https://forums.percona.com/u/chaerring)\
**Post date:** [March 5, 2025, 9:31am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/3 "2025-03-05T09:31:51Z")

</div>

hello, Thanks for your reply.  
I read the migration guide you gave me.  
I was able to successfully install pmm3 and check the dashboard by following the guide’s manual.

I think “Transfer ownership of /srv directory” part worked to me before migration.

Even when I installed pmm3 directly without migrating from pmm2 to pmm3, the following error occurred.:  
FATAL: /srv is not writable for pmm user.  
Please make sure that /srv is owned by uid 1000 and gid 1000 and try again.  
You can change ownership by running: sudo chown -R 1000:1000 /srv

I’m just saying this out of curiosity, but I think the official installation documentation forgot to mention pre-setting the container volume to pmm ownership.  
Of course, I could have missed that part when I was installing as a beginner.

Thanks to your quick response, I was able to solve a problem that had been bothering me for three weeks.  
Thank you so much and I hope you have a happy day.

PS. The script that was modified to run on rocky8 is just a file that was changed through ChatGPT.

---

<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:** [March 6, 2025, 1:48pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/4 "2025-03-06T13:48:35Z")

</div>

> [@chaerring](#):
>
> Even when I installed pmm3 directly without migrating from pmm2 to pmm3, the following error occurred.:

Did it happen when you used easy install script?  
We’ve faced similar error when user mounted host directory as /srv directory, but in our script we use docker volume which wasn’t supposed to lead to that problem. We will investigate what could lead to that behaviour and if you could provide script generated by ChatGPT I would appreciate that as it could be a key in finding the reason.

Thanks for feedback

---

<div class="post-metadata">

**Author:** ![nekki\_r.kamalov](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nekki\_r.kamalov](https://forums.percona.com/u/nekki_r.kamalov)\
**Post date:** [April 24, 2025, 8:45am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/5 "2025-04-24T08:45:23Z")

</div>

> **[Percona Monitoring and Management - Install PMM Server with Podman on Docker...](https://docs.percona.com/percona-monitoring-and-management/3/install-pmm/install-pmm-server/deployment-options/podman/index.html#install)**
>
> This section provides instructions for running PMM Server with Podman based on our Docker image.

flowing this manual encountered same issue

---

<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:** [April 24, 2025, 1:40pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/6 "2025-04-24T13:40:28Z")

</div>

Hi,  
did you mount podman volume or host directory?  
Can you share your host OS?

---

<div class="post-metadata">

**Author:** ![nekki\_r.kamalov](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nekki\_r.kamalov](https://forums.percona.com/u/nekki_r.kamalov)\
**Post date:** [April 24, 2025, 1:44pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/7 "2025-04-24T13:44:15Z")

</div>

that is the problem.  
I results in error.  
podman logs pmm-server returns this errors

---

<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:** [April 24, 2025, 1:55pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/8 "2025-04-24T13:55:19Z")

</div>

You didn’t answer to my questions. Without that I can’t provide any help.

---

<div class="post-metadata">

**Author:** ![nekki\_r.kamalov](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nekki\_r.kamalov](https://forums.percona.com/u/nekki_r.kamalov)\
**Post date:** [April 24, 2025, 2:33pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/9 "2025-04-24T14:33:54Z")

</div>

[Unit]  
Description=pmm-server  
Wants=network-online.target  
After=network-online.target  
After=nss-user-lookup.target nss-lookup.target  
After=time-sync.target  
[Service]  
EnvironmentFile=~/.config/systemd/user/pmm-server.env  
Environment=PMM\_VOLUME\_NAME=%N  
Restart=on-failure  
RestartSec=20  
ExecStart=/usr/bin/podman run   
–volume=${PMM\_VOLUME\_NAME}:/srv  
–rm --replace=true --name %N   
–env-file=~/.config/systemd/user/pmm-server.env   
–net pmm\_default   
–cap-add=net\_admin,net\_raw   
–userns=keep-id:uid=1000,gid=1000   
-p 443:8443/tcp --ulimit=host ${PMM\_IMAGE}  
ExecStop=/usr/bin/podman stop -t 10 %N  
[Install]  
WantedBy=default.target

---

<div class="post-metadata">

**Author:** ![nekki\_r.kamalov](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@nekki\_r.kamalov](https://forums.percona.com/u/nekki_r.kamalov)\
**Post date:** [April 24, 2025, 2:45pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/10 "2025-04-24T14:45:31Z")

</div>

AlmaLinux 9.5 is our standard for now

---

<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:** [April 25, 2025, 9:51am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/11 "2025-04-25T09:51:30Z")

</div>

it’s weird, we will check.

---

<div class="post-metadata">

**Author:** ![sh123](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sh123](https://forums.percona.com/u/sh123)\
**Post date:** [May 16, 2025, 8:54am UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/12 "2025-05-16T08:54:08Z")

</div>

Hi,

I’m facing same issue you’re when I try to install pmm3 directly, with the /srv permission issue. Could you clarify exactly what you done and commands to fix this issue? I had no problem installing pmm2, it’s just pmm3 I get this weird permission issue.

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [June 11, 2025, 1:06pm UTC](https://forums.percona.com/t/pmm3-00-srv-is-not-writable-for-pmm-user/37037/13 "2025-06-11T13:06:42Z")

</div>

I tried to reproduce this in my VM with Alma and everything works.
