Skip to content
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

All transactions unknown & 100% error rate post PHP8.1 upgrade (laravel v8) #387

Closed
TheFrankman opened this issue Mar 17, 2022 · 127 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@TheFrankman
Copy link

TheFrankman commented Mar 17, 2022

Update on this issue

The error rate being 100% was actually legitimate and I have resolved it BUT all transactions are still being labelled as unknown.

Description

1 day after switching to the new release all of the transactions are labeled as unknown and the error rate is 100% despite no errors being thrown.

I have opened a forum discussion for this but I have had no response : https://discuss.newrelic.com/t/php-new-relic-completely-broken-after-php-8-1-upgrade/179337

Relevant Logs / Console output

DAEMON STATUS

sudo service newrelic-daemon status
* newrelic-daemon.service - LSB: The New Relic Proxy Daemon
   Loaded: loaded (/etc/init.d/newrelic-daemon; generated)
   Active: active (exited) since Thu 2022-03-10 09:54:58 UTC; 1 weeks 0 days ago
     Docs: man:systemd-sysv-generator(8)
  Process: 17762 ExecStart=/etc/init.d/newrelic-daemon start (code=exited, status=0/SUCCESS)

Mar 10 09:54:58 [hidden] systemd[1]: Starting LSB: The New Relic Proxy Daemon...
Mar 10 09:54:58[hidden] newrelic-daemon[17762]: New Relic Daemon: newrelic-daemon already running
Mar 10 09:54:58 [hidden] systemd[1]: Started LSB: The New Relic Proxy Daemon.

PHP AGENT LOGS

