inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.3k stars 276 forks source link

PacketFence do not start after upgrade #2325

Closed LeGuerg closed 7 years ago

LeGuerg commented 7 years ago

Hello,

I meet an issue with PacketFence on a Debian 8 after an apt-get upgrade today. PF failed to start, here is the log from terminal:

# service packetfence start
# Job for packetfence.service failed. See 'systemctl status packetfence.service' and 'journalctl -xn' for details.
# systemctl -l status packetfence.service
● packetfence.service - PacketFence Service
   Loaded: loaded (/lib/systemd/system/packetfence.service; enabled)
   Active: failed (Result: timeout) since mar. 2017-05-16 16:31:24 CEST; 19min ago
  Process: 2653 ExecStop=/usr/local/pf/bin/pfcmd service pf stop (code=killed, signal=TERM)
  Process: 7731 ExecStart=/usr/local/pf/bin/pfcmd service pf start (code=killed, signal=TERM)

mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.34304] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.4436] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.54417] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.64486] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.74557] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.84617] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:23 SRV-WIFI pfcmd[7731]: [1494945083.94669] Failed to connect to config service for namespace interfaces::management_network, retrying
mai 16 16:31:24 SRV-WIFI systemd[1]: packetfence.service start operation timed out. Terminating.
mai 16 16:31:24 SRV-WIFI systemd[1]: Failed to start PacketFence Service.
mai 16 16:31:24 SRV-WIFI systemd[1]: Unit packetfence.service entered failed state.
# journalctl -xn
-- Logs begin at mar. 2017-05-16 13:21:15 CEST, end at mar. 2017-05-16 16:51:53 
mai 16 16:50:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:50:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:23 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:23 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:23 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:23 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)
mai 16 16:51:53 SRV-WIFI snmpd[831]: error on subcontainer 'ia_addr' insert (-1)

May you have any clues about this issue ? I tried several actions found randomly on Google, with no luck :-( Thanks a lot everyone;

fdurand commented 7 years ago

Hello, it's related to libc6 and lasso.so. Try that: mv /usr/local/pf/lib/pf/Authentication/SourceSAMLSource.pm /usr/local/pf/lib/pf/Authentication/SourceSAMLSource.pm.bak

mv html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/SAML.pm html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/SAML.pm.bak

LeGuerg commented 7 years ago
root@SRV-WIFI:/usr/local/pf# mv /usr/local/pf/lib/pf/Authentication/Source/SAMLSource.pm /usr/local/pf/lib/pf/Authentication/Source/SAMLSource.pm.BAK

root@SRV-WIFI:/usr/local/pf# mv html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/SAML.pm html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/SAML.pm.BAK

root@SRV-WIFI:/usr/local/pf# service packetfence start
Job for packetfence.service failed. See 'systemctl status packetfence.service' and 'journalctl -xn' for details.

Sorry, I get the same error.

fdurand commented 7 years ago

Ok can you post the log (packetfence.log, httpd.admin*) on the mailling list ?

LeGuerg commented 7 years ago

Here is the /usr/local/pf/logs/packetfence.log

May 16 17:58:07 pfcmd.pl(8218) ERROR: [1494950287.94418] Failed to connect to config service for namespace resource::URI_Filters, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:08 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::httpd_proxy : Cannot connect to service pfconfig! at /usr/local/pf/lib/pfconfig/cached.pm line 203.
Compilation failed in require at /usr/local/pf/lib/pf/services/manager/httpd.pm line 35.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/services/manager/httpd.pm line 35.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317.
Compilation failed in require at (eval 716) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:58:08 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::httpd_parking : Attempt to reload pf/services/manager/httpd.pm aborted.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317.
Compilation failed in require at (eval 732) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.17549] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.2761] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.37661] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.47708] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.57753] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.67799] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.77845] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.87894] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:09 pfcmd.pl(8218) ERROR: [1494950289.97949] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.07998] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.18046] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.28093] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.38141] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.48191] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.58241] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.68289] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.7834] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.88391] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:10 pfcmd.pl(8218) ERROR: [1494950290.98437] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.08485] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.18537] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.28584] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.38631] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.48677] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:58:11 pfcmd.pl(8218) ERROR: [1494950291.58735] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)

