Hi Fabrice,

Thanks for the quick response!

> 
> let's try that:
> 
> https://github.com/inverse-inc/packetfence/commit/8830ddb52225d85d1ee36d30e466c764e47bfd17.diff
> 

#/usr/local/pf$ sudo patch -p1 < 
~/8830ddb52225d85d1ee36d30e466c764e47bfd17.diff 
patching file addons/accounting.pl
patching file addons/recovery.pl
patching file lib/pf/CHI.pm
patching file sbin/pfsetvlan

However:

/usr/local/pf$ bin/pfcmd service pfsetvlan start
Subroutine get_logger redefined at /usr/share/perl5/Log/Any/Test.pm line 13.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::Fast : Can't locate 
Test/Deep.pm in @INC (@INC contains: /usr/local/pf/lib /etc/perl 
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl) at /usr/share/perl5/Module/Runtime.pm line 317.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/Base.pm line 7.
Compilation failed in require at (eval 381) line 2.
        ...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/Fast.pm line 8.
Compilation failed in require at (eval 377) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::Base : Attempt to 
reload CHI/Driver/Memcached/t/CHIDriverTests/Base.pm aborted.
Compilation failed in require at (eval 382) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::libmemcached : 
Invalid CODE attribute: Test(shutdown => 2) at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/libmemcached.pm line 20.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/libmemcached.pm line 20.
Compilation failed in require at (eval 383) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
...

Ok, so I installed the (apparantly) missing perl lib:
$ sudo apt-get install libtest-deep-perl

But, still no luck:

#/usr/local/pf$ bin/pfcmd service pfsetvlan restart
Subroutine get_logger redefined at /usr/share/perl5/Log/Any/Test.pm line 13.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::Fast : Base class 
package "Test::Class" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /usr/local/pf/lib 
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl).
 at /usr/share/perl5/CHI/Test/Class.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/CHI/Test/Class.pm line 7.
Compilation failed in require at (eval 387) line 2.
        ...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at /usr/share/perl5/CHI/t/Driver.pm line 17.
Compilation failed in require at (eval 385) line 2.
        ...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/Base.pm line 8.
Compilation failed in require at (eval 381) line 2.
        ...propagated at /usr/share/perl/5.14/base.pm line 93.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/Fast.pm line 8.
Compilation failed in require at (eval 377) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::Base : Attempt to 
reload CHI/Driver/Memcached/t/CHIDriverTests/Base.pm aborted.
Compilation failed in require at (eval 389) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
Couldn't require CHI::Driver::Memcached::t::CHIDriverTests::libmemcached : 
Invalid CODE attribute: Test(shutdown => 2) at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/libmemcached.pm line 20.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CHI/Driver/Memcached/t/CHIDriverTests/libmemcached.pm line 20.
Compilation failed in require at (eval 390) line 2.
 at /usr/share/perl/5.14/Module/Pluggable.pm line 28.
service|command
pfsetvlan|stop

Am I missing an dependency?

Thanks in advance.

Hugo


