OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: ealbright on July 05, 2024, 05:52:21 PM

Title: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: ealbright on July 05, 2024, 05:52:21 PM
Good morning all.  Can you help point me in the right direction for fixing the following error:

[01-Jul-2024 16:10:03 America/Denver] PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 358617088 bytes) in /usr/local/opnsense/scripts/nginx/tls_ua_fingerprint.php on line 135

I seem to be getting the error almost every 10 minutes.  Restarting the firewall doesn't seem to matter.  I'm pulling the above error from the crash reporter. I've tried looking at the logs in /var/log/nginx and didn't see anything towards that error. I've checked /var/log/dmesg.today, php-fpm.log also. 

I feel like I'm looking in the wrong places.  Do you have any suggestions of appropriate log files to check to help determine the issue behind the error?

**EDIT I just realized I posted this in the 24.7 dev, is it possible to move it the 24.1 forum?

Thank you!
Title: Re: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: Fright on July 07, 2024, 08:33:27 AM
Hi
https://github.com/opnsense/plugins/issues/3854
Title: Re: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: ealbright on July 09, 2024, 12:13:38 AM
Thank you for pointing towards the github report. , I removed the handshakes.json file.
Title: Re: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: franco on July 11, 2024, 08:04:03 AM
I merged the nginx 1.33 PR for 24.1.10 today.


Cheers,
Franco
Title: Re: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: Fright on July 12, 2024, 09:54:10 PM
@franco
thanks again!

@ealbright
there is no "disable handshake logging" checkbox yet in 1.33 (a little busy and didn't have time, sorry)
i will try to add it and make a pr asap (I hope it's a quick-fix)
Title: Re: PHP Fatal Error - nginx/tls_ua-fingerprint.php
Post by: Fright on July 13, 2024, 05:45:17 PM
https://github.com/opnsense/plugins/pull/4092