...

May 16 17:59:05 pfcmd.pl(8218) ERROR: [1494950345.55778] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:05 pfcmd.pl(8218) ERROR: [1494950345.65822] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:05 pfcmd.pl(8218) ERROR: [1494950345.7587] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:05 pfcmd.pl(8218) ERROR: [1494950345.85918] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:05 pfcmd.pl(8218) ERROR: [1494950345.95963] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.0603] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.16104] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.26161] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.36221] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.46285] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.56333] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.66385] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.76437] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.86485] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:06 pfcmd.pl(8218) ERROR: [1494950346.96531] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.06581] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.16628] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.2669] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.36755] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.46802] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.56855] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.66912] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.7697] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.87068] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:07 pfcmd.pl(8218) ERROR: [1494950347.97161] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.07255] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.17341] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.27428] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.37523] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.47619] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.57704] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.67795] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.77887] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.87975] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:08 pfcmd.pl(8218) ERROR: [1494950348.9807] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.08197] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.1839] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.28534] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.38677] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.48809] Failed to connect to config service for namespace resource::switches_group, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) WARN: Couldn't require pf::provisioner::opswat : Cannot connect to service pfconfig! at /usr/local/pf/lib/pfconfig/cached.pm line 203.
Compilation failed in require at /usr/local/pf/lib/pf/accounting.pm line 57.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/accounting.pm line 57.
Compilation failed in require at /usr/local/pf/lib/pf/violation.pm line 112.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/violation.pm line 112.
Compilation failed in require at /usr/local/pf/lib/pf/provisioner/opswat.pm line 27.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/provisioner/opswat.pm line 27.
Compilation failed in require at (eval 1279) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:59:09 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::snort : Attempt to reload pf/violation.pm aborted.
Compilation failed in require at /usr/local/pf/lib/pf/scan/wmi.pm line 28.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/scan/wmi.pm line 28.
Compilation failed in require at /usr/local/pf/lib/pf/scan.pm line 39.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/scan.pm line 39.
Compilation failed in require at /usr/local/pf/lib/pf/factory/scan.pm line 21.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/factory/scan.pm line 21.
Compilation failed in require at /usr/local/pf/lib/pf/Portal/Profile.pm line 31.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/Portal/Profile.pm line 31.
Compilation failed in require at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 25.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/Portal/ProfileFactory.pm line 25.
Compilation failed in require at /usr/local/pf/lib/pf/node.pm line 97.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/node.pm line 97.
Compilation failed in require at /usr/local/pf/lib/pf/action.pm line 19.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/action.pm line 19.
Compilation failed in require at /usr/local/pf/lib/pf/class.pm line 36.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/class.pm line 36.
Compilation failed in require at /usr/local/pf/lib/pf/violation_config.pm line 21.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/violation_config.pm line 21.
Compilation failed in require at /usr/local/pf/lib/pf/services/manager/snort.pm line 33.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/services/manager/snort.pm line 33.
Compilation failed in require at (eval 763) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:59:09 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::httpd_webservices : Attempt to reload pf/services/manager/httpd.pm aborted.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1307) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:59:09 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::httpd_graphite : Attempt to reload pf/services/manager/httpd.pm aborted.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317.
Compilation failed in require at (eval 1322) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:59:09 pfcmd.pl(8218) WARN: Couldn't require pf::services::manager::httpd_portal : Attempt to reload pf/web/constants.pm aborted.
Compilation failed in require at /usr/local/pf/lib/pf/services/manager/httpd_portal.pm line 30.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/services/manager/httpd_portal.pm line 30.
Compilation failed in require at (eval 1338) line 2.
 at /usr/share/perl5/Module/Pluggable.pm line 32.
 (Carp::carp)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.69439] Failed to connect to config service for namespace interfaces::management_network, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.79488] Failed to connect to config service for namespace interfaces::management_network, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.8954] Failed to connect to config service for namespace interfaces::management_network, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:09 pfcmd.pl(8218) ERROR: [1494950349.99593] Failed to connect to config service for namespace interfaces::management_network, retrying (pfconfig::cached::_get_from_socket)
