Create New Snapin Page Fails To Load
-
Do you know off the top of your head where the apache logs are located?
-
@Motech09 said in Create New Snapin Page Fails To Load:
Do you know off the top of your head where the apache logs are located?
In Ubuntu-world it’s normally:
/var/log/apache2/error_log
or something like that. Also if your web interface is functional, you can go to FOG Configuration -> Log Viewer -> Apache error logs and see them that way too. -
[Thu Aug 04 12:57:49.084428 2016] [:error] [pid 6863] [client 10.225.27.67:39841] PHP Fatal error: Uncaught Exception: Type: 8, File: /var/www/fog/lib/fog/fogmanagercontroller.class.php, Line: 80, Message: Undefined variable: whereArray, Host: 10.225.27.128, Username: istech in /var/www/fog/lib/fog/fogftp.class.php:52\nStack trace:\n#0 /var/www/fog/lib/fog/storagenode.class.php(80): FOGFTP->connect()\n#1 /var/www/fog/lib/fog/fogcontroller.class.php(245): StorageNode->loadSnapinfiles()\n#2 /var/www/fog/lib/fog/fogcontroller.class.php(48): FOGController->loadItem(‘snapinfiles’)\n#3 /var/www/fog/lib/fog/storagenode.class.php(41): FOGController->get(‘snapinfiles’)\n#4 /var/www/fog/lib/pages/snapinmanagementpage.class.php(110): StorageNode->get(‘snapinfiles’)\n#5 [internal function]: SnapinManagementPage->{closure}(Object(StorageNode))\n#6 /var/www/fog/lib/pages/snapinmanagementpage.class.php(112): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(72): SnapinManagementPage->add()\n#8 /var/www/fog/management/index.php(23): FOGPageManager->render()\n#9 {main}\n thrown in /var/www/fog/lib/fog/fogftp.class.php on line 52, referer: http://10.225.27.115/fog/management/index.php?node=snapin
-
@Motech09 Did you alter /opt/fog/.fogsettings with the new images path?
Did you adjust the storage node page with the new paths?
-
Again, I must ask, What version of FOG are you running? We need the exact version please.
-
-
@Motech09 Can you try updating to RC-6? And because you’re using snapins (obviously), once installed edit the file:
/var/www/fog/status/getsnapinhash.php
Right after the <?php line add:
require '../commons/base.inc.php';
-
Quazz,
That was it. I should have caught that but I forgot about settings on the storage node page.
Thanks!
Thanks guys.
-
Tom, I got it working now, thanks.
But I’m glad you brought up updating the RC. Don’t you use the below to update?
cd /root/fogproject
git pull
cd bin
./installfog.shIf this is still accurate, I’ve tried it a few times and it has failed with the below:
fatal: Not a git repository (or any of the parent directories): .git
Any clue on that?
-
@Motech09 Just delete that directory - be careful with that.
And just re-clone the repo.
Follow instructions in here:
https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk -
That worked.