Upgrade 0.29 to 0.32 not working
I’m trying to upgrade our fog install 0.29 to 0.32. I ran the ./installfog.sh which succesfully installs. No errors and with a nice “Setup complete!” message. However, if i logon to the webinterface it still says i’m using version 0.29 and i do not get the message for the database upgrade. I already rebooted the machine but still no joy.
What can i do now?
[CODE] Version: 0.32 Installer/Updater
Starting Ubuntu Installtion.
FOG now has everything it needs to setup your server, but please
understand that this script will overwrite any setting you may
have setup for services like DHCP, apache, pxe, tftp, and NFS.
It is not recommended that you install this on a production system
as this script modifies many of your system settings.
This script should be run by the root user on Fedora, or with sudo on Ubuntu.
Here are the settings FOG will use:
Installation Type: Normal Server
Server IP Address: 10.2.202.101
DHCP router Address: 10.2.250.1
DHCP DNS Address:
Using FOG DHCP: 0
Are you sure you wish to continue (Y/N) y
Installing required packages, if this fails
make sure you have an active internet connection.
Installing package: apache2
Installing package: php5
Installing package: php5-gd
Installing package: php5-cli
Installing package: php5-mysql
Installing package: php5-curl
Installing package: mysql-server
We are about to install MySQL Server on
this server, if MySQL isn’t installed already
you will be prompted for a root password. If
you don’t leave it blank you will need to change
it in the config.php file located at:
Press enter to acknowledge this message.
Reading package lists…
Building dependency tree…
Reading state information…
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
- Installing package: mysql-client
- Installing package: tftpd-hpa
- Installing package: tftp-hpa
- Installing package: nfs-kernel-server
- Installing package: vsftpd
- Installing package: net-tools
- Installing package: wget
- Installing package: xinetd
- Installing package: sysv-rc-conf
- Installing package: tar
- Installing package: gzip
- Installing package: build-essential
- Installing package: cpp
- Installing package: gcc
- Installing package: g++
- Installing package: m4
- Installing package: htmldoc
- Installing package: perl
- Installing package: libcrypt-passwdmd5-perl
- Installing package: lftp
- Installing package: openssh-server
- Installing package: php-gettext
- Installing package: clamav-freshclam
Confirming package installation.
- Checking package: apache2…OK
- Checking package: php5…OK
- Checking package: php5-gd…OK
- Checking package: php5-cli…OK
- Checking package: php5-mysql…OK
- Checking package: php5-curl…OK
- Checking package: mysql-server…OK
- Checking package: mysql-client…OK
- Checking package: tftpd-hpa…OK
- Checking package: tftp-hpa…OK
- Checking package: nfs-kernel-server…OK
- Checking package: vsftpd…OK
- Checking package: net-tools…OK
- Checking package: wget…OK
- Checking package: xinetd…OK
- Checking package: sysv-rc-conf…OK
- Checking package: tar…OK
- Checking package: gzip…OK
- Checking package: build-essential…OK
- Checking package: cpp…OK
- Checking package: gcc…OK
- Checking package: g++…OK
- Checking package: m4…OK
- Checking package: htmldoc…OK
- Checking package: perl…OK
- Checking package: libcrypt-passwdmd5-perl…OK
- Checking package: lftp…OK
- Checking package: openssh-server…OK
- Checking package: php-gettext…OK
- Checking package: clamav-freshclam…OK
- Setting up fog user…Exists
- Setting up and starting MySql…OK
- Backing up user reports…OK
- Setting up and starting Apache Web Server…OK
- Restoring user reports…OK
- Configuring Fresh Clam…OK
- Setting up storage…OK
- Setting up and starting NFS Server…OK
- Setting up and starting DHCP Server…Skipped
- Setting up and starting TFTP and PXE Servers…OK
- Setting up and starting VSFTP Server…OK
- Setting up sudo settings…OK
- Setting up FOG Snapins…OK
- Setting up and building UDPCast…OK
- Installing init scripts…OK
- Setting up FOG Services…OK
- Starting FOG Multicast Management Server…OK
- Starting FOG Image Replicator Server…OK
- Starting FOG Task Scheduler Server…OK
- Setting up FOG Utils…OK
Would you like to notify the FOG group about this installation?
* This information is only used to help the FOG group determine
if FOG is being used. This information helps to let us know
if we should keep improving this product.
Send notification? (Y/N)n
NOT sending notification.
You still need to install/update your database schema.
This can be done by opening a web browser and going to:
http://10.2.202.101/fog/management Default User: Username: fog Password: password[/CODE]
Again, we nailed it. The solution was to disable the required SSL on the /var/www/fog/ directory. It was always on but since the upgrade it was keeping fog from sending the inventory.
Case closed for now.
Joehoe… it works again.
One of my previous coworkers has made a custom definition in the /commons/config.php
[CODE]DEFINE(rtrim($_SERVER[‘DOCUMENT_ROOT’], ‘/’) . rtrim(WEB_ROOT, ‘/’));[/CODE]
We just changed this in
[CODE]DEFINE(‘BASEPATH’, dirname(dirname(FILE)) );[/CODE]
And all works great now!
Darn, still can’t image. After booting from PXEboot the machine can’t send the inventory information
Okay, tried some more. It seems that I was looking in the wrong directory. My bad.
But now I get a new type of error. A nice “Internal Server Error 500”.
I can see i’ve been redirected to the /fog/commons/schemeupdater/ directory.
Can you give me some hints to look for?
The apache error log shows a fatal error. Now i’m completely lost. Now I have 2 paths.
The install went without errors in /var/www/fog. But the fog is sitting in /usr/share/fog/. I did copy all files and folders from /var/www/fog to /usr/share/fog.
But after this copy the redirect to the schemeupdater went active and I got the Internal Server Error.
[CODE][Thu May 02 23:00:29 2013] [error] [client 10.213.248.89] PHP Fatal error: Cannot redeclare getFirstGroupNameByHostID() (previously declared in /var/www/fog/commons/functions.include.php:29) in /usr/share/fog/commons/functions.include.php on line 58