Version 1.2.0 released!
-
Congrats Fog Team. Thanks for your great effort.
-
I just signed up to say thanks. I’ve been using FOG for the deployment of our training lab since 2012ish and I really wouldn’t want to use anything else!
-
Thanks for the advise updated my fog server today
-
Please clarify, when this says now supports multiboot re-sizable imaging, do you mean multi-partition resizable?
I am still on version .31 and have been hesitant to upgrade because I am the only tech in a 1,500 PC 3,000 user school and can’t risk the downtime.
-
[quote=“BigDawg986, post: 33945, member: 75”]Please clarify, when this says now supports multiboot re-sizable imaging, do you mean multi-partition resizable?
I am still on version .31 and have been hesitant to upgrade because I am the only tech in a 1,500 PC 3,000 user school and can’t risk the downtime.[/quote]
No when it says Multiboot I means Multiple Operating Systems on the hard drive, such as Windows and Linux on one machine but being able to choose the OS to boot to at each reboot.
-
[quote=“Jaymes Driver, post: 33964, member: 3582”]No when it says Multiboot I means Multiple Operating Systems on the hard drive, such as Windows and Linux on one machine but being able to choose the OS to boot to at each reboot.[/quote]
Thanks, I should have figured as much but whenever I set up multiboots I always put each OS in a separate partition so that’s why I asked.
-
That should still work for you.
Resizable was never “partition” dependent, just when it was initially implemented it was for XP which only had one partition on a default install.
-
Hello all,
What database is the new version of FOG using? I just set up a new server as I need to migrate off some old hardware. I did a fresh install and exported/imported my hosts. I copied over my image files and want to be able to export/import the image database info, but there is no option for this. So I thought I’d mysqldump the images table and import it into the 1.2 database on the new server.
I may be totally going about this the wrong way and if so, please let me know, but my question is: how do I find the database name that 1.2 is using? When I go to mysql and do a “show databases”, I see no “fog” database like on the old server.
Please advise as my old server was having problems saying it could not find the entire image file, so I thought I’d go ahead and migrate to the new one. We use FOG heavily for our school system.
Thanks!
-
[quote=“Josh Scoville, post: 34427, member: 25343”]Hello all,
What database is the new version of FOG using? I just set up a new server as I need to migrate off some old hardware. I did a fresh install and exported/imported my hosts. I copied over my image files and want to be able to export/import the image database info, but there is no option for this. So I thought I’d mysqldump the images table and import it into the 1.2 database on the new server.
I may be totally going about this the wrong way and if so, please let me know, but my question is: how do I find the database name that 1.2 is using? When I go to mysql and do a “show databases”, I see no “fog” database like on the old server.
Please advise as my old server was having problems saying it could not find the entire image file, so I thought I’d go ahead and migrate to the new one. We use FOG heavily for our school system.
Thanks![/quote]
It sounds to me like the FOG database never got created on your system. Did you not run through the Schema installer/updater?
-
I did run the schema update and I can log into the new server web gui and was even able to import hosts from a csv file, which did import and show up.
-
In /var/www/fog/lib/fog/Config.class.php under the db_settings method, there should be a line like:
[code]define(‘DATABASE_NAME’, ‘fog’);[/code]This should be the name of the database per default. If you edited the file or this isn’t set correctly, it should, at the least tell what the new database name is being referenced.
-
That’s weird. It says fog in the name setting in the php file, but when I gype mysql > show databases; fog is not listed. I try a “use database” command, but it says access denied. Could it be hidden or something? It has to be there, obviously since the web interface is running?
Am I even on the right track trying to import this image table? Or should I just recreate the names?
-
I’d recommend recreate the names. I don’t know why the db is reporting that it’s access is denied, but maybe the user you’re logged into mysql with isn’t allowed?
-
OK, this is weird. I thought I’d try creating a new image and see if I can get it to work. This time when I click the button to add the image, I get a schema update message, so I click the button to update.
I get a tone of errors back inclucing the following:
[CODE]Update/Install Failed!
The following errors occuredUpdate ID: 1 - 0
Database Error:
Database SQL:
CREATE DATABASE fog
Update ID: 1 - 1
Database Error:
Database SQL:
CREATE TABLE
fog.groupMembers(
gmIDint(11) NOT NULL auto_increment,
gmHostIDint(11) NOT NULL,
gmGroupIDint(11) NOT NULL,
PRIMARY KEY (gmID),
KEYnew_index(gmHostID),
KEYnew_index1(gmGroupID)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMICUpdate ID: 1 - 2
Database Error:
Database SQL:
CREATE TABLE
fog.groups(
groupIDint(11) NOT NULL auto_increment,
groupNamevarchar(50) NOT NULL,
groupDesclongtext NOT NULL,
groupDateTimedatetime NOT NULL,
groupCreateByvarchar(50) NOT NULL,
groupBuildingint(11) NOT NULL,
PRIMARY KEY (groupID),
KEYnew_index(groupName)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 3
Database Error:
Database SQL:
CREATE TABLE
fog.history(
hIDint(11) NOT NULL auto_increment,
hTextlongtext NOT NULL,
hUservarchar(200) NOT NULL,
hTimedatetime NOT NULL,
hIPvarchar(50) NOT NULL,
PRIMARY KEY (hID)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 4
Database Error:
Database SQL:
CREATE TABLE
fog.hosts(
hostIDint(11) NOT NULL auto_increment,
hostNamevarchar(16) NOT NULL,
hostDesclongtext NOT NULL,
hostIPvarchar(25) NOT NULL,
hostImageint(11) NOT NULL,
hostBuildingint(11) NOT NULL,
hostCreateDatedatetime NOT NULL,
hostCreateByvarchar(50) NOT NULL,
hostMACvarchar(20) NOT NULL,
hostOSint(10) unsigned NOT NULL,
PRIMARY KEY (hostID),
KEYnew_index(hostName),
KEYnew_index1(hostIP),
KEYnew_index2(hostMAC),
KEYnew_index3(hostOS)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 5
Database Error:
Database SQL:
CREATE TABLE
fog.images(
imageIDint(11) NOT NULL auto_increment,
imageNamevarchar(40) NOT NULL,
imageDesclongtext NOT NULL,
imagePathlongtext NOT NULL,
imageDateTimedatetime NOT NULL,
imageCreateByvarchar(50) NOT NULL,
imageBuildingint(11) NOT NULL,
imageSizevarchar(200) NOT NULL,
PRIMARY KEY (imageID),
KEYnew_index(imageName),
KEYnew_index1(imageBuilding)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 6
Database Error:
Database SQL:
CREATE TABLE
fog.schemaVersion(
vIDint(11) NOT NULL auto_increment,
vValueint(11) NOT NULL,
PRIMARY KEY (vID)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMICUpdate ID: 1 - 7
Database Error:
Database SQL:
CREATE TABLE
fog.supportedOS(
osIDint(10) unsigned NOT NULL auto_increment,
osNamevarchar(150) NOT NULL,
osValueint(10) unsigned NOT NULL,
PRIMARY KEY (osID),
KEYnew_index(osValue)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 8
Database Error:
Database SQL:
CREATE TABLE
fog.tasks(
taskIDint(11) NOT NULL auto_increment,
taskNamevarchar(250) NOT NULL,
taskCreateTimedatetime NOT NULL,
taskCheckIndatetime NOT NULL,
taskHostIDint(11) NOT NULL,
taskStateint(11) NOT NULL,
taskCreateByvarchar(200) NOT NULL,
taskForcevarchar(1) NOT NULL,
taskScheduledStartTimedatetime NOT NULL,
taskTypevarchar(1) NOT NULL,
taskPCTint(10) unsigned zerofill NOT NULL,
PRIMARY KEY (taskID),
KEYnew_index(taskHostID),
KEYnew_index1(taskCheckIn),
KEYnew_index2(taskState),
KEYnew_index3(taskForce),
KEYnew_index4(taskType)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 9
Database Error:
Database SQL:
CREATE TABLE
fog.users(
uIdint(11) NOT NULL auto_increment,
uNamevarchar(40) NOT NULL,
uPassvarchar(50) NOT NULL,
uCreateDatedatetime NOT NULL,
uCreateByvarchar(40) NOT NULL,
PRIMARY KEY (uId),
KEYnew_index(uName),
KEYnew_index1(uPass)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1Update ID: 1 - 10
Database Error:
Database SQL:
INSERT INTO
fog.usersVALUES (‘’,‘fog’, MD5(‘password’),‘0000-00-00 00:00:00’,‘’)Update ID: 1 - 11
Database Error:
Database SQL:
INSERT INTO
fog.supportedOSVALUES (‘’,‘Windows XP’, ‘1’)Update ID: 1 - 12
Database Error:
Database SQL:
INSERT INTO
fog.schemaVersionVALUES (‘’,‘1’)Update ID: 2 - 0
Database Error:
Database SQL:
INSERT INTO
fog.supportedOSVALUES (‘’,‘Windows Vista’, ‘2’)[/CODE] -
I keep getting the “Database Schema Installer / Updater” message this all the time now with clean installs of FOG 1.2.0 (three different FOG Servers).
The server works, then I can create images at first, deploy them, then after a while, boom! nothing. All I get is the “Database Schema Installer / Updater” page.
Is there a fix for this? I left the MySQL password blank and tried the fixes other’s used as indicated on this thread. How can I avoid this? I can’t deploy images now…
Any help appreciated.
Thank you.
-
Grrr, Read the forums.
Anyway,
Check the /opt/fog/.fogsettings specifically the snmysqlpass variable setting and make it B"" in the case of blank, or set it to that of the mysql root password you need.
-
Tom,
I already tried that. Still no luck… Something seems to be triggering an “update” for the schema.
.fogsettings file (bottom part only):
password=“”;
osid=“2”;
osname=“Debian”;
dodhcp=“n”;
bldhcp=“0”;
installtype=“N”;
snmysqluser=“”
snmysqlpass=“”;
snmysqlhost=“”;
installlang=“0”;
donate=“0”;
fogupdateloaded=“1” -
Does your database have a password?
You can test with:
[code]mysql -u root fog[/code]If it gives you “USING PASSWORD: NO” but fails to connect, it’s likely you have a mysql root password set.
-
Can anyone give any help on how to get existing image files to work with a new install (or at least point me to the right forum)? These are from a 0.32 server and it is going to be a lot of work to reimage/reupload them.
I have tried a new image, definition, but it does not see the size of the existing image file, even though they are named teh same. Also when I download it, it says “this is not a partclone image”
Thanks!
-
enable the image format flag in gui, set the image format to partimage, make sure the permissions and ownership of the files is right, and stop asking questions in an announcement thread