Skip to content

permission denied when trying to create a project (perses operator 0.1.1) #168

@aminerachyd

Description

@aminerachyd

Installed Perses operator 0.1.1 on Kubernetes via OperatorHub.
Deployed a single Perses instance via the OKD web GUI:
Image

When logging into Perses and trying to create a project, I get the following error:
Image
This logs a permission error on the container at /etc/perses/storage as it cannot create the projects dir:

time="2025-06-21T13:30:56Z" level=error msg="unexpected error not handle" error="mkdir /etc/perses/storage/projects: permission denied"
time="2025-06-21T13:30:56Z" level=info method=POST status=500 uri=/api/v1/projects

I unfortunately cannot investigate which user the perses container is using as binaries aren't present on the perses container image, however when running a debug pod with another image, it seems that dir is owned by root:

root@perses-sample-0:/# stat /etc/perses/storage
  File: /etc/perses/storage
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 8,96    Inode: 2           Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-06-21 13:36:57.543976085 +0000
Modify: 2025-06-21 13:36:42.283514383 +0000
Change: 2025-06-21 13:36:42.861531871 +0000
 Birth: 2025-06-21 13:30:13.000000000 +0000

That dir is on a PVC, on my cluster it uses longhorn.

Issue bypassed after manually modfying permissions of the mounted dir.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions