Problems upgrading from 2.4.5 to 2.5.0
-
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
Message: Uncaught Error: Cannot unset string offsets in /etc/inc/upgrade_config.inc:6361
Some ipsec parameters are getting ironed straight - as there could be some crinkles.
If your not using ipsec, these messages are meaningless and can be ignored.
If you were using ipsec : these messages are meaningless and can be ignored. -
@gertjan
I am not using IPSEC. I don't have any IPSEC setting set. I played with it earlier in the year but didn't use it. I just checked an there are no settings configured for IPSEC.There are other error that showed up. That was at the top.
Any other ideas? Should I post the other errors?
-
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
I am not using IPSEC. I don't have any IPSEC setting set.
That's why you see these messages :
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
Cannot unset string
so, as said, you can neglect them.
And before you ask : I agree, these lines could have been wrapped in a test so they execute when needed, and do not try to 'convert' a config setting that doesn't exist.@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
Should I post the other errors?
I guess we all saw the same (error) messages during upgrade.
-
I attempted the upgrade from 2.4.5 with my backup config restored. I consoled into the APU and was able to watch the process. It looked like the system upgraded completed but I cannot access it via the webgui.
Typically the console starts up withHowever, when the upgrade finished it showed up with:
Any thoughts? If I do a fresh 2.4.5 install and upgrade it to 2.5.0 it works. It seems like problems occur when I try to restore my config.
-
I reboot the device and these are the messages after pfsense logo appears:
Any thoughts?
-
I'm having EXACTLY the same issue.
Upgrade from 2.4.5 to 21.01 (which I believe is the pfSense Plus counterpart to 2.5.0).Same messages about "cannot unset string offsets" and ending with a # prompt, but the firewall doesn't seem to actually come up.
-
It's starting packages...are you uninstalling packages before upgrade as recommended?
-
@steveits
Steve, thanks for the response. I don't understand. Prior to upgrading I am to uninstall all the packages I use? -
@powerextreme YMMV but this worked for me (having a similar issue):
find the line:
unset($ph1ent['reauth_enable'], $ph1ent['rekey_enable'], $ph1ent['margintime'], $ph1ent['over_time']);
in /etc/inc/upgrade_config.inc
and replace with
if (isset($ph1ent['reauth_enable'])) { unset($ph1ent['reauth_enable']); } if (isset($ph1ent['rekey_enable'])) { unset($ph1ent['rekey_enable']); } if (isset($ph1ent['margintime'])) { unset($ph1ent['margintime']); } if (isset($ph1ent['over_time'])) { unset($ph1ent['over_time']); }
PHP isn't my 1st language, or even my 2nd/3rd, so there is undoubtedly a more concise way of doing this, but it got it past the upgrade and working again.
Basically it is now only doing the unset if it is actually necessary for each of those variables.
-
@powerextreme Yes, uninstall packages first. I’m not saying that is the cause of your problems, just that it’s recommended. Packages I’ve used expect this and have a checkbox (default on) to keep settings after an uninstall.
-
@steveits
So I reinstalled 2.4.5 and then restored my config. I see these messages in the console:I got a message saying that if re-installing packages is still taking a few hours then do a 'clear package lock'.
I went to check packages and pfblockerNG and an explanation mark next to it. I removed it. But the package removal screen says "Please wait while the update system initializes" and hangs there.
Seems to be an issue with packages. I can't really remove them...well at least pfblockerNG.
-
@powerextreme not sure about the messages. However did you change to “previous stable version” before installing packages (see my sig).
-
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
So I reinstalled 2.4.5
That insures a clean setup.
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
and then restored my config.
And that is the one that is good for a :
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
I got a message saying that if re-installing packages is still taking a few hours then do a 'clear package lock'.
Normally, it goes much faster then that.
But what about this method :
Before you load your own config, think, and ask yourself : "what packages had I installed ?". If you can't remember, look in your config.xml file : it lists them all.
Now, before doing anything else, install this list manually, one by one. No need to set them up.
When they are all installed, now load you config, and have it reboot.You system comes up, totally ready.
-
I am still having issues getting it to successfully upgrade. I did
-
list fresh install of 2.4.5.
-
Set the 'Settings->Update->Update Settings to Previous Stable Version (2.4.5 Deprecated)
-
Installed my packages (NTOP, pfBlockerNG, Iperf) and restored my config.
[This setup worked once but not subsequent time] -
Upgraded to 2.5.1. It would boot up and then end at the command prompt. The GUI was unavailable.
My second idea was to install a fresh 2.5.1. and then install all those packages before restoring my config.
I did the following:- Set the 'Settings->Update->Update Settings to Previous Stable Version (2.4.5 Deprecated)
- Went to install Ntop and go an error:
"WARNING: Current pkg repository has a new pHP major version. pfSense should be upgraded before installing any new Package"
Could this a cause of my issues with upgrading? Is there a way to remove the references to these packages in my config files so they don't try to install them?
-
-
I also tried a fresh install of 2.5.1 and installed all the packages. It worked fine. But when I restored my config it looks like it came up on the console but I can't access the GUI. The DHCP server isn't up. Packet captures show no responses to DHCP queries. The WAN isn't obtaining an address (via DHCP).
I am really perplexed.
-
@powerextreme One must install packages for the version of pfSense in use. Netgate recommends uninstalling packages before upgrade, then reinstall. Many have an option to save or delete settings when uninstalling. It should work to install fresh and restore your configuration though.
-
@powerextreme Have you tried the changes to /etc/inc/upgrade_config.inc I suggested earlier?
If you are seeing the Fatal error: Uncaught Error message, that may fix it.
I had the same issue and no extra packages, and it fixed it for me. While it could be an issue with a package as well, it certainly looks like the same problem I was having, which had nothing to do with my packages.Simplest way would be to load 2.5.1 without your config (just use the default and get to the point where you can access it from the lan).
download /etc/inc/upgrade_config.inc
from diagnostics -> command line
make your edits locally
upload the changed file from that same page.
run something like:mv /tmp/upgrade_config.inc /etc/inc/
I think when you upload it that will be the path, I know it definitely tells you where it was uploaded once you upload, so if it didn't go into /tmp then you would need to change that command a tiny bit.
-
I tried your fix and it worked! Thanks a lot for that!
I have two more remote pfsense boxes at 2.4.5. Will I have to do the same thing for these two boxes?What did I do wrong? I was told is hold have removed all packages before an upgrade. Does this include point releases? On my own pfsense I have 2.5.0 and its asking to upgrade to 2.5.1. Should I uninstall all my packages for this upgrade?
-
@powerextreme said in Problems upgrading from 2.4.5 to 2.5.0:
removed all packages before an upgrade. Does this include point releases?
I asked this question before a few years ago and got some conflicting answers as I recall. I generally have uninstalled/reinstalled packages, to be safe.
-
I think I've got most problems solved for my setup. First off, I'm not a Linux guy (trying to learn it). I'm not an .XML guy (learned more than I wanted to know). I upgraded to 2.5.1 after a couple of years of pfSense just running flawlessly other than occasional tweaking, so I've forgotten most of what I did when I put it all together. I have about a hundred smart devices, phones, computers, cameras, Unifi infrastructure, and media players. I have them all segregated on 4 VLANs (.10 LAN, .20 Cameras, .30 IoT, .40 Filtered, .50 Unfiltered), and for the most part, everything works. I was terrified when all kinds of issues described above started happening, and I realized I hit "Update" before backing up config or reading up on uninstalling packages. Rebuilding this whole thing would have been monumental (for me).
I ended up getting on a path of resetting to defaults of 2.5.1 instead of installing 2.4.5 again and praying my 2.5.1 config.xml I backed up after upgrading would load properly in 2.4.5. I edited the .XML file and removed everything between <installedpackages> and </installedpackages>, leaving it looking like <installedpackages></installedpackages> and saved it. I reset pfSense to default, plugged directly into it, went through the wizard, and then restored the config.xml. It took a couple of tries to get the .XML right, but it finally restored.
The results are the DHCP list now loads, although a lot slower than before. I still get unable to check for updates on the dashboard, and the System->Update takes forever to open, then fails the check there also. The DHCP leases list does not have any devices in there that have no Hostname, even though I know I've had devices in there before I never identified and couldn't assign them static IPs and type in hostnames (I've been trying to identify on my network lately).
I plugged back into my switch and put everything back to normal to see if it would find and assign DHCP IPs to those unknown devices again. It took a long time to refresh the list, like 2-3 minutes of spinning, None of the devices without hostnames reappeared. That will actually make it easier to figure out what they were now, because they will no longer work. But how do I get pfSense to give them dynamic IPs if it won't assign them without hostnames?
So is this an official bug, or just hits people that didn't upgrade properly and have to muddle through? Thanks for ANY advice (besides backup before upgrading....)