-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heroku-buildpack-php newrelic segfaults? #143
Comments
Nothing obvious except maybe in that new relic seems to be described as run On Mon, Mar 23, 2015 at 9:06 AM, Robin Speekenbrink <
Jeff Lindsay |
Jeff, Haven't been able to get more debug info than this, but you're right that the newrelic agent does launch an extra process which pushes the gathered data to NR itself. But that extra process shouldnt kill the app should it? (and how would Heroku do this if the buildpack is theirs?) thanks! |
I'm experiencing the same problem. This a stack trace I can obtain:
Any hints on this? |
I'm trying to get to the bottom of this, and I've submitted this issue: heroku/heroku-buildpack-php#113 on the heroku-php-buildpack repo. |
I've given up on dokku+NR... The launching of the extra daemon by NR inside the container (since that extra daemon will push the data to NR periodically) crashes the container i just gave up ;) |
Yeah in theory there shouldn't be a problem. I just don't know what it's On Thu, May 21, 2015 at 8:04 AM, Robin Speekenbrink <
Jeff Lindsay |
@fruitl00p I ran into similar problems you are describing. I don't think the new-relic daemon segfaults. I can actually start it manually, when attached to the container with: I am only guessing...
|
seem the logfile gets touched during the build-process as root here? https://github.com/heroku/heroku-buildpack-php/blob/f2b37ffa3aac00ccc6cb11405325298f40904028/bin/util/newrelic.sh#L29 |
It seems on heroku processes run as root (fpm, as well as the new-relic daemon).
it seems dokku runs as root during build and executes the process as non root later on (which is a good thing 👍 ) @progrium how to ensure the new-relic logfile created during build (root-owned) is writable by the new-relic daemon (which is started trough php-fpm - non-root). Should I do a PR against |
have tried |
Has this been added in a pull request? |
You should be using herokuish now if possible, not buildstep. Herokuish should be a bit more compatible with heroku buildpacks. |
I´m using herokuish, so is not a problem only with buildstep, @lenada buildpack works perfect. |
Using the latest version of the official Heroku buildpack for PHP and setting the correct environment settings for New Relic (and thus loading the New Relic extension) the resulting app fails to boot / run. And simply dies with a segfault... ?
Since i assume Heroku to still work with New Relic enabled, i suspect it must be something and was redirected here by my colleagues. Any tips?
to reproduce:
This will deploy without newrelic as can be tested. This works so far ;)
now set the correct config to enable the loading of the newrelic .so (as described here)
Now hitting the php-example will report something like:
In other words: crash!
The text was updated successfully, but these errors were encountered: