Friday 4 December 2015

Upgrading PacketFence 5.4.0 to 5.5.1

In a previous post, I mentioned upgrading PacketFence seemed fairly straightforward.

Once I turned on pfsetvlan, I started getting errors along the lines of:
pfcmd.pl ERROR: Failed to load module pf::Switch::PacketFence: PacketFence (pf::SwitchFactory::getModule)
Dec 04 15:19:34 pfcmd.p ERROR: Can not load perl module for switch 127.0.0.1, type: PacketFence. The type is unknown or the perl module has compilation errors.  (pf::SwitchFactory::__ANON__)
Dec 04 15:19:34 pfcmd.pl  FATAL: Can't call method "new" on an undefined value at /usr/local/pf/lib/pf/SwitchFactory.pm line 165.
 (pf::SwitchFactory::__ANON__)
in /usr/local/pf/logs/packetfence.log -even when I deleted custom switch definitions (i.e. my HP MSM). As it came with pfsetvlan disabled and this error seemed to be specifically related to turning pfsetvlan on, I suspect there may be an issue with it. On the off chance this fixes it, I'm going to do an upgrade.

As usual, you should check the specific upgrade instructions given, and read changelogs, just in case - particularly on a production system...