PacketFence - BTS - PacketFence
View Issue Details
0001252PacketFenceweb adminpublic2011-08-24 10:212011-09-21 22:16
psnizek 
obilodeau 
normalminoralways
closedfixed 
2.2.1 
3.0.0 
9560f7b3525029e212a1faa7972ecbe6b7e470b6
0001252: add a pfcmd_pregrammar.pm test in checkup
concerns: pf 2.2.1 tarball.

updating a network record via web admin (pls. see summary) fails with the error shown in Additional Information.
I checked a freshly downloaded 2.2.1 tarball. The file pfcmd_pregrammar.pm is missing.

Bug 0000778 already dealt with this some time ago.
Error: Problems executing 'PFCMD networkconfig edit 192.168.2.0 type="registration", netmask="255.255.255.0", gateway="192.168.2.1", pf_gateway="192.168.2.254", named="enabled", dhcpd="enabled", domain-name="registration.localdomain", dns="192.168.2.1", dhcp_start="192.168.2.10", dhcp_end="192.168.2.200", dhcp_default_lease_time="300", dhcp_max_lease_time="600"'

    /usr/local/pf/lib /usr/lib/perl5/5.10.1/i486-linux-thread-multi /usr/lib/perl5/5.10.1 /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.10.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.1/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.1 /usr/lib/perl5/vendor_perl .) at /usr/local/pf/lib/pf/pfcmd.pm line 454 (0000001)
    Can't locate pf/pfcmd/pfcmd_pregrammar.pm in @INC (@INC contains: /usr/local/pf/lib /usr/lib/perl5/5.10.1/i486-linux-thread-multi /usr/lib/perl5/5.10.1 /usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.10.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.1/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.1 /usr/lib/perl5/vendor_perl .) at /usr/local/pf/lib/pf/pfcmd.pm line 454.
 at /usr/local/pf/lib/pf/pfcmd.pm line 454
    pf::pfcmd::parseWithGrammar('networkconfig edit 192.168.2.0 type="registration", netmask="...') called at /usr/local/pf/lib/pf/pfcmd.pm line 435
    pf::pfcmd::parseCommandLine('networkconfig edit 192.168.2.0 type="registration", netmask="...') called at /usr/local/pf/bin/pfcmd line 152
No tags attached.
Issue History
2011-08-24 10:21psnizekNew Issue
2011-08-24 10:24obilodeauNote Added: 0002152
2011-08-24 10:43psnizekNote Added: 0002153
2011-09-08 15:12obilodeauSummaryweb admin: configuration -> networks -> updating a record fails with missing pfcmd/pfcmd_pregrammar.pm => add a pfcmd_pregrammar.pm test in checkup
2011-09-13 10:36obilodeauStatusnew => assigned
2011-09-13 10:36obilodeauAssigned To => obilodeau
2011-09-13 10:50obilodeaumtn revision => 9560f7b3525029e212a1faa7972ecbe6b7e470b6
2011-09-13 10:50obilodeauNote Added: 0002199
2011-09-13 10:50obilodeauStatusassigned => resolved
2011-09-13 10:50obilodeauFixed in Version => trunk
2011-09-13 10:50obilodeauResolutionopen => fixed
2011-09-21 22:07obilodeauFixed in Versiontrunk => 3.0.0
2011-09-21 22:15obilodeauNote Added: 0002242
2011-09-21 22:16obilodeauStatusresolved => closed

Notes
(0002152)
obilodeau   
2011-08-24 10:24   
You _must_ run installer.pl on every installation. It will generate the pfcmd_pregrammar.pm file. Users of packaged versions get one generated at build time as a fallback if they don't run installer.pl.

I'll keep this issue open to remember adding a test to pf::pfcmd::checkup against it and prevent packetfence from starting.
(0002153)
psnizek   
2011-08-24 10:43   
Thanks for that.
(0002199)
obilodeau   
2011-09-13 10:50   
added the test in pfcmd checkup providing guidance if the file is not there
(0002242)
obilodeau   
2011-09-21 22:15   
fix released in 3.0