2022-03-14 09:38:20.292 +0000 (18259 18259) warning: daemon connect(fd=16 uds=@newrelic) returned -1 errno=ECONNREFUSED. Failed to connect to the newrelic-daemon. Please make sure that there is a properly configured newrelic-daemon running. For additional assistance, please see: [Starting the PHP daemon (advanced) | New Relic Documentation](https://docs.newrelic.com/docs/apm/agents/php-agent/advanced-installation/starting-php-daemon-advanced/)
2022-03-14 09:39:01.420 +0000 (19119 19119) info: attempt daemon connection via ‘[@newrelic](https://discuss.newrelic.com/u/newrelic)’
2022-03-14 09:39:01.420 +0000 (19119 19119) info: New Relic 9.19.0.309 (“zomp” - “8536ad58490a”) [daemon=’[@newrelic](https://discuss.newrelic.com/u/newrelic)’ php=‘8.1.2’ zts=no sapi=‘cli’ pid=19119 ppid=19108 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os=‘Linux’ rel=‘4.19.0-17-amd64’ mach=‘x86_64’ ver=’#1 SMP Debian 4.19.194-2 (2021-06-21)’ node=‘hidden’]
2022-03-14 09:39:01.488 +0000 (19132 19132) info: attempt daemon connection via ‘[@newrelic](https://discuss.newrelic.com/u/newrelic)’
2022-03-14 09:39:01.488 +0000 (19132 19132) info: New Relic 9.19.0.309 (“zomp” - “8536ad58490a”) [daemon=’[@newrelic](https://discuss.newrelic.com/u/newrelic)’ php=‘8.1.2’ zts=no sapi=‘cli’ pid=19132 ppid=19108 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os=‘Linux’ rel=‘4.19.0-17-amd64’ mach=‘x86_64’ ver=’#1 SMP Debian 4.19.194-2 (2021-06-21)’ node=‘hidden’]
2022-03-14 09:39:01.550 +0000 (19145 19145) info: attempt daemon connection via ‘[@newrelic](https://discuss.newrelic.com/u/newrelic)’
2022-03-14 09:39:01.550 +0000 (19145 19145) info: New Relic 9.19.0.309 (“zomp” - “8536ad58490a”) [daemon=’[@newrelic](https://discuss.newrelic.com/u/newrelic)’ php=‘8.1.2’ zts=no sapi=‘cli’ pid=19145 ppid=19108 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os=‘Linux’ rel=‘4.19.0-17-amd64’ mach=‘x86_64’ ver=’#1 SMP Debian 4.19.194-2 (2021-06-21)’ node=‘hidden’]
2022-03-14 09:52:28.664 +0000 (19209 19209) error: TXNDATA failure: len=8180 errno=EPIPE
2022-03-14 09:52:30.232 +0000 (17106 17106) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:30.997 +0000 (19195 19195) error: TXNDATA failure: len=12332 errno=EPIPE
2022-03-14 09:52:31.026 +0000 (19193 19193) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:31.380 +0000 (19216 19216) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:32.692 +0000 (18355 18355) error: TXNDATA failure: len=11732 errno=EPIPE
2022-03-14 09:52:34.194 +0000 (19214 19214) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:37.828 +0000 (19217 19217) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:38.016 +0000 (19194 19194) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-14 09:52:39.934 +0000 (17863 17863) error: TXNDATA failure: len=12332 errno=EPIPE

Daemon logs from today are empty

Your Environment

Debian GNU/Linux 10 (buster)
PHP 8.1.2
Laravel Framework ^8.34

We are running out of the box newrelic.ini settings and config template

Additional context

image

image

@TheFrankman TheFrankman added the bug Something isn't working label Mar 17, 2022
@zsistla
Copy link
Contributor

zsistla commented Mar 17, 2022

Hi,
Thanks for bringing this to our attention.

There are a couple of things that caught our attention, and we'll need a little more information from you.

  1. This line looks very odd:
    2022-03-14 09:39:01.420 +0000 (19119 19119) info: attempt daemon connection via ‘[@newrelic](https://discuss.newrelic.com/u/newrelic)’
    We'd expect to see something like this:
    2022-03-16 23:45:52.080 +0000 (30413 30413) info: attempt daemon connection via '@newrelic'

This value is set: https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-daemon-port
Can you please let us know what the setting in your newrelic.ini file for newrelic.daemon.address

  1. You also mention We are running out of the box newrelic.ini settings and config template
    Did you also configure the newrelic.cfg file?
    Your log snippet indicates the agent is expecting to automatically start the daemon, but the agent will not automatically start the daemon if it finds a newrelic.cfg file in the /etc/newrelic/ directory. Please verify if this does/does not exist.

  2. please try `ps aux | grep newrelic" and see if the daemon is running. Try terminating all newrelic-daemon processes and restart your web service.

@TheFrankman
Copy link
Author

Hello @zsistla

  1. My ini file does not have newrelic.daemon.address this has remained commented out.
  2. Yes it is configured and un-edited, just a copy of newrelic.cfg.template
  3. The result of ps-aux is
root     20042  0.0  0.0 758968 12660 ?        Sl   Mar14   0:07 /usr/bin/newrelic-daemon -c /etc/newrelic/newrelic.cfg --pidfile /var/run/newrelic-daemon.pid
root     20048  0.1  0.1 986504 28272 ?        Sl   Mar14   8:06 /usr/bin/newrelic-daemon -c /etc/newrelic/newrelic.cfg --pidfile /var/run/newrelic-daemon.pid -no-pidfile

I have not specifically killed the processes, but I have restarted the daemon and apache many times.

@zsistla
Copy link
Contributor

zsistla commented Mar 17, 2022

Hi,

Thanks for the quick response.

From the ps command, we see /usr/bin/newrelic-daemon -c /etc/newrelic/newrelic.cfg --pidfile /var/run/newrelic-daemon.pid that shows the daemon was started with the newrelic.cfg file.

However, your log snippet indicates the agent is expecting to automatically start the daemon, but the agent will not automatically start the daemon if it finds a newrelic.cfg file in the /etc/newrelic/ directory.

Do you need to start the daemon manually for a specific reason? The standard installation for the PHP agent will automatically start the daemon if it detects that it is not running. The license key is configured for the agent in a PHP INI file, and it can be modified on a per-directory or per-virtual host basis. The daemon also is configured via the agent configuration (INI) file.

Because this newrelic.cfg file exists, the agent isn't automatically starting the daemon.

Can you please try to:

  1. remove the newrelic.cfg file
  2. terminate the daemon process
  3. restart your web server

@TheFrankman
Copy link
Author

Hello @zsistla,

Before I do this, since it's a production server. Can you please clarify why this would make a difference ? The New Relic Daemon is running, we can see this from my snippet where I checked the deamon status, and equally from ps aux. We also know that new relic is receiving a connection, there is throughput and transactions they are just confused in some way.

This seems to me to be an issue with new relics interpretation of the application rather than its run status.

Thanks, Frank.

@zsistla
Copy link
Contributor

zsistla commented Mar 17, 2022

Hi Frank,
Ah, got it regarding production server.
The worry about the daemon is that it isn't producing logs. It's possible because of the way are you starting it that there is a permissions conflict with the logs directory.
Let's try a few other things first.

  1. delete newrelic.cfg
  2. terminate newrelic-daemon
  3. initiate some php traffic (can be done via web or CLI)
  4. see if agent automatically restarts daemon

Also, is this a new installation of the PHP Agent?
Was this something that was working prior to upgrading to the latest agent? If so, what was the previous agent version.
We don't have official support for Laravel 8 yet, but if it was working with a prior agent version and isn't now, please let us know.

@TheFrankman
Copy link
Author

TheFrankman commented Mar 17, 2022

It was working with Laravel 8 prior to the fresh installation of the new latest agent. I can't tell you what version it was on before i'm afraid. New Relic had been entirely broken for a couple of months while we were waiting for the extremely late release of PHP8.1 support.

I have followed the above steps. New result of ps aux is as follows :

sharpst+ 25019  0.0  0.1 537772 18604 ?        Sl   16:21   0:00 /usr/bin/newrelic-daemon --agent --logfile /var/log/newrelic/newrelic-daemon.log --port @newrelic --wait-for-port 0s --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true
sharpst+ 25026  0.2  0.1 690520 22076 ?        Sl   16:21   0:00 /usr/bin/newrelic-daemon --agent --logfile /var/log/newrelic/newrelic-daemon.log --port @newrelic --wait-for-port 0s --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true -no-pidfile

I am still seeing an average error rate of 100% and transactions are still all bundled into 'unknown' as name.

Latest logs from newrelic-deamon.log :

2022/03/17 16:21:01.166347 (25013) Info: New Relic daemon version 9.19.0.309-8536ad58490a [listen="@newrelic" startup=agent pid=25013 ppid=25012 uid=1001 euid=1001 gid=1001 egid=1001 runtime="go1.9.7" GOMAXPROCS=4 GOOS=linux GOARCH=amd64]
2022/03/17 16:21:01.236573 (25019) Info: New Relic daemon version 9.19.0.309-8536ad58490a [listen="@newrelic" startup=agent pid=25019 ppid=1 uid=1001 euid=1001 gid=1001 egid=1001 runtime="go1.9.7" GOMAXPROCS=4 GOOS=linux GOARCH=amd64]
2022/03/17 16:21:01.316546 (25026) Info: New Relic daemon version 9.19.0.309-8536ad58490a [listen="@newrelic" startup=agent pid=25026 ppid=25019 uid=1001 euid=1001 gid=1001 egid=1001 runtime="go1.9.7" GOMAXPROCS=4 GOOS=linux GOARCH=amd64]
2022/03/17 16:21:01.316661 (25026) Info: collector configuration is &{CAFile: CAPath: Proxy:}
2022/03/17 16:21:01.316887 (25026) Info: daemon listening on @newrelic
2022/03/17 16:21:04.268076 (25026) Info: Reporting to: https://rpm.eu.newrelic.com/accounts/2554422/applications/hidden-for-security
2022/03/17 16:21:04.268657 (25026) Info: app 'hidden for security' connected with run id 'hidden for security'

Latest lines from php_agent.log

2022-03-17 16:09:01.162 +0000 (24634 24634) info: attempt daemon connection via '@newrelic'
2022-03-17 16:09:01.162 +0000 (24634 24634) info: New Relic 9.19.0.309 ("zomp" - "8536ad58490a") [daemon='@newrelic'  php='8.1.2' zts=no sapi='cli'  pid=24634 ppid=24623 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os='Linux' rel='4.19.0-17-amd64' mach='x86_64' ver='#1 SMP Debian 4.19.194-2 (2021-06-21)' node='hidden-for-security']
2022-03-17 16:09:01.230 +0000 (24648 24648) info: attempt daemon connection via '@newrelic'
2022-03-17 16:09:01.230 +0000 (24648 24648) info: New Relic 9.19.0.309 ("zomp" - "8536ad58490a") [daemon='@newrelic'  php='8.1.2' zts=no sapi='cli'  pid=24648 ppid=24623 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os='Linux' rel='4.19.0-17-amd64' mach='x86_64' ver='#1 SMP Debian 4.19.194-2 (2021-06-21)' node='hidden-for-security']
2022-03-17 16:09:01.294 +0000 (24661 24661) info: attempt daemon connection via '@newrelic'
2022-03-17 16:09:01.294 +0000 (24661 24661) info: New Relic 9.19.0.309 ("zomp" - "8536ad58490a") [daemon='@newrelic'  php='8.1.2' zts=no sapi='cli'  pid=24661 ppid=24623 uid=0 euid=0 gid=0 egid=0 backtrace=yes startup=init os='Linux' rel='4.19.0-17-amd64' mach='x86_64' ver='#1 SMP Debian 4.19.194-2 (2021-06-21)' node='hidden-for-security']
2022-03-17 16:20:48.497 +0000 (24158 24158) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:49.698 +0000 (22637 22637) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:49.933 +0000 (22637 22637) warning: daemon connect(fd=16 uds=@newrelic) returned -1 errno=ECONNREFUSED. Failed to connect to the newrelic-daemon. Please make sure that there is a properly configured newrelic-daemon running. For additional assistance, please see: https://docs.newrelic.com/docs/apm/agents/php-agent/advanced-installation/starting-php-daemon-advanced/
2022-03-17 16:20:50.958 +0000 (24158 24158) warning: daemon connect(fd=16 uds=@newrelic) returned -1 errno=ECONNREFUSED. Failed to connect to the newrelic-daemon. Please make sure that there is a properly configured newrelic-daemon running. For additional assistance, please see: https://docs.newrelic.com/docs/apm/agents/php-agent/advanced-installation/starting-php-daemon-advanced/
2022-03-17 16:20:52.861 +0000 (22205 22205) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:55.409 +0000 (24232 24232) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:56.340 +0000 (24188 24188) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:56.487 +0000 (24779 24779) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:20:58.590 +0000 (24186 24186) error: TXNDATA failure: len=7932 errno=EPIPE
2022-03-17 16:20:59.987 +0000 (22222 22222) error: APPINFO failure: len=6340 errno=EPIPE
2022-03-17 16:21:01.404 +0000 (24045 24045) error: TXNDATA failure: len=11732 errno=EPIPE
2022-03-17 16:21:02.206 +0000 (24187 24187) error: APPINFO failure: len=6340 errno=EPIPE

@mfulb
Copy link
Contributor

mfulb commented Mar 17, 2022

Just to be clear - things were working with a version of Laravel 8 (possibly different than is being used now) and a previous agent version and a previous PHP version? So at least two things have changed (agent version and PHP version)?

@TheFrankman
Copy link
Author

TheFrankman commented Mar 17, 2022

To be abundantly clear

  • We were running Laravel 8.34 on php 8.0 successfully with the previous new relic agent.
  • We upgraded our servers to PHP8.1 and new relic broke because 8.1 was unsupported.
  • We upgraded the new relic agent after the PHP8.1 support release. It worked for a day or two then randomly fell on its face, started bundling all transactions into 'unknown' and reporting a 100% error rate.

The Laravel version has not changed.

@mfulb
Copy link
Contributor

mfulb commented Mar 18, 2022

The log you provided seems to indicate the PHP agent extension which loads into your application was unable to talk to the newrelic-daemon which handles communication with the backend. I think figuring out this problem is going to help us understand what is happening.

Having verbose log output might help - here are some instructions on setting this up. At this point I would recommend opening a case with support so we can track the case better.

@TheFrankman
Copy link
Author

How do i open a case with support - I haven't found a way to do this.

@mfulb
Copy link
Contributor

mfulb commented Mar 18, 2022

Sure I can help - our main portal for support is support.newrelic.com.

@TheFrankman
Copy link
Author

@mfulb - I see no way of raising a support case. Only how to view existing cases. If you click through to i need more support it just redirects you to forums etc. Unfortunately all too typical.

@TheFrankman
Copy link
Author

@mfulb - We have the newrelic.ini config stored in our ansible role, did the ini options change in the php8.1 release ?

@TheFrankman
Copy link
Author

Disregard ^ I found the stub on this repo and it's identical (apart from actual values for license key, and a proper application name)

@eduarguz
Copy link

Any update on this?

We are facing the same problem, also there is a related discussion with no answer

@ghost
Copy link

ghost commented Mar 30, 2022

We're really looking for a sollution on this as NewRelic now basically is unusable and it has been for a while. Can someone maybe try out my statement in #392? That this appears to be Opcache related by disabling opcache?

I understand that that's not something you're able to do on a production environment, but maybe someone has this issue on a non-prod environment.

This knowledge won't fix this bug, but maybe help someone with knowledge fixing things :)

@TheFrankman
Copy link
Author

@mfulb - It's time this was taken by the reins. New Relic is a paid service - We waited patiently for 3 months for PHP8.1 release and now people are still having issues. That means, some people have been paying for a broken product for 4 months at this point.

Have the team at least attempted to spin up NewRelic on PHP8.1 with Laravel installed ? Can you confirm that it works out of the box on a blank Laravel application ?

@TheFrankman
Copy link
Author

TheFrankman commented Mar 30, 2022

I managed to get transaction names working for about 10 minutes, we had two versions of the new-relic.ini file (identical) which was clearly causing some issues, but even with that removed it went back to labelling all transactions as unknown.

I have some verbose error logging. I find the line debug: 'Laravel' naming is 'unknown' intriguing and obviously sending txnname='WebTransaction/Action/unknown' is relevant.

Even with this provided, i'd like confirmation that new relic have an instance of at least laravel 8.x running on php8.1 and can confirm that the agent works on a blank install.

2022-03-30 11:41:11.734 +0000 (20871 20871) verbosedebug: sending transaction message, len=12332
2022-03-30 11:41:11.734 +0000 (20871 20871) verbosedebug: post-deactivate processing done
2022-03-30 11:41:14.634 +0000 (21829 21829) verbosedebug: RINIT processing started
2022-03-30 11:41:14.634 +0000 (21829 21829) debug: 'WT_IS_FILENAME & SCRIPT_FILENAME' naming is '/index.php'
2022-03-30 11:41:14.634 +0000 (21829 21829) verbosedebug: RINIT processing done
2022-03-30 11:41:14.635 +0000 (21829 21829) debug: detected framework = 'Laravel'
2022-03-30 11:41:14.635 +0000 (21829 21829) debug: 'Laravel' naming is 'unknown'
........
........
........
2022-03-30 11:41:14.773 +0000 (21829 21829) verbosedebug: Skipping instrumented function: pid mismatch, got 20693, expected 21829
2022-03-30 11:41:14.776 +0000 (21829 21829) verbosedebug: Skipping instrumented function: pid mismatch, got 20693, expected 21829
2022-03-30 11:41:14.776 +0000 (21829 21829) verbosedebug: Skipping instrumented function: pid mismatch, got 20693, expected 21829
2022-03-30 11:41:14.777 +0000 (21829 21829) verbosedebug: RSHUTDOWN processing started
2022-03-30 11:41:14.777 +0000 (21829 21829) verbosedebug: request_uri='/api/v1/feeds/d33a2a72-73c8-4c30-8a07-e0e5311d9381'
2022-03-30 11:41:14.777 +0000 (21829 21829) verbosedebug: RSHUTDOWN processing done
2022-03-30 11:41:14.777 +0000 (21829 21829) verbosedebug: post-deactivate processing started
2022-03-30 11:41:14.777 +0000 (21829 21829) verbosedebug: /proc/self read: 16809 of 4096-byte pages
2022-03-30 11:41:14.777 +0000 (21829 21829) debug: txn naming freeze
2022-03-30 11:41:14.778 +0000 (21829 21829) verbosedebug: sending txnname='WebTransaction/Action/unknown' agent_run_id=hidden segment_count=308 duration=143351 threshold=2000000 priority=1.923335
2022-03-30 11:41:14.778 +0000 (21829 21829) verbosedebug: sending transaction message, len=12332
2022-03-30 11:41:14.778 +0000 (21829 21829) verbosedebug: post-deactivate processing done

Here are the processes for good measure :

hidden 22348  0.0  0.0 609936 13088 ?        Sl   11:37   0:00 /usr/bin/newrelic-daemon --agent --logfile /var/log/newrelic/newrelic-daemon.log --loglevel debug --port @newrelic --wait-for-port 0s --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true
hidden 22354  0.1  0.1 837984 23364 ?        Sl   11:37   0:02 /usr/bin/newrelic-daemon --agent --logfile /var/log/newrelic/newrelic-daemon.log --loglevel debug --port @newrelic --wait-for-port 0s --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true -no-pidfile

@ghost
Copy link

ghost commented Mar 30, 2022

I'd like to report that our logging looks identical to the logging above. What I did notice were the "Skipping instrumented function" lines. Whenver we have a request that IS working, these line's dont appear.

@TheFrankman
Copy link
Author

@rjp-thijs - Are you by any chance using redis-sentinel ?

@TheFrankman
Copy link
Author

Ok, so confession time, the error rate being 100% was actually the fault of an extension we had for Redis Sentinel that was firing a deprecation on every request, so although the site was fully functional New Relic was registering the error rate as 100%. This was by bad because these errors were not in php errors, or laravels errors so i disregarded them as bogus.

The transactions labelled as 'unknown' however continues to be an issue. Every time i restart apache (and therefore new-relic) it works for a few minutes then transactions go back to being grouped under unknown.

@ghost
Copy link

ghost commented Mar 30, 2022

We're not using redis-sentinel. What you've described above matches our problem. I can't say it has to do with reboots. For us it almost looks "random", but around 90% of the requests ends up "unknown". But as I wrote in the other thread, it happens that the a transaction might end up in unknown, and if the same request happens again it might(!) end up as a named tansaction. More often it will still go to unknown.

As you can see on the screenshot below the route /admin/shipments (aka admin.shipments.index) goes most often to "unknown" but has results as a named entry.
Screenshot from 2022-03-30 19-40-54

@ghost
Copy link

ghost commented Mar 30, 2022

Also one very intresting thing to add (which again makes me more think this is happening due to Opcache). We have two services, the one thats used in nginx and one that monitors all our console commands / terminal. The one that monitores nginx has the problem with naming almost all transactions as unknown and has opcache enabled. The one that monitors console commands doesn't name anything unknown.

@crishoj
Copy link

crishoj commented Mar 30, 2022

The one that monitores nginx has the problem with naming almost all transactions as unknown and has opcache enabled. The one that monitors console commands doesn't name anything unknown.

Exactly what I'm observing as well.

Frankly, New Relic is testing my patience as a paying customer. Might be time to consider other options.

@raulamoretti
Copy link

raulamoretti commented Mar 31, 2022

Hey guys, here we have the same problem.

All transactions are unknown.

Laravel 8 with php 8.1. we use naming in routes api.php

image

@TheFrankman
Copy link
Author

Anyone know how to actually raise a support case ? According to the documentation here : https://docs.newrelic.com/docs/new-relic-solutions/solve-common-issues/find-help-use-support-portal/

You should be able to raise a support ticket, but I don't have a button. Can you see if you have a button and if so create a ticket directing them to this issue. Otherwise it's going to be weeks before we get a solution.

@ghost
Copy link

ghost commented Mar 31, 2022

Sadly the option doesn't seem to be there for us either.

@crishoj
Copy link

crishoj commented Mar 31, 2022

@zsistla could you please raise to the NR team?

@trothwell-carsguide
Copy link

trothwell-carsguide commented Sep 26, 2022

@chris-skilltech while the package does help it doesn't seem to fix error reporting

@adduc
Copy link

adduc commented Sep 26, 2022

@trothwell-carsguide We've been using the following in our app\Exceptions\Handler.php to handle error reporting:

public function register()
{
    $this->reportable(function (Throwable $e) {
        if (function_exists('newrelic_notice_error')) {
            newrelic_notice_error($e);
        }
    });
}

@carltondickson
Copy link

Using the middleware from above that contains newrelic_name_transaction worked but our transaction are coming through as

WebTransaction/Custom/OurAccountName\SearchController@search instead of
WebTransaction/Action/OurAccountName\SearchController@search

So just be aware of that.

Upgrading to New Relic 10 alone didn't fix this for us FYI

@dbaggott
Copy link

dbaggott commented Oct 4, 2022

@ak-war, re:

we are expecting a release sometime in October 2022 that will address this issue.

Any updates on when in October the release will be?

@quickbutik-ronflorax
Copy link

Come on now @ak-war we pay a lot of money for this service which has been useless for months. No updates at all from your end. We deserve a reply that's better than "We don't know, we hope soon".

@sonus21
Copy link

sonus21 commented Oct 20, 2022

Unfortunately, this is even not working on the dev branch. I tried to compile the PHP agent from the source still it fails.

RUN git clone https://github.com/newrelic/newrelic-php-agent.git && cd newrelic-php-agent && git checkout dev &&  \
    make all && make agent-install && cp bin/daemon /usr/local/bin/nr-daemon && make clean && cd .. && rm -rf  newrelic-php-agent

I'm testing newrelic integration with Laravel, drop is the point when I restarted my docker.

Screenshot 2022-10-20 at 10 21 40 PM

@brensneves
Copy link

If this service doesn't work, then why do we pay for it?

@brusin
Copy link

brusin commented Oct 21, 2022

If this service doesn't work, then why do we pay for it?

Tbh, we are planning on moving to Sentry in the next few days (our release_candidate is already using it)

@JohnD87
Copy link

JohnD87 commented Oct 23, 2022

Any update here?
We will be forced to switch to another product in a few weeks if we don't get a solution.

@ak-war
Copy link

ak-war commented Oct 24, 2022

Thank you everyone for your constructive feedback. A release will be made around November 3 that will be fixing this issue.

@EvanRijn
Copy link

@ak-war Is that a final release or a dev release ? Can we test this ?

@ak-war
Copy link

ak-war commented Oct 31, 2022

@EvanRijn It will be an official release, we do not have a dev release.

@EvanRijn
Copy link

EvanRijn commented Nov 2, 2022

@ak-war perfect! is tomorrow still the release day ?

@ak-war
Copy link

ak-war commented Nov 2, 2022

New Relic PHP Agent v10.3.0.315 has been released with the fix: https://github.com/newrelic/newrelic-php-agent/releases.

@nsinisterra
Copy link

Docs referenced on the release notes are not working:

@mfulb
Copy link
Contributor

mfulb commented Nov 3, 2022

@nsinisterra thanks for catching that - links should be correct now.

@nsinisterra
Copy link

Awesome team! I'm able to confirm that this update fix the problem! No other issues for now.

NOTE: For other doing the update right now, we have 4 apps running the APM Agent. In 3 of them, make an apt upgrade was enough, but one of the servers have requested the license key again to update, get your licence key before start the process. Regards!

@harleymckenzie
Copy link

Unfortunately we're still having the same issue on the new agent (10.3.0.315-1). Seeing a lot of messages in the php_agent logs with:

2022-11-04 16:44:10.946 +0000 (10460 10460) warning: User instrumentation from opcache: missing 'scripts' key in status information

@theloveofcode
Copy link

I have confirmed that we've successfully updated the agent using yum info newrelic-php5 and newrelic-daemon -v. However, running Magento 2.4.4-p2, which listed as explicitly compatible with the PHP agent, we are still seeing everything clumped together under index.php in APM Transctions.

Are there any other steps we need to take other than installing the new agent, or is this issue not really fixed?

@EvanRijn
Copy link

EvanRijn commented Nov 7, 2022

nsinisterra

Can you share the installed module list ?

theloveofcode

Can you share the installed module list ?

@theloveofcode
Copy link

I'm a bit unclear. The supported operating systems lists CentOS 6 or higher, but then states CentOS 6 support was dropped. Is CentOS 7 supported?

@harleymckenzie
Copy link

However, running Magento 2.4.4-p2, which listed as explicitly compatible

Our customers are also using Magento 2.4.4 (and up) are also affected, and also the only ones using PHP 8.1. Those using versions under 2.4.4 for Magento and < PHP 8.1 are having no issues.

@tdgroot
Copy link

tdgroot commented Nov 11, 2022

We're also receiving issues about all requests marked as index.php although we're on the latest 10.3.0.315 version. This is with Magento 2.4.x (I believe 2.4.4 and up) and PHP 8.1.

What strikes to me is that prior to the 10.3.0.315 version, we were having issues that transactions were named as either index.php or unknown. After updating to the 10.3.0.315 version, both problems seemed to disappear, but since yesterday we have seen the index.php grouped transactions reappearing again:
image

Please let us know/keep us posted about the status of this problem, as many merchants and developers are preparing their applications to be ready for both black friday and the holiday season in general.

@bduranleau-nr
Copy link
Contributor

@theloveofcode or @tdgroot - Would one of you mind opening a new github issue on the repo so we can track the Magento 2 impact? We'd like to increase visibility on this issue and separate it from this Laravel-specific issue. We believe this and #436 were resolved by the 10.3.0 release.

@bduranleau-nr
Copy link
Contributor

Resolved by 10.3.0 release. Please re-open if the issue re-occurs.

@lavarou lavarou added this to the 10.3.0 milestone Nov 15, 2022
@TheFrankman
Copy link
Author

TheFrankman commented Nov 15, 2022

I upgraded very pessimistically but i am happy to report that at least for the last hour, transactions are now correct labelled and not unknown.

Let's hope that support for PHP8.2 takes less than a year once it's released.

(Laravel V9, New Relic 10.3.0, PHP8.1)

@jonathanribas
Copy link

Hi @tdgroot, hope you doing well.

Are you still experiencing an issue with NR 10.3.0.315 version on Magento 2.4.x (I believe 2.4.4 and up) and PHP 8.1?

Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests