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

    Fog will not register hosts. At all...

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    12
    1.0k
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @Mike_ To be able to tell you the root cause of e the issue we need more details. You have not told us what error exactly you see. Best if you can take a picture and post that here in the forums.

      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
      • M
        Mike_
        last edited by

        guys apologies, but i was in a pinch so I just upgraded to FOG 1.5.9, now I am getting an error when trying install the fog client on the VM, “unable to install CA Certificate”. I had this before and was able to install it using the fdqn, but now even that is not working.

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @Mike_ Do you have HTTPS enabled in FOG?

          Try accessing http://x.x.x.x/fog/management/other/ca.cert.pem in your browser using the IP and DNS name of your FOG server.

          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

          M 1 Reply Last reply Reply Quote 0
          • M
            Mike_
            last edited by

            got it to install with Https uncheck and using ip. Guys thank you, I should be good from here. I will update if not.

            1 Reply Last reply Reply Quote 0
            • M
              Mike_ @Sebastian Roth
              last edited by

              @Sebastian-Roth sorry to keep running around in circles but I am back to the original issue now. I pulled the apache logs, and it it full of errors, like 12000+. The first 4000 or so are this error with various IPS:

              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\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3013): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct(‘Dashboard’)\n#5 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct()\n#6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init()\n#7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct()\n#8 /var/www/html/fog/management/index.php(22): require(‘/var/www/html/f…’)\n#9 {main}

              I removed all hosts from the web based interface last month, is there a way to delete the db and recreate it, or am I looking at something else?

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @Mike_ Usually I’d take the way forward and solve the issue by finding the duplicated address but as you’ve removed all the hosts we might just delete all of it from the DB:

                shell> mysql -u root -p
                Password:
                ...
                mysql> use fog;
                ...
                mysql> TRUNCATE TABLE hostMAC;
                ...
                mysql> TRUNCATE TABLE hosts;
                ...
                mysql> quit
                

                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

                M 1 Reply Last reply Reply Quote 0
                • M
                  Mike_ @Sebastian Roth
                  last edited by

                  @Sebastian-Roth
                  Database changed
                  mysql> TRUNCATE TABLE hostMAC;
                  Query OK, 0 rows affected (0.00 sec)

                  mysql> TRUNCATE TABLE hosts;
                  Query OK, 0 rows affected (0.01 sec)

                  mysql> quit
                  Bye

                  Is above what I am expecting it to return?

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Mike_ Yes, this is expected. For more information see here: https://mariadb.com/kb/en/truncate-table/

                    Truncation operations do not return a meaningful value for the number of deleted rows. The usual result is “0 rows affected,” which should be interpreted as “no information.”

                    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

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      Mike_ @Sebastian Roth
                      last edited by

                      @Sebastian-Roth It is registering hosts now. Thank you Sebastian!

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        Future readers can also try this: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Database_Maintenance_Commands

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post

                        192

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project