> 
> 
> Le 2015-06-14 13:28, Hugo Rodenburg a écrit :
>> Hi louis and list,
>>
>>> Hello Experts
>>> I am testing packetfence vlan enforcement with an hp procurve 2524 switch 
>>> and an
>>> ubuntu 12.04 lts desktop version (which is being used as the packetfence 
>>> 5.0.1
>>> server).
>>> I have configured the registration vlan(eth0.2), isolation vlan(eth0.3), and
>>> management vlan(eth0) interfaces.
>>> I have defined my switch in the packetfence server.
>>> on my switch i have vlan1(default vlan),
>>> vlan2(registration),vlan3(isolation),vlan4(macdetection),vlan10(guest).
>>> port-security has been activated on the switch ports
>>> this is the output of my snmptrapd.log when i run the command
>>> # tail -f snmptrapd.log
>>> 2015-04-27|06:24:19|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 2 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:24:30|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 3 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:25:26|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 2 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:25:43|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 3 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:16|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 2 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:18|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 3 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:33|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 2 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:35|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 3 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:38|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 2 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> 2015-04-27|06:26:49|UDP: [192.168.0.1]:161->[192.168.0.2]|192.168.0.1|BEGIN 
>>> TYPE
>>> 3 END TYPE BEGIN SUBTYPE 0 END SUBTYPE BEGIN VARIABLEBINDINGS S
>>> this is the output of my packetfence.log when i run the command
>>> # tail -f packetfence.log
>>> Apr 27 06:42:56 httpd.portal(10766) INFO: modify of non-existent node
>>> 00:11:22:33:44:55 attempted - node added (pf::node::node_modify)
>>> Apr 27 06:42:56 httpd.portal(10766) INFO: Static User-Agent lookup data
>>> initialized (pf::useragent::_init)
>>> Apr 27 06:42:56 httpd.portal(10766) WARN: Unable to perform a Fingerbank 
>>> lookup
>>> for device with MAC address '00:11:22:33:44:55' (pf::fingerbank)
>>> Apr 27 06:42:56 httpd.portal(10766) INFO: [00:11:22:33:44:55] redirected to
>>> authentication page on isolation portal (captiveportal::PacketFence)
>>> Apr 27 07:23:12 pfsetvlan(6) ERROR: Thread 6 terminated abnormally: Deep
>>> recursion on subroutine "CHI::Driver::File__WITH__CHI::Driver::Role::U.
>>> (main::)
>>> Apr 27 07:23:12 pfsetvlan(7) ERROR: Thread 7 terminated abnormally: Deep
>>> recursion on subroutine "CHI::Driver::File__WITH__CHI::Driver::Role::U.
>>> (main::)
>>> Apr 27 07:23:12 pfsetvlan(8) ERROR: Thread 8 terminated abnormally: Deep
>>> recursion on subroutine "CHI::Driver::File__WITH__CHI::Driver::Role::U.
>>> (main::)
>>> in my understanding of the snmptrapd.log, i think packetfence can 
>>> communicate
>>> with the switch
>>> but pfsetvlan error is what i dont understand.
>>> please help me out, i would be very glad if i hear form you sooner.
>> I'm having the same issue. I did a fresh install of packetfence 5.1.0 on 
>> Ubuntu
>> 12.04, instead of upgrading my existing 4.x installation. The setup is using
>> routed networks (previously non-routed), but I don't think this is relevant 
>> for
>> this issue.
>> In an attempt to rule out any configuration issue, i purged the packetfence
>> packages and did a fresh reinstall, with only setting up using the 
>> web-wizard.
>> I'm using an HP Procurve 2600 template (Procurve 2610 switch). After 
>> connecting
>> a device, snmptrap log shows:
>>
>> ==> /usr/local/pf/logs/snmptrapd.log <==
>> 2015-06-14|17:02:54|UDP: [10.12.45.61]:161->[172.29.1.66]|10.12.45.61|BEGIN 
>> TYPE
>> 6 END TYPE BEGIN SUBTYPE .5 END SUBTYPE BEGIN VARIABLEBINDINGS
>> .1.3.6.1.4.1.11.2.14.11.1.7.2.1.4.20 = INTEGER:
>> 12|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.5.20 = INTEGER:
>> 2|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.6.20 = INTEGER:
>> 2|.1.3.6.1.4.1.11.2.14.11.1.7.3.0.20 = STRING:
>> "http://10.12.45.61/cgi/fDetail?index=20";|.1.3.6.1.4.1.11.2.14.11.1.7.2.1.3.20
>> = INTEGER: 2 END VARIABLEBINDINGS
>> 2015-06-14|17:02:54|UDP: [10.12.45.61]:161->[172.29.1.66]|10.12.45.61|BEGIN 
>> TYPE
>> 6 END TYPE BEGIN SUBTYPE .1 END SUBTYPE BEGIN VARIABLEBINDINGS
>> .1.3.6.1.4.1.11.2.14.2.10.2.1.2.1.2 = INTEGER:
>> 1|.1.3.6.1.4.1.11.2.14.2.10.2.1.3.1.2 = INTEGER:
>> 2|.1.3.6.1.4.1.11.2.14.2.10.2.1.4.1.2 = Hex-STRING: D8 D3 85 04 FA 5D
>> |.1.3.6.1.4.1.11.2.14.2.10.2.1.6.1.2 = INTEGER:
>> 1|.1.3.6.1.4.1.11.2.14.2.10.2.1.7.1.2 = INTEGER: 1 END VARIABLEBINDINGS
>>
>>
>> And then packetfence.log shows:
>> ==> /usr/local/pf/logs/packetfence.log <==
>> Jun 14 19:02:58 pfsetvlan(8) ERROR: Thread 8 terminated abnormally: Deep
>> recursion on subroutine
>> "CHI::Driver::File__WITH__CHI::Driver::Role::Universal__AND__pf::Role::CHI::Driver::FileUmask__AND__pf::Role::CHI::Driver::Untaint__AND__CHI::Driver::Role::HasSubcaches::new"
>> at (eval 2047) line 47.
>>   (main::)
>>
>>
>> It doesn't matter if I configure the switch within Packetfence or not, it 
>> just
>> throws the same error.
>> I tried to find out what is going wrong, but I still can't figure it out 
>> (yes,
>> quite frustrating :))
>>
>> Does anyone has any clue? Am I overlooking something? louis, did you figure 
>> this
>> out perhaps?
>>
>> Thanks in advance.
>>
>> Hugo
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> PacketFence-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> PacketFence-users mailing list
> [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