Closed twocore closed 2 weeks ago
Hi, I’m using Opnsense 24.7.8 in the same environment, and I’m unable to make any changes to the nginx configuration. The system only returns "Unexpected error, check log for details."
Hi. I can confirm the same issue.
Hi. I am having the same issue here. 24.7.8 and NGINX Plugin 1.34_2. In my case, when trying to create or edit a location. System returning:
"Unexpected error, check log for details."
Log Trace:
`Nov-2024 23:06:17 Etc/GMT-3] Error: Call to undefined method OPNsense\Base\Constraints\NgxBusyBufferConstraint::isEmpty() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NgxBusyBufferConstraint.php:46 Stack trace:
[08-Nov-2024 23:07:04 Etc/GMT-3] Error: Call to undefined method OPNsense\Base\Constraints\NgxBusyBufferConstraint::isEmpty() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NgxBusyBufferConstraint.php:46 Stack trace:
[08-Nov-2024 23:07:38 Etc/GMT-3] Error: Call to undefined method OPNsense\Base\Constraints\NgxBusyBufferConstraint::isEmpty() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NgxBusyBufferConstraint.php:46 Stack trace:
[08-Nov-2024 23:07:43 Etc/GMT-3] Error: Call to undefined method OPNsense\Base\Constraints\NgxBusyBufferConstraint::isEmpty() in /usr/local/opnsense/mvc/app/models/OPNsense/Base/Constraints/NgxBusyBufferConstraint.php:46 Stack trace:
I can confirm the same situation after updating to 24.7.8.
Same issue here.
A reinstall of os-nginx did not resolve the issue.
Appears to be related to a compatibility problem with the Phalcon framework used by OPNsense?
Same issue here. After upgrade it show Unexpected error, check log for details. A reinstall of os-nginx did not resolve the issue.
I guess this is an unfortunate side effect of having custom field types/constraints implemented outside the core. A small refactor/fix was made that probably causes the error. But long story short the plugin code needs to be fixed. I’ll take a look.
Let's try this: 1e23572
# opnsense-patch -c plugins 1e23572
Cheers, Franco
It worked perfectly for me!! thank you so much for this super fast fix
Working great hear also, thanks!!
Works great for me on the too affected instances. That is what i love in open source, fast fixes :+1:
It worked perfectly for me too. Thank you very much
Closing then. Thanks for the feedback and sorry for the hiccup! 😊
Thank you, worked for me too!
opnsense-patch -c plugins 1e23572
+1 @fichtner thanks for the speedy fix
Tested good on two OPNsense appliances 👍
Works perfectly!! Thanks!
Worked for me right now. Didn't even have to restart anything after running the opnsense-patch command.
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
I upgraded my OPNsense from 24.7.7 to 24.7.8 last night. Since then I can no longer save the configuration for existing elements or create new ones (sorry for my english). In the Web GUI i got
Unexpected error, check log for details
.To Reproduce
Try to change e.g. items in "HTTP Server" and click "Save".
Expected behavior
Configuration is saved without any errors.
Relevant log files
Additional context Add any other context about the problem here.
Environment
OPNsense 24.7.8-amd64 FreeBSD 14.1-RELEASE-p6 OpenSSL 3.0.15
Intel(R) Celeron(R) J4125 CPU