Error after package update
-
@SteveITS said in Error after package update:
What version of pfSense do you have?
currently I run 24.11
problems arose when I first updated tot 24.11 and then updated all the packages as well.thanks for your advice
-
@JHplusUser said in Error after package update:
currently, after de-install i cant find /etc/inc/config.lib.inc;
?
/etc/inc/config.lib.inc isn't a "pfBlockerng" file.
It'a a core pfSense file, as every other file in /etc/inc/
Without it, pfSense won't start. You'll see massive errors on the pfSense console access - the GUI wouldn't be able to start. Etc.@JHplusUser said in Error after package update:
What will reinstalling that do with all the packages en the pfsense version?
That's a non question.
Get a clean 24.11 from TAC.
Install it.Now, if you have 5 second : do nothing .... but one thing : intstall pfBlockerng.
It works - right ?
Then, let the magic happen : import your config.xml.
Your packages will get installed, set up.
One extra reboot afterwards (maybe not needed) and done.@JHplusUser said in Error after package update:
I was hoping to prevent a full re-install
- Check that the pfSense device is powered down.
- Insert the USB drive with the pfSense 24.11 firm ware.
- Connect the "most important interface ... nope, non an a RJ45 .... the console cable ! The one you got with your device.
- Connect with your favorite 'telnet' client (Putty will do just fine, and select the right COM port - The pfSense doc tells you all about how to use the console access)
- Power up your pfSense.
- Flow what happens on the screen.
....
When the install is done, and you are asked to remove the USB drive, remove the drive.
The device will reboot.
pfSense will boot.
Again : the full official steps are documented in the official Netgate Documentation support site.
You should do it anyways one, so you know what to do when there is a plain catastrophe situation, as these are never the good moment to "learn "' stuff.
@JHplusUser said in Error after package update:
would you recommend 24.03 and then the packages?
You can't get 24.03 anymore.
24.11 is what everybody is using these days. -
@Gertjan said in Error after package update:
/etc/inc/config.lib.inc isn't a "pfBlockerng" file.
It'a a core pfSense file, as every other file in /etc/inc/
Without it, pfSense won't start. You'll see massive errors on the pfSense console access - the GUI wouldn't be able to start. EtcI have no such problems; without pfblockerng installed pfsense seems to work fine
problems arrise when i instal pflockerng dev or previous.currently i do find the file config.lib.inc... i would swear I previously couldn't .... but as you said that would have been strange
-
@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.