Skip to content

New Relic warning on container start about a pidfile #1142

@seanhamlin

Description

@seanhamlin

Spotted in the container logs for PHP:

configured lagoon-php.ini
2024-10-22 20:41:38.520 +0000 (41 41) warning: unable to find suitable pidfile location, using none
Waiting for NewRelic Agent to be responsive. (1)
Waiting for NewRelic Agent to be responsive. (2)

Tracing this back in the agent to https://github.com/newrelic/newrelic-php-agent/blob/f30642fd4f51514d4ba507ca643cb8767327b922/agent/php_minit.c#L572 - essentially New Relic cannot write a file to the 4 chosen locations.

Solution options

We could set the pidfile location to be in /tmp in the ini file for NewRelic, e.g.:

newrelic.daemon.pidfile=/tmp/newrelic-daemon.pid

The other option would be to allow write access to one of the folders

mkdir -p /var/log/newrelic/ && fix-permissions /var/log/newrelic/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions