I triple checked mysql and root does not have a password and the whole sql is wide open to use.
[root@fog bin]# mysqladmin status
Uptime: 662 Threads: 1 Questions: 2 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 63 Queries per second avg: 0.003
mysqladmin version
mysqladmin Ver 9.1 Distrib 10.0.19-MariaDB, for Linux on x86_64
Copyright 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Server version 10.0.19-MariaDB
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 12 min 24 sec
This is a side note, I discovered while looking at the mysql issue.
Wow. Just did a ‘ps -ef | grep fog’ and found I had like 20+ instances of
root 7469 1 0 Jul07 ? 00:01:22 /usr/bin/php -q /opt/fog/service/FOGMulticastManager/FOGMulticastManager
root 7532 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGImageReplicator/FOGImageReplicator
root 7596 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler
root 7662 1 0 Jul07 ? 00:00:01 /usr/bin/php -q /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator
from all of my install attempts. That must be something minor. Installer shows;
- Stopping FOGMulticastManager Service…/lib/common/functions.sh: line 444: 30965 Terminated $initdpath/$serviceItem stop > /dev/null 2>&1
OK
for each of the services.
For the Mageia5 variation on Redhat, this latest release removed the old systemV init compatibility and is now completely using systemd. So a changes needs to be made to bin/installfog.sh. It’s located down at the line; with
OSVersion=echo $OSVersion | cut -d '.' -f1
if [[ "$OSVersion" -ge 3 && "$linuxReleaseName" == +(*[Mm]'ageia'*) ]]; then
systemctl="yes";
fi
So once systemctl is set, then it revealed another systemd issue in lib/common/functions.sh in that Mageia5 doesn’t use mariadb.service or mysql.service. It uses mysqld.service! So I made this change to the configureMySql() function.
if [ "$systemctl" == "yes" ]; then
if [[ "$linuxReleaseName" == +(*[Mm]'ageia'*) ]]; then
systemctl="yes";
systemctl enable mysqld.service >/dev/null 2>&1 && \
systemctl restart mysqld.service >/dev/null 2>&1 && \
systemctl status mysqld.service >/dev/null 2>&1
else
systemctl="yes";
systemctl enable mariadb.service >/dev/null 2>&1 && \
systemctl restart mariadb.service >/dev/null 2>&1 && \
systemctl status mariadb.service >/dev/null 2>&1
if [ "$?" != "0" ]; then
systemctl enable mysql.service >/dev/null 2>&1 && \
systemctl restart mysql.service >/dev/null 2>&1 && \
systemctl status mysql.service >/dev/null 2>&1
fi
fi
Well that has everything working with Mageia5 now. I’ll post the patches later. They are all minor things like above. However, none of that was the problem. It still redirects to http://192.168.1.1/fog/management/index.php?node=schemaupdater
with a blank white page.