That's got it!

Louis, I hope you're keeping a tally of all the beers I owe you when I visit 
Canada one day.

Thanks very much as always.

Out of interest, what is the best way of editing the violations.conf file? Is 
it ok to update the file over the cli usually? Do I just need to do a standard 
configreload after editing or do I need to restart the services? The 5.0.1 
admin guide suggests a service restart.

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

Then the file itself might be unreadable.
Check to see if you have a file called conf/violations.conf.example.

If you do, make a copy of the violations.conf and then copy the 
violations.conf.example on top on the problem file.
Then try reloading again.

--
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 15:56 , Morris, Andi 
<[email protected]<mailto:[email protected]>> wrote:

Still no good I'm afraid. All commands ran successfully. The dat files all look 
like they've been recreated, but there's no dat file for the violations.conf

[root@pfence03 pf]# ls -l 
var/cache/configfiles/d/c/+2fusr+2flocal+2fpf+2fconf+2fswitches+2econf.dat
-rw-rw---- 1 root pf 63536 Oct 22 20:48 
var/cache/configfiles/d/c/+2fusr+2flocal+2fpf+2fconf+2fswitches+2econf.dat

[root@pfence03 pf]# ls -l 
var/cache/configfiles/f/1/+2fusr+2flocal+2fpf+2fconf+2fpf-release.dat
-rw-rw---- 1 pf pf 31 Oct 22 20:50 
var/cache/configfiles/f/1/+2fusr+2flocal+2fpf+2fconf+2fpf-release.dat

[root@pfence03 pf]# ls -l 
var/cache/configfiles/4/4/+2fusr+2flocal+2fpf+2fconf+2fpf+2econf.dat
-rw-rw---- 1 root pf 66152 Oct 22 20:49 
var/cache/configfiles/4/4/+2fusr+2flocal+2fpf+2fconf+2fpf+2econf.dat

[root@pfence03 pf]# find var/cache/configfiles var/cache/configfilesdata/
var/cache/configfiles
var/cache/configfiles/4
var/cache/configfiles/4/4
var/cache/configfiles/4/4/+2fusr+2flocal+2fpf+2fconf+2fpf+2econf.dat
var/cache/configfiles/a
var/cache/configfiles/a/8
var/cache/configfiles/a/8/+2fusr+2flocal+2fpf+2fconf+2fauthentication+2econf.dat
var/cache/configfiles/5
var/cache/configfiles/5/3
var/cache/configfiles/f
var/cache/configfiles/f/1
var/cache/configfiles/f/1/+2fusr+2flocal+2fpf+2fconf+2fpf-release.dat
var/cache/configfiles/f/e
var/cache/configfiles/d
var/cache/configfiles/d/4
var/cache/configfiles/d/c
var/cache/configfiles/d/c/+2fusr+2flocal+2fpf+2fconf+2fswitches+2econf.dat
var/cache/configfiles/6
var/cache/configfiles/6/e
var/cache/configfiles/6/e/+2fusr+2flocal+2fpf+2fconf+2fpf+2econf+2edefaults.dat
var/cache/configfiles/6/6
var/cache/configfiles/8
var/cache/configfiles/8/4
var/cache/configfiles/9
var/cache/configfiles/9/e
var/cache/configfilesdata/
var/cache/configfilesdata/a
var/cache/configfilesdata/a/c
var/cache/configfilesdata/a/c/SwitchConfig.dat

________________________________
From: Louis Munro [[email protected]<mailto:[email protected]>]
Sent: 22 October 2015 20:46
To: 
[email protected]<mailto:[email protected]>
Subject: Re: [PacketFence-users] edited violations.conf outside of GUI - now 
errors

Ok, let’s do some housecleaning then.

Stop all services including packetfence-config.
Make sure memcached is stopped.

Then delete the configuration files cache so it must be rebuilt:
# find  var/cache/configfiles var/cache/configfilesdata/  -type f -delete

Then restart all services.

Let me know if that helps.

Regards,
--
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 15:35 , Morris, Andi 
<[email protected]<mailto:[email protected]>> wrote:

I did have that file, I removed it and ran a configreload hard but I still get 
the error. I tried a service restart again, still nothing.

The file no longer exists, so it hasn't been recreated, I'm not sure if it was 
supposed to be.
________________________________
From: Louis Munro [[email protected]<mailto:[email protected]>]
Sent: 22 October 2015 20:29
To: 
[email protected]<mailto:[email protected]>
Subject: Re: [PacketFence-users] edited violations.conf outside of GUI - now 
errors

Then try this:

Do you have a file called 
/usr/local/pf/var/cache/configfiles/d/4/+2fusr+2flocal+2fpf+2fconf+2fviolations+2econf.dat
 on your system?

Delete it and then run the 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 15:19 , Morris, Andi 
<[email protected]<mailto:[email protected]>> wrote:

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!


________________________________

[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]<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