SOLVED Upgrade Gone Wrong......
Tried to upgrade my FOG server to the latest SVN and everything looked like it went though successfully. No errors on the installer or anything.
No I am getting HTTP error 500 when trying to go to URL and PXE boot is no longer working. I get a "could not boot Input/Output error (http://ipxe.org/1d0c6539)
Permissions thing maybe? I knew I shouldn’t have messed with it!
@Arsenal101 To ensure all goes smoothly on the next upgrade, edit the /opt/fog/.fogsettings file.
Look at the snmysqluser= snmysqlpass= and snmysqlhost fields and make sure they’re set properly.
In your case:
snmysqluser='root' snmysqlpass='' snmysqlhost='IP/Hostname of FOG here'
@Tom-Elliott You’re then MAN!!!
That did it. Once I was able to get the GUI back up it said that It couldn’t communicate with the database. I was able to connect with the database using root and blank password but when I checked the config.class.php I had some text where the password field is. I wiped that out, saved it and refreshed the page and it was asking me to update the database Schema which it should. I took a SQL backup and updated it.
Should be back up and running. downloading an image now! Maybe that will fix my slow imaging problem too who knows.
@Arsenal101 Okay, try this:
rm -rf /var/www/fog /var/www/html/fog
Re-run the installer.
@Tom-Elliott I can’t get to the GUI… I get a PHP error 500 and the page wont load. So I am not sure.
@Arsenal101 You think?
What does it show on the GUI? Top left next to (maybe inside) the cloud.
@Tom-Elliott Should be the latest SVN 5705 i think.
Which looks like the problem I am having? I am just not sure exactly how to remedy it.
@Arsenal101 What version did you install?
@Quazz Still doesnt like it… I have tried Service mysql status - comes back with service running and the PID,
service mysql ps aux comes back with the upstart job error.
service mysql ps same…
service mysql aux same…
I am at a loss
If I do a tail /var/log/apache2/error.log i get serveral lines all the same error PHP Fatal Error Class 'System" not found in /var/www/fog/commons/init.php
@Arsenal101 They’re two separate commands.
@Sebastian-Roth I can connect to mysql no problem though.
@Sebastian-Roth When I run the first command you mentioned It says:
root@SAU-FOG:~/fogproject/bin# service mysql, ps aux | grep mysql
utility, e.g. service mysql ps
The script you are attempting to invoke has been converted to an Upstart
job, but ps is not supported for Upstart jobs.
Maybe I am entering it wrong. Still kind of lame at linux
PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php
You DB does not seem to run properly.
service mysql status,
ps aux | grep mysqland see if you are able to connect using the command line client
mysql -u root -p
@Quazz No go, Same error
Just a guess but try
sudo ufw disable
@Tom-Elliott Sorry On Ubuntu Server 12.04 LTS
When I type git log i get this:
root@SAU-FOG:~/fogproject# git log -1
Merge: 4c19c7c ac0de27
Author: Tom Elliott firstname.lastname@example.org
Date: Fri Jun 17 07:50:34 2016 -0400
Merge svn with dev-branch
Version you installed?
OS and version of OS is this system that is having issues?
Checked Apache Error log
[Fri Jun 17 07:32:38.645107 2016] [:error] [pid 8300] [client 10.1.100.20:57664] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.ph$