Hi Louis,
I've tried this already unfortunately.

I've tried
configreload hard
service packetfence-config restart
service packetfence restart

I've tried removing the violation from the conf file completely, but still the 
same error. I'm presuming that it's a mismatch between the violations in the 
database and the configuration file perhaps?

I really hope this is fixable, and something simple!

Cheers,
Andi
________________________________
From: Louis Munro [[email protected]]
Sent: 22 October 2015 20:15
To: [email protected]
Subject: Re: [PacketFence-users] edited violations.conf outside of GUI - now 
errors

Hi Andy,
Try
# bin/pfcmd configreload hard

--
Louis Munro
[email protected]<mailto:[email protected]>  ::  
www.inverse.ca<http://www.inverse.ca>
+1.514.447.4918 x125  :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 22, 2015, at 12:35 , Morris, Andi 
<[email protected]<mailto:[email protected]>> wrote:

Hi all,
Firstly, sorry for all the mailing list entries recently, it never rains….

Anyway, I created a violation earlier which went well, however since editing it 
on the CLI through violations.conf I can no longer get to certain parts of the 
admin GUI.

Httpd.admin.log shows:
Oct 22 17:20:30 httpd.admin(31004) ERROR: Caught exception in 
pfappserver::Controller::Node->search "/usr/local/pf/conf/violations.conf 
cannot be loaded at /usr/local/pf/lib/pf/config/cached.pm line 362." 
(pfappserver::PacketFence::Controller::Root::end)

Line 362 is (no surprise) the line before my violation entry. I’ve tried 
putting it back to how I think it was before the edit, however I’m still 
getting this after restarting the services.

The entry is:
[1500001]
priority=1
trigger=
actions=trap,log
desc=Sitting in captive portal
enabled=Y
template=portal
auto_enable=N
vlan=macDetection
whitelisted_categories=

Do I need to do something to push this into the database, or is there something 
up with the config? I’m on version 5.0.1 if it matters.

Cheers,
Andi

-------------------------------------
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: [email protected]<mailto:[email protected]>
--------------------------------------

________________________________

[Cardiff Metropolitan University - 150 years of nurturing 
talent]<http://www.cardiffmet.ac.uk/cardiffmet150> 
------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users

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

Reply via email to