Main fog server running perfectly fine on ubuntu 14.04.5 LTS with FOG 1.5.0-RC-9
i’m trying to setup a fog node using another ubutu 14.04 LTS server. I first setup fog 1.2.0 and it ran setup perfectly fine. had the mysqluser (fogstorage) and pass (fs********) setup correctly. I was able to even go to the (fog node ip)/fog and it would show the little message that there’s no GUI. OK good, up and running but not replicating. I figured that my main server is 1.5.0 and my node is 1.2.0; which is why it wont work together.
then on the fog node, I did the update to trunk and it updated to 1.5.0-RC-10 and now it the node doesn’t function.
Under my main fog configuration, it says "FOGNODE1 FOG version (“A valid database connection could not be made” 1.5.0-RC-10)
I try to access the node IP/fog and it gives me a error 500. and the URL goes to /fog/management/index.php?node=schema
I check the apache2 error.log and find this:
[Wed Nov 08 08:55:59.852106 2017] [php7:error] [pid 698] [client 10.*.*.*:49558] PHP Fatal error: Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/html/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/html/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#6 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/html/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/html/fog/management/index.php(2 in /var/www/html/fog/lib/db/pdodb.class.php on line 447``
I check the fogreplicator.log and it shows that it’s not online.
/var/log/fog/fogsnapinrep.log
[11-08-17 5:01:21 pm] FOGNODE1 Server does not appear to be online.
[11-08-17 5:11:21 pm] * Starting Snapin Replication.
[11-08-17 5:11:21 pm] * We are group ID: 1. We are group name: default
[11-08-17 5:11:21 pm] * We are node ID: 1. We are node name: DefaultMember
[11-08-17 5:11:21 pm] * Attempting to perform Group -> Group snapin replication.
[11-08-17 5:11:21 pm] | Replicating ssl less private key
[11-08-17 5:11:21 pm] * Found Snapin to transfer to 1 node
[11-08-17 5:11:21 pm] | File Name: ssl/fog.csr
[11-08-17 5:11:21 pm] FOGNODE1 Server does not appear to be online.
I edit my server ip and host name alittle for the sake of security.
with 1.2.0, PHP is 5. with 1.5.0 PHP is 7. is it a PHP error?
Under the storage node settings when adding, the IP, username and password is all correct.
help… thanks.