PacketFence - BTS - PacketFence
View Issue Details
0000580PacketFencecorepublic2009-02-10 12:192012-02-29 10:57
maikel 
user4 
normalmajoralways
closedno change required 
devel 
 
0000580: Starting PacketFence...Use of uninitialized value in split at /usr/local/pf/lib/pf/config.pm line 179
Looks related to network.conf issue
Use of uninitialized value in pattern match (m//) at /usr/local/pf/bin/pfcmd
        line 1910 (0000001)
    (W uninitialized) An undefined value was used as if it were already
    defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl tells you what operation
    you used the undefined value in. Note, however, that perl optimizes your
    program and the operation displayed in the warning may not necessarily
    appear literally in your program. For example, "that $foo" is
    usually optimized into "that " . $foo, and the warning will refer to
    the concatenation (.) operator, even though there is no . in your
    program.

Uncaught exception from user code:
        incomplete network information for interface eth0 at /usr/lib/perl5/site_perl/5.8.8/Log/Log4perl/Logger.pm line 896
 at /usr/local/pf/bin/pfcmd line 1910
        main::sanity_check('pfdhcplistener', 'pfmon', 'pfdetect', 'httpd', 'snmptrapd', 'pfsetvlan', 'snort') called at /usr/local/pf/bin/pfcmd line 934
        main::service() called at /usr/local/pf/bin/pfcmd line 173
No tags attached.
related to 0000579closed user4 configurator.pl 
Issue History
2009-02-10 12:19maikelNew Issue
2009-02-10 12:25maikelNote Added: 0001087
2009-02-10 12:27user4Statusnew => assigned
2009-02-10 12:27user4Assigned To => user4
2009-02-10 12:27user4Relationship addedrelated to 0000579
2009-02-10 12:28user4Note Added: 0001089
2009-02-10 12:28user4Statusassigned => feedback
2009-02-10 12:29maikelNote Added: 0001090
2009-02-10 12:31user4Statusfeedback => closed
2009-02-10 12:31user4Resolutionopen => no change required
2010-04-15 17:53obilodeauCategory1.8.0 => 1.8.x
2012-02-29 10:57obilodeauCategory1.8.x => core

Notes
(0001087)
maikel   
2009-02-10 12:25   
Actually a wrong generated pf.conf by configurator

For some reason the it doesn't like vlanned interfaces to well. All interfaces are generated correctly, but at the bottom if the file this shows:
[interface eth0]
822=IP of gateway of managed subnet
(0001089)
user4   
2009-02-10 12:28   
According to the code which generates this message, I would say that the issue appears to be in conf/pf.conf ...

      if (!defined $Config{$interface}{'ip'} || !defined $Config{$interface}{'mask'} ||!defined $Config{$interface}{'gateway'}){
          $logger->logdie("incomplete network information for $interface ");
      }

(0001090)
maikel   
2009-02-10 12:29   
It is related to configurator.pl

If i had checked the config before starting pf, it wouldn't have been there. I suggest closing this bug