Skip to content

Access denied when trying to use PHP unix sock #316

Open
@patrick-vlt

Description

I'm trying to use the docker image hipages/php-fpm_exporter with docker-compose.

Which user runs the php-fpm exporter process? I keep seeing this error:

2023-08-25 21:56:59 time="2023-08-25T19:56:59Z" level=error msg="Pool[unix:///socket/fpm/unix.sock]: Access denied.\n"

The permissions for this sock are set to:

/fpm/unix.sock
srw-rw----    1 2002     web              0 Aug 25 19:28 /socket/fpm/unix.sock

I added the root user to the web group, but this didn't solve the problem.

Metadata

Assignees

No one assigned

    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