Hello Frederic,

it's written in the upgrade guide that you have to restart packetfence-config, this step is mandatory since it will take care of the new code/config.

https://github.com/inverse-inc/packetfence/blob/packetfence-6.2.1/UPGRADE.asciidoc

Btw when you change the file directly on the file system then "/usr/local/pf/bin/pfcmd configreload hard" should be ok.

Regards

Fabrice


Le 2016-11-08 à 11:08, Frederic Hermann a écrit :
Hey guys,

I'm back again with my ansible playbook to configure packetfence (on a Debian 8)

We have upgraded to packetfence 6.2.1, and it seems that the command I use to apply changes to network.conf and switches.conf doesn't work anymore.

Currently, after a configuration file change in aPF conf, I use the following commands :

/usr/local/pf/bin/pfcmd configfiles push
service packetfence restart

But now, when doing this, while all packetfence services appear to start correctly, log are full of error for httpd.aaa and httpd.portal services :

Nov 08 16:29:16 httpd.portal(2482) ERROR: [mac:unknown] Caught exception in captiveportal::Controller::Root->setupLanguage "Can't use string ("0") as an ARRAY ref while "strict refs" in use at /usr/local/pf/html/captive-portal/lib/captiveportal/PacketFence/Controller/Root.pm line 211." (captiveportal::PacketFence::Controller::Root::end) Nov 08 16:29:16 httpd.aaa(2343) ERROR: [mac:XX:XX:XX:XX:XX:XX] radius authorize failed with error: Can't call method "match_first" on an undefined value at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 52.
...

The only way we have found to have PF working again is to :
* stop PF : /usr/local/pf/bin/pfcmd service pf stop
:
* stop packetfence-config : service packetfence-config stop
* start packetfence-config : service packetfence-config start
* start PF: /usr/local/pf/bin/pfcmd service pf start

Which seems a bit overkill.

Do you have suggestion, for a proper config reload after changing both network.conf and switches.conf on PF 6.x ?

Cheers,




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to