Fog Server Not Running - Need Help



  • For some reason the Fog server won’t startup. I have absolutely NO idea about this program. I inherited responsibility when I took over a new job. The previous tech left an icon on the Ubuntu desktop (looks like a webpage bookmark). When I launch it, it does nothing. No page/app loads. I was thinking of running a restore point in Ubuntu but im not sure how to do that either.
    Any help would be much appreciated.


  • Moderator

    well that really didn’t help readability at all.

    But it looks like its a database issue. You might want to review this thread and see if it addresses the issue. https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy

    Especially if FOG was working one day and its broken the next day without any intentional changes.



  • @sebastian-roth [Wed Nov 01 13:19:36.236032 2017] [php7:error] [pid 1316] [client 70.9.70.9:46436]

    [Wed Nov 01 13:19:40.955140 2017] [php7:error] [pid 1318] [client 70.9.70.9:46440] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:19:44.775393 2017] [php7:error] [pid 1316] [client 70.9.70.9:46446] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:21:33.809092 2017] [php7:error] [pid 1319] [client 70.9.70.60:49756] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/bootmenu.class.php(1169): HookManager->processEvent('IPXE_EDIT', Array)\n#3 /var/www/fog/lib/fog/bootmenu.class.php(189): BootMenu->_parseMe(Array)\n#4 /var/www/fog/service/ipxe/boot.php(52): BootMenu->__construct()\n#5 {main}\n  thrown in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:25:22.847635 2017] [php7:error] [pid 1320] [client 70.9.70.9:46450] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:25:22.941962 2017] [php7:error] [pid 1318] [client 70.9.70.9:46458] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:25:23.178411 2017] [php7:error] [pid 1319] [client 70.9.70.9:46466] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:26:18.510261 2017] [php7:error] [pid 1318] [client 70.9.70.9:46544] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:26:20.335453 2017] [php7:error] [pid 1320] [client 70.9.70.9:46552] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    [Wed Nov 01 13:26:20.518633 2017] [php7:error] [pid 1317] [client 70.9.70.9:46554] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/fog/lib/db/pdodb.class.php:447\nStack trace:\n#0 /var/www/fog/lib/fog/fogcontroller.class.php(460): PDODB->insertId()\n#1 /var/www/fog/lib/fog/hookmanager.class.php(63): FOGController->save()\n#2 /var/www/fog/lib/fog/fogpage.class.php(219): HookManager->processEvent('PAGES_WITH_OBJE...', Array)\n#3 /var/www/fog/lib/pages/schemaupdaterpage.class.php(39): FOGPage->__construct('')\n#4 /var/www/fog/lib/fog/fogpagemanager.class.php(381): SchemaUpdaterPage->__construct()\n#5 [internal function]: FOGPageManager->{closure}('/var/www/fog/li...')\n#6 /var/www/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#7 /var/www/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#8 [internal function]: FOGPageManager->__construct()\n#9 /var/www/fog/lib/fog/fogbase.class.php(481): ReflectionClass->newInstanceArgs(Array)\n#10 /var/www/fog/management/index.php(23): FOGBase::getClass('FOGPageManager')\n#11 {main} in /var/www/fog/lib/db/pdodb.class.php on line 447
    
    

    Moderator note: I added the error message to a code block for readability


  • Developer

    @dpotesta50 said in Fog Server Not Running - Need Help:

    it launches to a blank page

    Well that’s a start. Please open a terminal in the ubuntu machine and key in sudo tail /var/log/apache2/error.log. Copy all you see to the forum or take a picture with your smartphone and post a picture here.



  • @george1421 The computer itself (Running Ubuntu 16.04) boots fine. I know so little about this software I honestly can’t tell you if the service is running. How do I check for that?
    When I try to launch the FOG icon on the desktop (as I explained it appears to be an HTML bookmark so I guess the program runs in a browser) it launches to a blank page. No errors or messages.
    No device will connect via PXE boot.


  • Moderator

    Lets confirm a few things.

    When you stay the fog server won’t startup, what does that really mean?

    1. The FOG server (itself) will not boot to a linux login prompt?
    2. The FOG server is running but you can’t access the fog web gui at “http://<fog_server_ip>/fog” address?
    3. You can’t pxe boot a target computer to get the fog ipxe boot menu?

Log in to reply
 

855
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.