May 16 17:59:10 pfcmd.pl(8218) ERROR: [1494950350.09652] Failed to connect to config service for namespace interfaces::management_network, retrying (pfconfig::cached::_get_from_socket)
ocket)
... etc.

And the /usr/local/pf/logs/httpd.admin.error , below:

root@SRV-WIFI:/usr/local/pf/# cat /usr/local/pf/logs/httpd.admin.error
[Tue May 16 11:39:12.400836 2017] [ssl:warn] [pid 1879] AH01909: wifi-umr5280.sca.cnrs.fr:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 16 11:39:28.866072 2017] [ssl:warn] [pid 1888] AH01909: wifi-umr5280.sca.cnrs.fr:443:0 server certificate does NOT include an ID which matches the server name
[Tue May 16 11:39:28.908372 2017] [mpm_prefork:notice] [pid 1888] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_apreq2-20090110/2.8.0 mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Tue May 16 11:39:28.908439 2017] [core:notice] [pid 1888] AH00094: Command line: '/usr/sbin/apache2 -f /usr/local/pf/var/conf/httpd.conf.d/httpd.admin -D debian'
[Tue May 16 12:08:15.661717 2017] [mpm_prefork:notice] [pid 1888] AH00169: caught SIGTERM, shutting down

Note: Packetfence was running nicely before we launched the apt-get upgrade command today. Thx again for your help :-)

fdurand commented 7 years ago

Did you try to restart packetfence-config ?

LeGuerg commented 7 years ago

Hello, yes I did, here is the status (failed):

root@SRV-WIFI:/usr/local/pf/var/conf/httpd.conf.d# service packetfence-config restart
t@SRV-WIFI:/usr/local/pf/var/conf/httpd.conf.d# service packetfence-config status
● packetfence-config.service - PacketFence Config Service
   Loaded: loaded (/lib/systemd/system/packetfence-config.service; enabled)
   Active: failed (Result: start-limit) since mer. 2017-05-17 10:54:14 CEST; 1min 58s ago
  Process: 10637 ExecStart=/usr/local/pf/sbin/pfconfig (code=exited, status=255)
 Main PID: 10637 (code=exited, status=255)

mai 17 10:54:14 SRV-WIFI systemd[1]: Unit packetfence-config.service entere...e.
mai 17 10:54:14 SRV-WIFI systemd[1]: packetfence-config.service holdoff tim...t.
mai 17 10:54:14 SRV-WIFI systemd[1]: Stopping PacketFence Config Service...
mai 17 10:54:14 SRV-WIFI systemd[1]: Starting PacketFence Config Service...
mai 17 10:54:14 SRV-WIFI systemd[1]: packetfence-config.service start reque...t.
mai 17 10:54:14 SRV-WIFI systemd[1]: Failed to start PacketFence Config Service.
mai 17 10:54:14 SRV-WIFI systemd[1]: Unit packetfence-config.service entere...e.
Hint: Some lines were ellipsized, use -l to show in full.
LeGuerg commented 7 years ago

Hi,

Also, I get now a weird message when i run an "apt-get upgrade"

root@SRV-WIFI:/usr/local/pf/var/conf/httpd.conf.d# apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Vous pouvez lancer « apt-get -f install » pour corriger ces problèmes.
Les paquets suivants contiennent des dépendances non satisfaites :
E: Dépendances manquantes. Essayez d'utiliser l'option -f.

Then, " apt-get -f install" gives me this (see below). It seems that the command will remove packetfence package, as well as mysql-server ones. What may be the consequences if I apply a "Y" to the prompt? May I lose all my databases, and PacketFence configurations? Thx for your help :-)

