• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

fog client no longer rebooting system to deploy, where to start?

Scheduled Pinned Locked Moved
Windows Problems
2
7
335
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    palloquin
    last edited by Jan 20, 2021, 10:16 AM

    So,
    I have about 30 PC’s linked to my fog server, all windows 10. I have the fog client installed (v.0.11.16).

    Up to a a while ago, I could create a deploy task and the client would automatically reboot to receive the new image. Imaging still works fine, but the client needs to be manually rebooted.

    Somehow, the fogclient does not seem to receive or execute the reboot command.

    Where do I start with debugging this?

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Jan 20, 2021, 9:02 PM

      @palloquin Take a look at the log file in the Windows PCs. It’s usually in C:\fog.log. Post the last 100 lines of the log here in the forum.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • P
        palloquin
        last edited by Jan 21, 2021, 10:30 AM

        Ok, thanks!

        that seems to prompt some issues:

        ------------------------------------------------------------------------------
        ---------------------------------ClientUpdater--------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response Success
        ------------------------------------------------------------------------------
        
        
        ------------------------------------------------------------------------------
        ----------------------------------TaskReboot----------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------HostnameChanger-------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        ---------------------------------SnapinClient---------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------PrinterManager--------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------PowerManagement-------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        ----------------------------------UserTracker---------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:25 Client-Info Client Version: 0.11.16
         21/01/2021 11:25 Client-Info Client OS:      Windows
         21/01/2021 11:25 Client-Info Server Version: 1.5.7
         21/01/2021 11:25 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:25 Middleware::Response ERROR: Object reference not set to an instance of an object.
         21/01/2021 11:25 Service Sleeping for 32 seconds
         21/01/2021 11:25 Middleware::Communication URL: http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&configure&newService&json
         21/01/2021 11:26 Middleware::Response Success
         21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&mac=00:FF:3E:84:3E:C1|40:A8:F0:61:47:B3&newService&json
         21/01/2021 11:26 Middleware::Communication ERROR: Could not contact FOG server
         21/01/2021 11:26 Middleware::Communication ERROR: The remote server returned an error: (500) Internal Server Error.
         21/01/2021 11:26 Middleware::Response Success
         21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/service/getversion.php?clientver&newService&json
         21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/service/getversion.php?newService&json
        
         21/01/2021 11:26 Service Creating user agent cache
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        ---------------------------------ClientUpdater--------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response Success
        ------------------------------------------------------------------------------
        
        
        ------------------------------------------------------------------------------
        ----------------------------------TaskReboot----------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------HostnameChanger-------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        ---------------------------------SnapinClient---------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------PrinterManager--------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        --------------------------------PowerManagement-------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
        
        ------------------------------------------------------------------------------
        ----------------------------------UserTracker---------------------------------
        ------------------------------------------------------------------------------
         21/01/2021 11:26 Client-Info Client Version: 0.11.16
         21/01/2021 11:26 Client-Info Client OS:      Windows
         21/01/2021 11:26 Client-Info Server Version: 1.5.7
         21/01/2021 11:26 Middleware::Response ERROR: Unable to get subsection
         21/01/2021 11:26 Middleware::Response ERROR: Object reference not set to an instance of an object.
         21/01/2021 11:26 Service Sleeping for 79 seconds
        
        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Jan 21, 2021, 4:48 PM

          @palloquin said in fog client no longer rebooting system to deploy, where to start?:

          21/01/2021 11:26 Middleware::Communication URL: http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&mac=00:FF:3E:84:3E:C1|40:A8:F0:61:47:B3&newService&json
          21/01/2021 11:26 Middleware::Communication ERROR: Could not contact FOG server
          21/01/2021 11:26 Middleware::Communication ERROR: The remote server returned an error: (500) Internal Server Error.

          Those are the relevant lines frm the log. Please check the apache and PHP-FPM error logs (see my signature) to find out what is causing the HTTP 500 internal server error.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          P 1 Reply Last reply Jan 28, 2021, 11:45 AM Reply Quote 0
          • P
            palloquin @Sebastian Roth
            last edited by Jan 28, 2021, 11:45 AM

            @sebastian-roth Thanks for your help! that solved it:

            in www-error.log I have and endless list of these errors:

            [28-Jan-2021 11:23:41 UTC] PHP Fatal error:  Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209
            Stack trace:
            #0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)
            #1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)
            #2 /var/www/html/fog/lib/fog/fogpage.class.php(3013): RegisterClient->json()
            #3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()
            #4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard')
            #5 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct()
            #6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init()
            #7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct()
            #8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...')
            #9 {main}
              thrown in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209
            

            looking at the date in c:\fog.log (or access_log on the server)

            http://172.16.1.2/fog/management/index.php?sub=requestClientInfo&mac=00:FF:3E:84:3E:C1|40:A8:F0:61:47:B3&newService&json
            

            We see two macs being posted. One this the mac of acual NIC in the machine, the other is for a VPN client.
            The MAC for the VPN client is identical on all machines, and, by mistake, that mac got linked to a host in FOG. I removed the incorrect MAC from the host config and things started working again!

            thanks again!

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Jan 28, 2021, 5:33 PM

              @palloquin said in fog client no longer rebooting system to deploy, where to start?:

              We see two macs being posted. One this the mac of acual NIC in the machine, the other is for a VPN client.

              Yeah, we have seen this a couple of times. There is an option in the FOG web UI to prevent from certain MAC addresses to be auto-registered by the fog-client: FOG Configuration -> FOG Settings -> FOG Client - Host Register -> QUICKREG PENDING MAC FILTER (Though I do remember there was an issue with exactly this option that we fixed not too long ago. Just found it. The issue makes it impossible to use wildcard MACs but a full MAC should still work with FOG 1.5.7. With FOG 1.5.9 wildcards can be used again.)

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              P 1 Reply Last reply Feb 3, 2021, 8:35 AM Reply Quote 0
              • P
                palloquin @Sebastian Roth
                last edited by Feb 3, 2021, 8:35 AM

                @sebastian-roth
                Nice one! thanks. I added the VPN MAC address!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  2/7
                  Last post

                244

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project