Hello Peter, What is your linux distribution, which guide did you follow ?
Could you give me the /usr/local/pf/logs/mariadb_error.log ? Give me the output of that command: radiusd -d /usr/local/pf/raddb/ -n auth -CX Thanks, > On Aug 2, 2019, at 1:57 AM, Peter Reissenweber via PacketFence-users > <[email protected]> wrote: > > I have recently installed the latest Packetfence version 9.0.3 on Linux using > yum and have everything working except RADIUS AUTH and ACCT and mariadb > daemons . I am a security engineer and not great at linux does any of the > below output help. > > Tried google and mailing list but my searches didn’t match anything concrete. > > > root@packetfence system]# systemctl list-units > packetfence-radiusd-acct.service > loaded activating start-pre start PacketFence FreeRADIUS multi-protocol > accounting server > packetfence-radiusd-auth.service > loaded activating start-pre start PacketFence FreeRADIUS authentication > multi-protocol authentication server > > > [root@packetfence system]# tail -f /var/log/messages > Aug 2 15:37:57 packetfence systemd: Stopped PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:37:57 packetfence systemd: Starting PacketFence FreeRADIUS > authentication multi-protocol authentication server... > Aug 2 15:38:03 packetfence systemd: packetfence-radiusd-auth.service: > control process exited, code=exited status=1 > Aug 2 15:38:03 packetfence systemd: Failed to start PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:03 packetfence systemd: Unit packetfence-radiusd-auth.service > entered failed state. > Aug 2 15:38:03 packetfence systemd: packetfence-radiusd-auth.service failed. > Aug 2 15:38:03 packetfence systemd: packetfence-radiusd-auth.service holdoff > time over, scheduling restart. > Aug 2 15:38:03 packetfence systemd: Cannot add dependency job for unit > mariadb.service, ignoring: Unit is masked. > Aug 2 15:38:03 packetfence systemd: Stopped PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:03 packetfence systemd: Starting PacketFence FreeRADIUS > authentication multi-protocol authentication server... > Aug 2 15:38:06 packetfence pfcmd: service|command > Aug 2 15:38:06 packetfence pfcmd: radiusd-acct|config generated > Aug 2 15:38:06 packetfence pfcmd: radiusd-auth|config generated > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-auth.service: > control process exited, code=exited status=1 > Aug 2 15:38:07 packetfence systemd: Failed to start PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:07 packetfence systemd: Unit packetfence-radiusd-auth.service > entered failed state. > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-auth.service failed. > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-acct.service: > control process exited, code=exited status=1 > Aug 2 15:38:07 packetfence systemd: Failed to start PacketFence FreeRADIUS > multi-protocol accounting server. > Aug 2 15:38:07 packetfence systemd: Unit packetfence-radiusd-acct.service > entered failed state. > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-acct.service failed. > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-acct.service holdoff > time over, scheduling restart. > Aug 2 15:38:07 packetfence systemd: Cannot add dependency job for unit > mariadb.service, ignoring: Unit is masked. > Aug 2 15:38:07 packetfence systemd: packetfence-radiusd-auth.service holdoff > time over, scheduling restart. > Aug 2 15:38:07 packetfence systemd: Cannot add dependency job for unit > mariadb.service, ignoring: Unit is masked. > Aug 2 15:38:07 packetfence systemd: Stopped PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:07 packetfence systemd: Starting PacketFence FreeRADIUS > authentication multi-protocol authentication server... > Aug 2 15:38:07 packetfence systemd: Stopped PacketFence FreeRADIUS > multi-protocol accounting server. > Aug 2 15:38:07 packetfence systemd: Starting PacketFence FreeRADIUS > multi-protocol accounting server... > qAug 2 15:38:11 packetfence systemd: packetfence-radiusd-auth.service: > control process exited, code=exited status=1 > Aug 2 15:38:11 packetfence systemd: Failed to start PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:11 packetfence systemd: Unit packetfence-radiusd-auth.service > entered failed state. > Aug 2 15:38:11 packetfence systemd: packetfence-radiusd-auth.service failed. > Aug 2 15:38:12 packetfence systemd: packetfence-radiusd-auth.service holdoff > time over, scheduling restart. > Aug 2 15:38:12 packetfence systemd: Cannot add dependency job for unit > mariadb.service, ignoring: Unit is masked. > Aug 2 15:38:12 packetfence systemd: Stopped PacketFence FreeRADIUS > authentication multi-protocol authentication server. > Aug 2 15:38:12 packetfence systemd: Starting PacketFence FreeRADIUS > authentication multi-protocol authentication server... > > > > > [root@packetfence system]# systemctl status mariadb.service > ● mariadb.service > Loaded: masked (/dev/null; bad) > Active: inactive (dead) > > Aug 02 15:39:12 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:15 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:18 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:23 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:25 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:27 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:31 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:34 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:35 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Aug 02 15:39:39 packetfence.gbst.net <http://packetfence.gbst.net/> > systemd[1]: Cannot add dependency job for unit mariadb.service, ignoring: > Unit is masked. > Warning: mariadb.service changed on disk. Run 'systemctl daemon-reload' to > reload units. > > > Pfconfig.log output but stops after boot completes. > > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Caught error DBI > connect('database=packetfence_db;host=localhost;port=3306','packetfence',...) > failed: Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2 "No such file or directory") at > /usr/local/pf/lib/pfconfig/backend/mysql.pm line 47. > while connecting to database. (pfconfig::backend::mysql::_get_db) > Aug 2 09:28:02 packetfence pfconfig: Could not write namespace > config::Pf(packetfence.gbst.net <http://packetfence.gbst.net/>) to L2 cache ! > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Couldn't connect to MySQL database to access L2. This is a major problem ! > Check the MySQL section in /usr/local/pf/conf/pfconfig.conf and make sure > your database schema is up to date ! (pfconfig::backend::mysql::_db_error) > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Could not write namespace config::Pf(packetfence.gbst.net > <http://packetfence.gbst.net/>) to L2 cache ! > (pfconfig::manager::cache_resource) > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Caught error DBI > connect('database=packetfence_db;host=localhost;port=3306','packetfence',...) > failed: Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2 "No such file or directory") at > /usr/local/pf/lib/pfconfig/backend/mysql.pm line 47. > while connecting to database. (pfconfig::backend::mysql::_get_db) > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Couldn't connect to MySQL database to access L2. This is a major problem ! > Check the MySQL section in /usr/local/pf/conf/pfconfig.conf and make sure > your database schema is up to date ! (pfconfig::backend::mysql::_db_error) > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Caught error DBI > connect('database=packetfence_db;host=localhost;port=3306','packetfence',...) > failed: Can't connect to local MySQL server through socket > '/var/lib/mysql/mysql.sock' (2 "No such file or directory") at > /usr/local/pf/lib/pfconfig/backend/mysql.pm line 47. > while connecting to database. (pfconfig::backend::mysql::_get_db) > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Couldn't connect to MySQL database to access L2. This is a major problem ! > Check the MySQL section in /usr/local/pf/conf/pfconfig.conf and make sure > your database schema is up to date ! (pfconfig::backend::mysql::_db_error) > Aug 2 09:28:02 packetfence pfconfig: Could not write namespace > interfaces::management_network(packetfence.gbst.net > <http://packetfence.gbst.net/>) to L2 cache ! > Aug 2 09:28:02 packetfence pfconfig: pfconfig(1307) ERROR: [mac:[undef]] > Could not write namespace interfaces::management_network(packetfence.gbst.net > <http://packetfence.gbst.net/>) to L2 cache ! (pfconfig::manager::cache_resou > > The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential and / or privileged > material that may be governed by confidential information provisions > contained in the agreement between GBST and your company. Any disclosure, > copying, distribution, or other use without the express consent of the sender > is prohibited. If you received this in error, please contact the sender and > delete the material from any computer. All rights in the information > transmitted, including copyright, are reserved. Nothing in this message > should be interpreted as a digital signature that can be used to authenticate > a document. No warranty is given by the sender that any attachments to this > email are free from viruses or other defects. > > _______________________________________________ > PacketFence-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/packetfence-users > <https://lists.sourceforge.net/lists/listinfo/packetfence-users>
_______________________________________________ PacketFence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