root@SRV-WIFI:/usr/local/pf/var/conf/httpd.conf.d# apt-get -f install
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Correction des dépendances... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  apache2-mpm-prefork arping attr collectd collectd-core collectd-utils conntrack dmeventd dpkg-distribution
  fingerbank freeradius freeradius-common freeradius-config freeradius-ldap freeradius-mysql freeradius-redis
  freeradius-rest freeradius-utils galera-3 golang-1.7-go golang-1.7-src graphite-carbon graphite-web haproxy
  ipset ipvsadm isc-dhcp-server javascript-common keepalived libaio1 libalgorithm-combinatorics-perl
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libaliased-perl libanyevent-perl libapache-dbi-perl
  libapache-htpasswd-perl libapache-logformat-compiler-perl libapache-session-perl libapache-ssllookup-perl
  libapache2-mod-apreq2 libapache2-mod-evasive libapache2-mod-perl2 libapache2-mod-proxy-html
  libapache2-mod-qos libapache2-mod-wsgi libapache2-reload-perl libapache2-request-perl libapparmor1
  libappconfig-perl libapreq2-3 libarchive-zip-perl libasa-perl libasn1-8-heimdal libasync-interrupt-perl
  libauthen-htpasswd-perl libauthen-krb5-simple-perl libauthen-pam-perl libauthen-radius-perl
  libauthen-simple-pam-perl libauthen-simple-perl libb-hooks-endofscope-perl libb-hooks-op-check-perl
  libb-keywords-perl libbareword-filehandles-perl libberkeleydb-perl libbit-vector-perl libboolean-perl
  libbsd-resource-perl libbytes-random-secure-perl libc-ares2 libcache-bdb-perl libcache-cache-perl
  libcache-fastmmap-perl libcapture-tiny-perl libcarp-assert-more-perl libcarp-assert-perl libcarp-clan-perl
  libcarp-perl libcatalyst-action-renderview-perl libcatalyst-action-rest-perl
  libcatalyst-authentication-credential-authen-simple-perl libcatalyst-authentication-credential-http-perl
  libcatalyst-authentication-store-dbix-class-perl libcatalyst-authentication-store-htpasswd-perl
  libcatalyst-component-instancepercontext-perl libcatalyst-controller-formbuilder-perl
  libcatalyst-controller-html-formfu-perl libcatalyst-devel-perl libcatalyst-dispatchtype-regex-perl
  libcatalyst-log-log4perl-perl libcatalyst-model-dbi-perl libcatalyst-model-dbic-schema-perl
  libcatalyst-modules-perl libcatalyst-perl libcatalyst-plugin-authentication-perl
  libcatalyst-plugin-authorization-acl-perl libcatalyst-plugin-authorization-roles-perl
  libcatalyst-plugin-cache-perl libcatalyst-plugin-cache-store-fastmmap-perl
  libcatalyst-plugin-configloader-perl libcatalyst-plugin-i18n-perl libcatalyst-plugin-session-perl
  libcatalyst-plugin-session-state-cookie-perl libcatalyst-plugin-session-store-cache-perl
  libcatalyst-plugin-session-store-dbi-perl libcatalyst-plugin-session-store-dbic-perl
  libcatalyst-plugin-session-store-delegate-perl libcatalyst-plugin-session-store-fastmmap-perl
  libcatalyst-plugin-session-store-file-perl libcatalyst-plugin-stacktrace-perl
  libcatalyst-plugin-static-simple-perl libcatalyst-plugin-subrequest-perl libcatalyst-plugin-unicode-perl
  libcatalyst-view-csv-perl libcatalyst-view-email-perl libcatalyst-view-json-perl libcatalyst-view-mason-perl
  libcatalyst-view-tt-perl libcatalystx-component-traits-perl libcgi-compile-perl libcgi-emulate-psgi-perl
  libcgi-formbuilder-perl libcgi-session-driver-chi-perl libcgi-session-perl
  libcgi-session-serialize-yaml-perl libcgi-simple-perl libcgi-struct-xs-perl libchi-driver-redis-perl
  libchi-memoize-perl libchi-perl libclass-accessor-chained-perl libclass-accessor-grouped-perl
  libclass-c3-adopt-next-perl libclass-c3-componentised-perl libclass-container-perl
  libclass-data-inheritable-perl libclass-factory-util-perl libclass-gomor-perl libclass-inspector-perl
  libclass-load-perl libclass-load-xs-perl libclass-makemethods-perl libclass-method-modifiers-perl
  libclass-mix-perl libclass-singleton-perl libclass-throwable-perl libclass-tiny-perl libclass-unload-perl
  libclass-xsaccessor-perl libclone-perl libclone-pp-perl libcollectdclient1 libconfig-any-perl
  libconfig-general-perl libconfig-inifiles-perl libconfig-tiny-perl libconfuse-common libconfuse0
  libconst-fast-perl libcontext-preserve-perl libconvert-binhex-perl libconvert-nls-date-format-perl
  libcrypt-cbc-perl libcrypt-eksblowfish-perl libcrypt-generatepassword-perl libcrypt-openssl-bignum-perl
  libcrypt-openssl-pkcs10-perl libcrypt-openssl-pkcs12-perl libcrypt-openssl-rsa-perl
  libcrypt-openssl-x509-perl libcrypt-passwdmd5-perl libcrypt-random-seed-perl libcrypt-rc4-perl
  libcrypt-rijndael-perl libcrypt-smbhash-perl libcrypt-smime-perl libdata-clone-perl
  libdata-dumper-concise-perl libdata-messagepack-perl libdata-messagepack-stream-perl libdata-page-perl
  libdata-powerset-perl libdata-serializer-perl libdata-serializer-sereal-perl libdata-structure-util-perl
  libdata-swap-perl libdata-visitor-perl libdate-calc-perl libdate-calc-xs-perl libdate-manip-perl
  libdatetime-format-builder-perl libdatetime-format-dateparse-perl libdatetime-format-mysql-perl
  libdatetime-format-natural-perl libdatetime-format-oracle-perl libdatetime-format-pg-perl
  libdatetime-format-rfc3339-perl libdatetime-format-strptime-perl libdatetime-locale-perl libdatetime-perl
  libdatetime-timezone-perl libdbd-mysql-perl libdbd-sqlite3-perl libdbi-perl libdbi1
  libdbix-class-cursor-cached-perl libdbix-class-perl libdbix-class-schema-loader-perl libdbix-connector-perl
  libdevel-argnames-perl libdevel-caller-perl libdevel-globaldestruction-perl libdevel-hide-perl
  libdevel-lexalias-perl libdevel-partialdump-perl libdevel-stacktrace-ashtml-perl libdevel-stacktrace-perl
  libdevel-symdump-perl libdevmapper-event1.02.1 libdigest-jhash-perl libdigest-md4-perl
  libdigest-perl-md5-perl libdigest-sha1-perl libdist-checkconflicts-perl libdpkg-perl libdumbnet1
  libemail-abstract-perl libemail-address-perl libemail-date-format-perl libemail-messageid-perl
  libemail-mime-contenttype-perl libemail-mime-encodings-perl libemail-mime-perl libemail-sender-perl
  libemail-simple-perl libemail-valid-perl liberror-perl libesmtp6 libev-perl libeval-closure-perl
  libexception-class-perl libexporter-lite-perl libextutils-autoinstall-perl libfcgi-procmanager-perl
  libfile-changenotify-perl libfile-fcntllock-perl libfile-flock-perl libfile-homedir-perl
  libfile-modified-perl libfile-pushd-perl libfile-remove-perl libfile-sharedir-perl
  libfile-sharedir-projectdistdir-perl libfile-slurp-perl libfile-slurp-tiny-perl libfile-tail-perl
  libfile-tempdir-perl libfile-touch-perl libfile-which-perl libfilesys-notify-simple-perl libfreeradius3
  libftdi1 libganglia1 libgd-perl libgetopt-long-descriptive-perl libgraph-perl libgraphviz-perl libguard-perl
  libhash-flatten-perl libhash-merge-perl libhash-moreutils-perl libhash-multivalue-perl libhcrypto4-heimdal
  libhdb9-heimdal libheap-perl libheimbase1-heimdal libhiredis0.10 libhtml-formfu-perl
  libhtml-formhandler-perl libhtml-lint-perl libhtml-mason-perl libhtml-scrubber-perl
  libhtml-tokeparser-simple-perl libhttp-body-perl libhttp-request-ascgi-perl libhttp-server-simple-perl
  libhx509-5-heimdal libimport-into-perl libindirect-perl libio-event-perl libio-handle-util-perl
  libio-interactive-perl libio-interface-perl libio-lockedfile-perl libio-prompt-tiny-perl libio-pty-perl
  libio-sessiondata-perl libio-socket-timeout-perl libio-stringy-perl libipc-run-perl libipc-run3-perl
  libipc-shareable-perl libipc-sharelite-perl libipset3 libiptables-chainmgr-perl libiptables-parse-perl
  libjcode-pm-perl libjemalloc1 libjs-excanvas libjs-jquery libjs-jquery-flot libjs-prototype
  libjs-scriptaculous libjson-any-perl libjson-maybexs-perl libkrb5-26-heimdal liblasso-perl liblasso3
  liblexical-sealrequirehints-perl liblingua-en-findnumber-perl liblingua-en-inflect-number-perl
  liblingua-en-inflect-perl liblingua-en-inflect-phrase-perl liblingua-en-number-isordinal-perl
  liblingua-en-tagger-perl liblingua-en-words2nums-perl liblingua-pt-stemmer-perl liblingua-stem-perl
  liblingua-stem-snowball-da-perl liblinux-distribution-perl liblinux-fd-perl liblinux-inotify2-perl
  liblist-allutils-perl liblist-moreutils-perl libload-perl liblocale-maketext-lexicon-perl
  liblog-any-adapter-log4perl-perl liblog-any-adapter-perl liblog-any-perl liblog-dispatch-config-perl
  liblog-dispatch-configurator-any-perl liblog-dispatch-perl liblog-fast-perl liblog-log4perl-perl
  liblog-trace-perl liblua5.3-0 liblvm2app2.2 liblvm2cmd2.02 liblwp-useragent-determined-perl
  libmail-sendmail-perl libmariadbclient18 libmath-random-isaac-perl libmath-random-isaac-xs-perl
  libmemcached11 libmemoize-expirelru-perl libmime-lite-perl libmime-lite-tt-perl libmime-tools-perl
  libmime-types-perl libmodbus5 libmodule-find-perl libmodule-implementation-perl libmodule-install-perl
  libmodule-refresh-perl libmodule-runtime-conflicts-perl libmodule-runtime-perl libmodule-scandeps-perl
  libmoo-perl libmoose-perl libmoosex-aliases-perl libmoosex-attribute-chained-perl
  libmoosex-emulate-class-accessor-fast-perl libmoosex-getopt-perl libmoosex-markasmethods-perl
  libmoosex-methodattributes-perl libmoosex-nonmoose-perl libmoosex-params-validate-perl
  libmoosex-role-parameterized-perl libmoosex-role-withoverloading-perl libmoosex-semiaffordanceaccessor-perl
  libmoosex-traits-pluggable-perl libmoosex-types-common-perl libmoosex-types-loadableclass-perl
  libmoosex-types-perl libmoox-types-mooselike-numeric-perl libmoox-types-mooselike-perl
  libmultidimensional-perl libmysqlclient18 libnamespace-autoclean-perl libnamespace-clean-perl
  libnet-appliance-session-perl libnet-arp-perl libnet-cisco-mse-rest-perl libnet-cli-interact-perl
  libnet-dns-perl libnet-domain-tld-perl libnet-frame-device-perl libnet-frame-dump-perl
  libnet-frame-layer-icmpv6-perl libnet-frame-layer-ipv6-perl libnet-frame-perl libnet-frame-simple-perl
  libnet-interface-perl libnet-ip-perl libnet-ipv6addr-perl libnet-libdnet-perl libnet-libdnet6-perl
  libnet-nessus-rest-perl libnet-nessus-xmlrpc-perl libnet-netmask-perl libnet-oauth2-perl libnet-pcap-perl
  libnet-radius-perl libnet-rawip-perl libnet-route-perl libnet-snmp-perl libnet-ssh2-perl libnet-syslog-perl
  libnet-telnet-cisco-perl libnet-telnet-perl libnet-wmiclient-perl libnet-write-perl libnet1
  libnetaddr-ip-perl libnetpacket-perl libnetwork-ipv4addr-perl libnuma1 libnumber-format-perl
  libnumber-range-perl libobject-signature-perl libole-storage-lite-perl libopenipmi0 liboping0
  libossp-uuid-perl libossp-uuid16 libow-2.9-8 libowcapi-2.9-8 libpackage-deprecationmanager-perl
  libpackage-stash-perl libpackage-stash-xs-perl libpackage-variant-perl libpadwalker-perl libpar-dist-perl
  libparams-classify-perl libparams-validate-perl libparse-nessus-nbe-perl libparse-recdescent-perl
  libpath-class-perl libpath-finddev-perl libpath-isdev-perl libpath-tiny-perl libperl-critic-perl
  libperl-version-perl libperlio-via-timeout-perl libphp-serialization-perl
  libplack-middleware-fixmissingbodyinredirect-perl libplack-middleware-methodoverride-perl
  libplack-middleware-removeredundantbody-perl libplack-middleware-reverseproxy-perl libplack-perl
  libplack-test-externalserver-perl libpod-coverage-perl libpod-spell-perl libposix-2008-perl
  libposix-strftime-compiler-perl libppi-perl libppix-regexp-perl libppix-utilities-perl libpq5
  libproc-processtable-perl librabbitmq1 librdkafka1 libreadline5 libreadonly-perl libreadonly-xs-perl
  libredis-fast-perl libredis-perl libregexp-assemble-perl libregexp-common-email-address-perl
  libregexp-common-time-perl libroken18-heimdal librole-tiny-perl librose-datetime-perl librose-db-object-perl
  librose-db-perl librose-object-perl librrd4 librrds-perl libsafe-isa-perl libscalar-list-utils-perl
  libscope-guard-perl libscope-upper-perl libsereal-decoder-perl libsereal-encoder-perl libserialport0
  libset-object-perl libsigrok2 libsnmp-perl libsnowball-norwegian-perl libsnowball-swedish-perl
  libsoap-lite-perl libsort-naturally-perl libspreadsheet-parseexcel-perl libspreadsheet-writeexcel-perl
  libsql-abstract-more-perl libsql-abstract-perl libsql-reservedwords-perl libsql-translator-perl
  libstream-buffered-perl libstrictures-perl libstring-camelcase-perl libstring-escape-perl
  libstring-format-perl libstring-rewriteprefix-perl libstring-toidentifier-en-perl
  libsub-exporter-progressive-perl libsub-identify-perl libsub-uplevel-perl libsys-hostname-long-perl
  libtask-weaken-perl libtemplate-autofilter-perl libtemplate-perl libtemplate-provider-encoding-perl
  libtemplate-timer-perl libterm-readkey-perl libterm-readpassword-perl libterm-size-any-perl
  libterm-size-perl-perl libtest-assertions-perl libtest-deep-perl libtest-differences-perl
  libtest-exception-perl libtest-leaktrace-perl libtest-longstring-perl libtest-mockdbi-perl
  libtest-mockobject-perl libtest-perl-critic-perl libtest-pod-coverage-perl libtest-pod-perl
  libtest-sharedfork-perl libtest-tcp-perl libtest-warn-perl libtest-www-mechanize-catalyst-perl
  libtest-www-mechanize-perl libtext-autoformat-perl libtext-csv-perl libtext-csv-xs-perl libtext-diff-perl
  libtext-german-perl libtext-glob-perl libtext-recordparser-perl libtext-reform-perl libtext-simpletable-perl
  libtext-tabulardisplay-perl libthread-conveyor-monitored-perl libthread-conveyor-perl libthread-pool-perl
  libthread-pool-simple-perl libthread-serialize-perl libthread-tie-perl libthrowable-perl libtie-dxhash-perl
  libtie-toobject-perl libtime-clock-perl libtime-duration-parse-perl libtime-duration-perl libtime-out-perl
  libtime-period-perl libtokyotyrant3 libtree-simple-perl libtree-simple-visitorfactory-perl libtry-tiny-perl
  libunicode-map-perl libunicode-utf8-perl libuniversal-can-perl libuniversal-exports-perl
  libuniversal-isa-perl libuniversal-require-perl libupsclient4 liburi-escape-xs-perl liburi-find-perl
  libv8-3.14.5 libvariable-magic-perl libvarnishapi1 libvirt0 libwind0-heimdal libwmiclient1 libwww-curl-perl
  libwww-mechanize-perl libwww-twilio-api-perl libxmlrpc-lite-perl libxmlsec1 libxmlsec1-openssl
  libyaml-libyaml-perl libyaml-perl libyaml-syck-perl libyaml-tiny-perl libzip2 lvm2 mariadb-common
  mariadb-server-core-10.1 mysql-common nodejs openssl-blacklist-extra owfs-common p0f packetfence-config
  packetfence-doc packetfence-golang-daemon packetfence-ntlm-wrapper packetfence-pfcmd-suid
  packetfence-redis-cache perltidy python-characteristic python-django python-django-common
  python-django-tagging python-mysqldb python-pam python-pyasn1-modules python-pyparsing python-serial
  python-service-identity python-simplejson python-sqlparse python-twisted-bin python-twisted-core
  python-whisper redis-server redis-tools rrdtool rsync samba samba-dsdb-modules samba-vfs-modules snmp snmpd
  snmptrapfmt socat sqlite3 sscep sudo tdb-tools vlan winbind wmi-client
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés : 
  freeradius freeradius-ldap freeradius-mysql freeradius-redis freeradius-rest freeradius-utils golang-1.7-go
  golang-1.7-src libcrypt-cbc-perl libcrypt-rijndael-perl libfreeradius3 liblua5.3-0 libmariadbclient18
  libmysqlclient18 mariadb-server-core-10.1 packetfence-doc packetfence-golang-daemon
