Skip to content

Newrelic not working: PHP Warning: PHP Startup: Unable to load dynamic library #422

@dah0f

Description

@dah0f

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?
v6

What version of the buildpack you are using?
Buildpack version 4.4.12

If you were attempting to accomplish a task, what was it you were attempting to do?

  1. Add NEWRELIC_LICENSE,
  2. Buildpack detecs license and starts downloading the default version of newrelice (newrelic-php5-9.1.0.246-linux.tar.gz)
  3. After installing it tries to load the .so files and fails:
    PHP Warning: PHP Startup: Unable to load dynamic library '/tmp/app/newrelic/agent/x64/newrelic-20190902.so' (tried: /tmp/app/newrelic/agent/x64/newrelic-20190902.so (/tmp/app/newrelic/agent/x64/newrelic-20190902.so: cannot open shared object file: No such file or directory), /tmp/app/php/lib/php/extensions/no-debug-non-zts-20190902//tmp/app/newrelic/agent/x64/newrelic-20190902.so.so (/tmp/app/php/lib/php/extensions/no-debug-non-zts-20190902//tmp/app/newrelic/agent/x64/newrelic-20190902.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I manually download the package and extract it: The file newrelic-20190902.so is not part of the newrelic release

The file is part of the php5-9.14.0.290 release.

What did you expect to happen?
Newrelic is initialised and sending data

What was the actual behavior?

While initialising the buildpack it fails to load newrelic with following error
PHP Warning: PHP Startup: Unable to load dynamic library '/tmp/app/newrelic/agent/x64/newrelic-20190902.so'

Questions:

  • How can i overwrite the default version?

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Metadata

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