Hi, i'm beeginer with PacketFence and I tried to install the software on a VM
Debian Stretch with VirtualBox
But, I can't access to the web configurator, because the service doesn't work
or doesn't start.
I 'm blocked since last week on this, I tried more than 5 install on differents
computer, but never works.
I have here the result of systemctl status packetfence.service :
● packetfence.service - PacketFence Service
Loaded: loaded (/lib/systemd/system/packetfence.service; disabled; vendor
preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-07-17 14:28:46 CEST; 1min 57s
ago
Process: 4448 ExecStart=/usr/local/pf/bin/pfcmd service pf start (code=exited,
status=255)
juil. 17 14:28:43 debian pfcmd[4448]: Radius configuration is missing from
raddb directory. Assuming this is a first run.
juil. 17 14:28:43 debian pfcmd[4448]: FATAL - please define exactly one
management interface
juil. 17 14:28:43 debian pfcmd[4448]: WARNING - internal network(s) not
defined!
juil. 17 14:28:43 debian pfcmd[4448]: FATAL - Unable to connect to your
database. Please verify your connection settings in conf/pf.conf and make sure
that it is started.
juil. 17 14:28:43 debian pfcmd[4448]: WARNING - networks.conf is empty but
services.dhcpd is enabled. Disable it to remove this warning.
juil. 17 14:28:43 debian pfcmd[4448]: FATAL - Cannot connect to database to
check schema version: unable to connect to database: Access denied for user
'pf'@'localhost' (using password: YES) at /usr/local/pf/lib/pf/dal.pm line 69.
juil. 17 14:28:46 debian systemd[1]: packetfence.service: Control process
exited, code=exited status=255
juil. 17 14:28:46 debian systemd[1]: Failed to start PacketFence Service.
juil. 17 14:28:46 debian systemd[1]: packetfence.service: Unit entered failed
state.
juil. 17 14:28:46 debian systemd[1]: packetfence.service: Failed with result
'exit-code'.
And the result of the command journalctl -xe :
-- Logs begin at Wed 2019-07-17 11:50:35 CEST, end at Wed 2019-07-17 14:17:03
CEST. --
juil. 17 14:13:30 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:31 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:32 debian pfmon[1242]: pfmon(1242) FATAL: [mac:unknown] unable
to connect to database: Access denied for user 'pf'@'localhost' (using
password: YES) at /usr/share/perl5/CHI/Driver.pm line 546.
(pf::db::db_connect)
juil. 17 14:13:32 debian pfmon[1242]: pfmon(1242) FATAL: [mac:unknown] unable
to connect to database: Access denied for user 'pf'@'localhost' (using
password: YES) at /usr/local/pf/lib/pf/dal.pm line 69.
(pf::db::db_connect)
juil. 17 14:13:32 debian pfmon[1242]: pfmon(1242) ERROR: [mac:unknown] Error
running task cleanup_chi_database_cache: unable to connect to database: Access
denied for user 'pf'@'localhost' (using password: YES) at
/usr/local/pf/lib/pf/dal.pm line 69.
(main::_runtask)
juil. 17 14:13:32 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:33 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:34 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:35 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:36 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:37 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:38 debian packetfence[2922]: FATAL -e(2922): Can't use string
("") as a HASH ref while "strict refs" in use at
/usr/local/pf/lib/pf/services/manager/httpd_portal.pm line 64.
(pf::services::manager::httpd_portal::vhost_management_network)
juil. 17 14:13:38 debian perl[2922]: Can't use string ("") as a HASH ref while
"strict refs" in use at /usr/local/pf/lib/pf/services/manager/httpd_portal.pm
line 64.
juil. 17 14:13:38 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:38 debian packetfence[2924]: FATAL -e(2924): Can't call method
"tag" without a package or object reference at
/usr/local/pf/lib/pf/services/manager/haproxy_portal.pm line 216.
(pf::services::manager::haproxy_portal::generateConfig)
juil. 17 14:13:38 debian perl[2924]: Can't call method "tag" without a package
or object reference at /usr/local/pf/lib/pf/services/manager/haproxy_portal.pm
line 216.
juil. 17 14:13:39 debian packetfence[2908]: FATAL -e(2908): Can't call method
"tag" without a package or object reference at
/usr/local/pf/lib/pf/services/manager/radiusd_child.pm line 263.
(pf::services::manager::radiusd_child::generate_radiusd_mainconf)
juil. 17 14:13:39 debian perl[2908]: Can't call method "tag" without a package
or object reference at /usr/local/pf/lib/pf/services/manager/radiusd_child.pm
line 263.
juil. 17 14:13:39 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
juil. 17 14:13:39 debian packetfence[2911]: FATAL -e(2911): Can't call method
"tag" without a package or object reference at
/usr/local/pf/lib/pf/services/manager/radiusd_child.pm line 263.
(pf::services::manager::radiusd_child::generate_radiusd_mainconf)
juil. 17 14:13:39 debian perl[2911]: Can't call method "tag" without a package
or object reference at /usr/local/pf/lib/pf/services/manager/radiusd_child.pm
line 263.
juil. 17 14:13:39 debian systemd[1]: packetfence-httpd.portal.service: Control
process exited, code=exited status=255
juil. 17 14:13:39 debian systemd[1]: Failed to start PacketFence Captive Portal
Apache HTTP Server.
-- Subject: L'unité (unit) packetfence-httpd.portal.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-httpd.portal.service a échoué, avec le résultat
failed.
juil. 17 14:13:39 debian systemd[1]: packetfence-httpd.portal.service: Unit
entered failed state.
juil. 17 14:13:39 debian systemd[1]: packetfence-httpd.portal.service: Failed
with result 'exit-code'.
juil. 17 14:13:40 debian systemd[1]: packetfence-httpd.portal.service: Service
hold-off time over, scheduling restart.
juil. 17 14:13:40 debian systemd[1]: Stopped PacketFence Captive Portal Apache
HTTP Server.
-- Subject: L'unité (unit) packetfence-httpd.portal.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-httpd.portal.service a terminé son arrêt.
juil. 17 14:13:40 debian systemd[1]: packetfence-haproxy-portal.service:
Control process exited, code=exited status=255
juil. 17 14:13:40 debian systemd[1]: Failed to start PacketFence HAProxy Load
Balancer for the captive portal.
-- Subject: L'unité (unit) packetfence-haproxy-portal.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-haproxy-portal.service a échoué, avec le résultat
failed.
juil. 17 14:13:40 debian systemd[1]: packetfence-haproxy-portal.service: Unit
entered failed state.
juil. 17 14:13:40 debian systemd[1]: packetfence-haproxy-portal.service: Failed
with result 'exit-code'.
juil. 17 14:13:40 debian systemd[1]: Starting PacketFence Captive Portal Apache
HTTP Server...
-- Subject: L'unité (unit) packetfence-httpd.portal.service a commencé à
démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-httpd.portal.service a commencé à démarrer.
juil. 17 14:13:40 debian systemd[1]: packetfence-haproxy-portal.service:
Service hold-off time over, scheduling restart.
juil. 17 14:13:40 debian systemd[1]: Stopped PacketFence HAProxy Load Balancer
for the captive portal.
-- Subject: L'unité (unit) packetfence-haproxy-portal.service a terminé son
arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-haproxy-portal.service a terminé son arrêt.
juil. 17 14:13:40 debian systemd[1]: Starting PacketFence HAProxy Load Balancer
for the captive portal...
-- Subject: L'unité (unit) packetfence-haproxy-portal.service a commencé à
démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-haproxy-portal.service a commencé à démarrer.
juil. 17 14:13:40 debian systemd[1]: packetfence-radiusd-auth.service: Control
process exited, code=exited status=255
juil. 17 14:13:40 debian systemd[1]: Failed to start PacketFence FreeRADIUS
authentication multi-protocol authentication server.
-- Subject: L'unité (unit) packetfence-radiusd-auth.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-radiusd-auth.service a terminé son arrêt.
juil. 17 14:13:40 debian systemd[1]: Starting PacketFence FreeRADIUS
authentication multi-protocol authentication server...
-- Subject: L'unité (unit) packetfence-radiusd-auth.service a commencé à
démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
--
-- L'unité (unit) packetfence-radiusd-acct.service a échoué, avec le résultat
failed.
juil. 17 14:13:41 debian systemd[1]: packetfence-radiusd-acct.service: Unit
entered failed state.
juil. 17 14:13:41 debian systemd[1]: packetfence-radiusd-acct.service: Failed
with result 'exit-code'.
juil. 17 14:13:41 debian pfmon[1242]: pfmon(1242) FATAL: [mac:unknown] unable
to connect to database: Access denied for user 'pf'@'localhost' (using
password: YES) at /usr/share/perl5/CHI/Driver.pm line 546.
(pf::db::db_connect)
juil. 17 14:13:41 debian pfmon[1242]: pfmon(1242) FATAL: [mac:unknown] unable
to connect to database: Access denied for user 'pf'@'localhost' (using
password: YES) at /usr/local/pf/lib/pf/dal.pm line 69.
(pf::db::db_connect)
juil. 17 14:13:41 debian pfmon[1242]: pfmon(1242) ERROR: [mac:unknown] Error
running task cleanup_chi_database_cache: unable to connect to database: Access
denied for user 'pf'@'localhost' (using password: YES) at
/usr/local/pf/lib/pf/dal.pm line 69.
(main::_runtask)
juil. 17 14:13:41 debian systemd[1]: packetfence-radiusd-acct.service: Service
hold-off time over, scheduling restart.
juil. 17 14:13:41 debian systemd[1]: Stopped PacketFence FreeRADIUS
multi-protocol accounting server.
-- Subject: L'unité (unit) packetfence-radiusd-acct.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) packetfence-radiusd-acct.service a terminé son arrêt.
juil. 17 14:13:41 debian systemd[1]: Starting PacketFence FreeRADIUS
multi-protocol accounting server...
-- Subject: L'unité (unit) packetfence-radiusd-acct.service a commencé à
démarrer
juil. 17 14:13:43 debian packetfence[998]: FATAL -e(998): unable to connect to
database: Access denied for user 'pf'@'localhost' (using password: YES) at -e
line 1.
(pf::db::db_connect)
And it continues with the same lines...
It looks like the radius service can't start too
Someone can help me?
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users