Seems like moving /var/www did the trick. After rerunning the installer I finally could update the database schema. And I can also access the webinterface again. I can even run the installer now with the wget command.
Thanks everybody for your patient and your help.
Stefan
Posts made by Stefan Kaegi
-
RE: [Rev 4201] blank page when trying to install/update database schema
-
RE: [Rev 4201] blank page when trying to install/update database schema
root@FOGAGH01:~# ls -al /var/www/ total 28 drwxr-xr-x 6 www-data www-data 4096 Nov 4 09:11 . drwxr-xr-x 12 root root 4096 May 12 2014 .. drwxr-xr-x 10 www-data www-data 4096 Nov 4 09:11 fog drwxr-xr-x 10 root root 4096 Oct 22 10:16 fog.backup drwxr-xr-x 11 www-data www-data 4096 Jul 8 08:45 fog.prev drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 html -rw-r--r-- 1 www-data www-data 43 Jul 16 15:47 index.php root@FOGAGH01:~# ls -al /var/www/html/ total 12 drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 . drwxr-xr-x 6 www-data www-data 4096 Nov 4 09:11 .. drwxr-xr-x 11 www-data www-data 4096 Jul 16 09:59 fog root@FOGAGH01:~# ls -al /var/www/html/fog/ total 52 drwxr-xr-x 11 www-data www-data 4096 Jul 16 09:59 . drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 .. drwxr-xr-x 3 www-data www-data 4096 Jul 16 10:00 client drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 commons -rw-r--r-- 1 www-data www-data 1406 Jul 16 09:59 favicon.ico drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 fogdoc -rw-r--r-- 1 www-data www-data 278 Jul 16 09:59 index.php drwxr-xr-x 9 www-data www-data 4096 Jul 16 09:59 lib drwxr-xr-x 10 www-data www-data 4096 Jul 16 09:59 management drwxr-xr-x 4 www-data www-data 4096 Jul 16 09:59 mobile drwxr-xr-x 4 www-data www-data 4096 Jul 16 09:59 service drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 status drwxr-xr-x 3 www-data www-data 4096 Jul 16 09:59 wol
-
RE: [Rev 4201] blank page when trying to install/update database schema
A mysql password ist set. Here is my .fogsettings file:
fogsettings -
RE: [Rev 4201] blank page when trying to install/update database schema
After commenting out the wget line the installer run till the end. I didn’t need to change FOGBase.class.php after running the installer. ‘public $debug’ was still set on ‘true’. The Apache Error Log File still looks the same:
[Tue Nov 03 12:00:04 2015] [error] [client 172.20.60.23] PHP Fatal error: Call to a member function query() on null in /var/www/html/fog/lib/fog/FOGCore.class.php on line 310 [Tue Nov 03 12:00:04 2015] [error] [client 172.30.60.49] PHP Fatal error: Call to a member function query() on null in /var/www/html/fog/lib/fog/FOGCore.class.php on line 310 [Tue Nov 03 12:00:04 2015] [error] [client 172.20.60.56] PHP Fatal error: Call to a member function query() on null in /var/www/html/fog/lib/fog/FOGCore.class.php on line 310
-
RE: [Rev 4201] blank page when trying to install/update database schema
I updated again to Rev 4278 . But the Installer stills stopps at ‘Backing up database’.
-
RE: [Rev 4201] blank page when trying to install/update database schema
I don’t see anything on the webinterface. Still a blank page.
-
RE: [Rev 4201] blank page when trying to install/update database schema
I changed FOGBase.class.php as you described. Here is my Apache Error Log as it looks now:
error.log -
RE: [Rev 4201] blank page when trying to install/update database schema
My changed FOGBase.class.php file:
FOGBase.class.php -
RE: [Rev 4201] blank page when trying to install/update database schema
That’s how I update:
cd /root/ svn checkout https://svn.code.sf.net/p/freeghost/code/trunk cd trunk/bin/ ./installfog.sh
How can I see which version my cloud has?
I updated today to Rev 4270. Seems like I have a new problem now. The Fog Installer stops at the following point:.... * Enabling apache and fpm services on boot....................OK * Creating SSL Certificate....................................OK * Creating auth pub key and cert..............................OK * Resetting SSL Permissions...................................OK * Setting up SSL FOG Server...................................OK * Restarting Apache2 for fog vhost............................OK * Changing permissions on apache log files....................OK * Backing up database.........................................Failed!
I added the line ‘protected $debug = true;’ to my FOGBase.class.php in section ‘abstract class FOGBase’
Now my Apache error log shows:[Mon Nov 02 09:46:50 2015] [error] [client 172.30.34.61] PHP Fatal error: Cannot redeclare FOGBase::$debug in /var/www/html/fog/lib/fog/FOGBase.class.php on line 5 [Mon Nov 02 09:46:50 2015] [error] [client 172.20.60.31] PHP Fatal error: Cannot redeclare FOGBase::$debug in /var/www/html/fog/lib/fog/FOGBase.class.php on line 5 [Mon Nov 02 09:46:50 2015] [error] [client 172.20.60.31] PHP Fatal error: Cannot redeclare FOGBase::$debug in /var/www/html/fog/lib/fog/FOGBase.class.php on line 5
Line 5 is where i added the line.
-
RE: [Rev 4201] blank page when trying to install/update database schema
I udpated again today. So now I’m on Rev 4244.
Apache error.log: error.log
FOGCore.class.php: FOGCore.class.php -
RE: [Rev 4201] blank page when trying to install/update database schema
Here is my FOGCore.class.php file:
FOGCore.class.php -
RE: [Rev 4201] blank page when trying to install/update database schema
I installed php5-mysql (and removed php5-mysqlnd) , updated trunk as you described and run the installfog.sh again. But I still get the blank page. It seems like installfog.sh installs php5-mysqlnd again:
... * Installing package: php5-mysqlnd............................OK ...
It doesn’t work either when I try to install php5-mysql after the installation again.
My apache error log file stills looks the same. -
RE: [Rev 4201] blank page when trying to install/update database schema
I removed php5-mysql and restarted the server. But I still get the blang page. Yes, im still stuck at the database schema updater.
I attached my apache error log file (last 100 lines) while accessing the web interface.
error.log
I get this error every second. Even when i don’t access the webinterface. My current error.log file is 514M at the moment. The previous one is 787M. The ones before are arounc 1-15K. -
RE: [Rev 4201] blank page when trying to install/update database schema
I installed the php version you have from the http://packages.dotdeb.org repo.
root@FOGAGH01:~/# dpkg -l | grep php ii libapache2-mod-php5 5.6.14-1~dotdeb+7.1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) ii php-gettext 1.0.11-1 all read gettext MO files directly, without requiring anything other than PHP ii php5 5.6.14-1~dotdeb+7.1 all server-side, HTML-embedded scripting language (metapackage) ii php5-cli 5.6.14-1~dotdeb+7.1 amd64 command-line interpreter for the php5 scripting language ii php5-common 5.6.14-1~dotdeb+7.1 amd64 Common files for packages built from the php5 source ii php5-curl 5.6.14-1~dotdeb+7.1 amd64 CURL module for php5 ii php5-fpm 5.6.14-1~dotdeb+7.1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php5-gd 5.6.14-1~dotdeb+7.1 amd64 GD module for php5 ii php5-mcrypt 5.6.14-1~dotdeb+7.1 amd64 MCrypt module for php5 rc php5-mysql 5.4.39-0+deb7u2 amd64 MySQL module for php5 ii php5-mysqlnd 5.6.14-1~dotdeb+7.1 amd64 MySQL module for php5 (Native Driver) ii php5-readline 5.6.14-1~dotdeb+7.1 amd64 Readline module for php5 ii phpmyadmin 4:3.4.11.1-2+deb7u1 all MySQL web administration tool
I then updated to the newest svn. I now have rev 4227. After that I tried to install fog again.
Here is the output of installfog.sh:root@FOGAGH01:~# ./installfog.sh ..#######:. ..,#,.. .::##::. .:###### .:;####:......;#;.. ...##... ...##;,;##::::.##... ,# ...##.....##:::## ..:: ## .::###,,##. . ##.::#.:######::. ...##:::###::....#. .. .#...#. #...#:::. ..:####:.. ..##......##::## .. # # . ...##:,;##;:::#: ... ##.. .# . .:;####;::::.##:::;#:.. # ..:;###.. ########################################### # FOG # # Free Computer Imaging Solution # # # # http://www.fogproject.org/ # # # # Credits: # # http://fogproject.org/Credits # # GNU GPL Version 3 # ########################################### Version: 5098 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings... Starting Debian based Installation ##################################################################### 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 Redhat or with sudo on Ubuntu. ** Notice ** Redhat users will need to disable SELinux and iptables in order to use FOG Please see our wiki for more information at http://www.fogproject.org/wiki Here are the settings FOG will use: Base Linux: Debian Detected Linux Distribution: Debian GNU/Linux Installation Type: Normal Server Server IP Address: 172.30.40.25 DHCP router Address: 172.30.40.5 DHCP DNS Address: 172.30.40.1 Interface: eth0 Using FOG DHCP: 0 Internationalization: 0 Image Storage Location: /images MySQL Connection Type: MYSQLI_ASYNC Donate: 0 DHCP will NOT be setup but you must setup your current DHCP server to use FOG for PXE services. On a Linux DHCP server you must set: next-server On a Windows DHCP server you must set: option 066 & 067 Option 066 is the IP of the FOG Server: (e.g. 172.30.40.25) Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe) Are you sure you wish to continue (Y/N) y Installation Started... Installing required packages, if this fails make sure you have an active internet connection. * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5 * Skipping package: apache2...................................(Already Installed) * Skipping package: php5......................................(Already Installed) * Skipping package: php5-common...............................(Already Installed) * Skipping package: php5-gd...................................(Already Installed) * Skipping package: php5-cli..................................(Already Installed) * Skipping package: php5-curl.................................(Already Installed) * Skipping package: mysql-server..............................(Already Installed) * Skipping package: mysql-client..............................(Already Installed) * Skipping package: tftpd-hpa.................................(Already Installed) * Skipping package: tftp-hpa..................................(Already Installed) * Skipping package: nfs-kernel-server.........................(Already Installed) * Skipping package: vsftpd....................................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: wget......................................(Already Installed) * Skipping package: xinetd....................................(Already Installed) * Skipping package: sysv-rc-conf..............................(Already Installed) * Skipping package: tar.......................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: build-essential...........................(Already Installed) * Skipping package: cpp.......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: g++.......................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: htmldoc...................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Skipping package: openssh-server............................(Already Installed) * Skipping package: php-gettext...............................(Already Installed) * Skipping package: php5-mcrypt...............................(Already Installed) * Skipping package: php5-mysqlnd..............................(Already Installed) * Skipping package: curl......................................(Already Installed) * Skipping package: libc6.....................................(Already Installed) * Skipping package: libcurl3..................................(Already Installed) * Skipping package: zlib1g....................................(Already Installed) * Skipping package: php5-fpm..................................(Already Installed) * Skipping package: libapache2-mod-php5.......................(Already Installed) * Updating packages as needed.................................OK Confirming package installation. * Checking package: apache2...................................OK * Checking package: php5......................................OK * Checking package: php5-json.................................OK * Checking package: php5-gd...................................OK * Checking package: php5-cli..................................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: lftp......................................OK * Checking package: openssh-server............................OK * Checking package: php-gettext...............................OK * Checking package: php5-mcrypt...............................OK * Checking package: php5-mysqlnd..............................OK * Checking package: curl......................................OK * Checking package: libc6.....................................OK * Checking package: libcurl3..................................OK * Checking package: zlib1g....................................OK * Checking package: php5-fpm..................................OK * Checking package: libapache2-mod-php5.......................OK Configuring services. * Stopping FOGMulticastManager Service........................OK * Stopping FOGImageReplicator Service.........................OK * Stopping FOGSnapinReplicator Service........................OK * Stopping FOGScheduler Service...............................OK * Stopping FOGPingHosts Service...............................OK * Setting up and starting MySQL...............................OK * Backing up user reports.....................................OK * Stopping web service........................................OK * Removing vhost file.........................................OK * Setting up Apache and PHP files.............................OK * Backing up old data.........................................OK * Copying back old web folder as is...........................OK * Copying new files to web folder.............................OK * Creating config file........................................OK * Downloading inits and kernels...............................Backgrounded * Downloading New FOG Client file.............................Backgrounded * Enabling apache and fpm services on boot....................OK * Creating SSL Certificate....................................OK * Creating auth pub key and cert..............................OK * Resetting SSL Permissions...................................OK * Setting up SSL FOG Server...................................OK * Restarting Apache2 for fog vhost............................OK * Changing permissions on apache log files....................OK You still need to install/update your database schema. This can be done by opening a web browser and going to: http://172.30.40.25/fog/management Press [Enter] key when database is updated/installed. * Setting up storage..........................................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 FOG Snapins......................................OK * Setting up UDPCast..........................................OK * Configuring UDPCast.........................................OK * Building UDPCast............................................OK * Installing UDPCast..........................................OK * Installing FOG System Scripts...............................OK * Configuring FOG System Services * Setting FOGMulticastManager script executable...............OK * Enabling FOGMulticastManager Service........................OK * Setting FOGImageReplicator script executable................OK * Enabling FOGImageReplicator Service.........................OK * Setting FOGSnapinReplicator script executable...............OK * Enabling FOGSnapinReplicator Service........................OK * Setting FOGScheduler script executable......................OK * Enabling FOGScheduler Service...............................OK * Setting FOGPingHosts script executable......................OK * Enabling FOGPingHosts Service...............................OK * Setting up FOG Services.....................................OK * Setting up FOG Utils........................................OK * Starting FOGMulticastManager Service........................OK * Starting FOGImageReplicator Service.........................OK * Starting FOGSnapinReplicator Service........................OK * Starting FOGScheduler Service...............................OK * Starting FOGPingHosts Service...............................OK * Setting up exports file.....................................OK * Setting up and starting RPCBind.............................OK * Setting up and starting NFS Server..........................OK Setup complete! You can now login to the FOG Management Portal using the information listed below. The login information is only if this is the first install. This can be done by opening a web browser and going to: http://172.30.40.25/fog/management Default User: Username: fog Password: password
But I still get the blank page when going to ’http://172.30.40.25/fog’ or ’http://172.30.40.25/fog/management’.
-
RE: [Rev 4201] blank page when trying to install/update database schema
Unfortunately that didn’t help. I now have Rev 4219.
-
RE: [Rev 4201] blank page when trying to install/update database schema
ii libapache2-mod-php5 5.4.45-0+deb7u1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) ii php-gettext 1.0.11-1 all read gettext MO files directly, without requiring anything other than PHP ii php5 5.4.45-0+deb7u1 all server-side, HTML-embedded scripting language (metapackage) ii php5-cli 5.4.45-0+deb7u1 amd64 command-line interpreter for the php5 scripting language ii php5-common 5.4.45-0+deb7u1 amd64 Common files for packages built from the php5 source ii php5-curl 5.4.45-0+deb7u1 amd64 CURL module for php5 ii php5-fpm 5.4.45-0+deb7u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii php5-gd 5.4.45-0+deb7u1 amd64 GD module for php5 ii php5-mcrypt 5.4.45-0+deb7u1 amd64 MCrypt module for php5 rc php5-mysql 5.4.39-0+deb7u2 amd64 MySQL module for php5 ii php5-mysqlnd 5.4.45-0+deb7u1 amd64 MySQL module for php5 (Native Driver) ii phpmyadmin 4:3.4.11.1-2+deb7u1 all MySQL web administration tool
-
RE: [Rev 4201] blank page when trying to install/update database schema
And here the logfile of the troubleshooting script:
FOGtroubleshoot.log -
RE: [Rev 4201] blank page when trying to install/update database schema
My error.log is 260M! I attached the end of the file.
error.log -
[Rev 4201] blank page when trying to install/update database schema
Hi,
I updated my Debian wheezy system via ‘apt-get update && apt-ger upgrade’. After that I also updated to the new subversion (4201) of fog.
When I run ‘./installfog.sh’ everything looks ok. But when I try to update the database schema via ‘http://172.30.40.25/fog/management’ I only see a blank page. I tried to skip the database update and finish the installation. But all i can see now when going to ‘http://172.30.40.25/fog’ or ‘http://172.30.40.25/fog/management’ is a blank page. Hard refreshing the page didn’t help.Debian GNU/Linux 7.9 (wheezy)
fog svn 4201Thanks for your help.
Stefan -
RE: Webinterface doens't show any hosts under host management
After updating to subversion 3356 the problem is solved.
Thanks a lot for you help!Stefan