Error after package update
-
@Gertjan said in Error after package update:
[24.11-RELEASE][root@pfSense.bhf.tld]/etc: grep -R 'function config_read_file' *
inc/config.lib.inc:function config_read_file(bool $use_backup = false, bool $use_cache = false) {I was able to locate the file config.lib.inc and it seems the function config_read_file is indeed missing somehow?\
On the other hand it seems in most of the errors that is calling the function with the same name from /usr/local/pkg/pfblockerng/pfblockerng.inc:693
e.g. PHP {$errortype}s
PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 693, Message: Uncaught Error: Call to undefined function config_read_file() in /usr/local/pkg/pfblockerng/pfblockerng.inc:693
Stack trace:
#0 /usr/local/pkg/pfblockerng/pfblockerng.inc(826): pfb_global()
#1 /etc/inc/pkg-utils.inc(1088): require_once('/usr/local/pkg/...')
#2 /etc/rc.packages(80): delete_package_xml()
#3 {main}Please also note that I have no problem what soever with pfsense without pfblockerng installed.
If no real solution exist I will start preparing myself for a reinstall...
-
@JHplusUser said in Error after package update:
Call to undefined function config_read_file() in /usr/local/pkg/pfblockerng/pfblockerng
these may help:
https://redmine.pfsense.org/issues/15933
https://forum.netgate.com/topic/195242/pfblockerng-3-2-0_16-causes-gui-crash-with-24-03/Can you double check your update branch is set to 24.11 if that's your pfSense version?
"undefined function" may mean the PHP file containing that function isn't loading fully due to an error condition above that point. We were going with your comment that the file didn't exist on disk.
-
@SteveITS said in Error after package update:
Can you double check your update branch is set to 24.11 if that's your pfSense version?
-
@SteveITS said in Error after package update:
https://redmine.pfsense.org/issues/15933
indeed same problem, unfortunately now simple solution
@SteveITS said in Error after package update:
https://forum.netgate.com/topic/195242/pfblockerng-3-2-0_16-causes-gui-crash-with-24-03/
Solution here seems to be:
"I upgraded to 24.11 RC from command line, and now all is working in GUI again."
but I already run 24.11@SteveITS said in Error after package update:
"undefined function" may mean the PHP file containing that function isn't loading fully due to an error condition above that point. We were going with your comment that the file didn't exist on disk.
Currently I am able to locate the file, but wasn't able to locate the function in it...
-
The function
config_read_file()
was introduced in 24.11. If pfSense actually reports version 24.11, then it's best re-install, install the System Patches package to apply the recommended patches, then restore. -
@Gertjan said in Error after package update:
Insert the USB drive with the pfSense 24.11 firm ware.
This seems to be the right one to download for my netgate 7100, am I wright?
-
@JHplusUser yes.
-
@JHplusUser said in Error after package update:
I was able to locate the file config.lib.inc and it seems the function config_read_file is indeed missing somehow?\
@marcosm said in Error after package update:
The function config_read_file() was introduced in 24.11. If pfSense actually reports version 24.11, then it's best re-install, install the System Patches package to apply the recommended patches, then restore.
The most recent /etc/inc/config.lib.inc isn't there, it's still the 24.03 version.
Consider the system as 'partially' upgraded == not good at all.No option anymore, you have to re install clean.
-
@Gertjan i re-installed pfsense, directly used the old config -> was up and running again in 20 min
after that I could install pfblockerng without a problem.
Thanks for your help (and of others)
noticed two things:
-
indeed the update to 24.11 was not complete -> on the dashboard it still mentioned the older version.
-
now i remain having the same fault as i started off with at the beginning, before updating my pfsense incl packagers.
"An error occurred while uploading the encrypted Netgate pfSense Plus configuration to https://acb.netgate.com/save (Empty reply from server) @ 2025-01-25 17:00:01
An error occurred while uploading the encrypted Netgate pfSense Plus configuration to https://acb.netgate.com/save (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to acb.netgate.com:443 ) @ 2025-01-25 17:00:02"It was this error that made me updating my pfsense as well as all packages leading up to the problems with pfblocker ng.
Any idea how to solve this?
-
-
@JHplusUser Does it still let you rerun the upgrade? I believe itโs possible to do so via command line but an actual reinstall is arguably cleaner.