Paquets suggérés :
  freeradius-postgresql freeradius-krb5 bzr git mercurial subversion
Paquets recommandés :
  g++ gcc libc6-dev pkg-config
Les paquets suivants seront ENLEVÉS :
  mysql-client-5.5 mysql-server mysql-server-5.5 mysql-server-core-5.5 packetfence
Les NOUVEAUX paquets suivants seront installés :
  golang-1.7-go golang-1.7-src libcrypt-cbc-perl libcrypt-rijndael-perl liblua5.3-0 libmariadbclient18
  mariadb-server-core-10.1 packetfence-doc packetfence-golang-daemon
Les paquets suivants seront mis à jour :
  freeradius freeradius-ldap freeradius-mysql freeradius-redis freeradius-rest freeradius-utils libfreeradius3
  libmysqlclient18
8 mis à jour, 9 nouvellement installés, 5 à enlever et 2 non mis à jour.
2 partiellement installés ou enlevés.
Il est nécessaire de prendre 51,2 Mo dans les archives.
Après cette opération, 17,5 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] n
Annulation.
fdurand commented 7 years ago

It looks that it's not really a bug in the code but more a package/installation issue. Since the github bugtracker is for development issues i will close the issue and can we continue on the mailling list (https://lists.sourceforge.net/lists/listinfo/packetfence-users) or on the irc ?

LeGuerg commented 7 years ago

Ok, I just posted a message to the mailing list 'packetfence-users@lists.sourceforge.net'. Thank you again for your precious help :-)

I'm going to follow instructions from this webpage https://github.com/inverse-inc/packetfence/blob/devel/UPGRADE.asciidoc in order to try to restart PF.

fdurand commented 7 years ago

You have to subscribe to the list if you want to receive answer.

LeGuerg commented 7 years ago

Thx, it's done.