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

    Registering Clients Same MAC Shows Up

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    11
    2.8k
    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.
    • Wayne WorkmanW
      Wayne Workman
      last edited by

      Cross-linking threads with same problem, and moved to bugs.

      https://forums.fogproject.org/topic/8359/fog-registration-error-hostname-with-that-name-already-exists

      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 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by Wayne Workman

        @UWPVIOLATOR Can you run these SQL queries in MySQL please, and give us the results?

        mysql -D fog
        SELECT `hostID`, `hostName` FROM `hosts` WHERE `hostID` = '0';
        SELECT * FROM `hostMAC` WHERE hmID = '0' OR `hmHostID` = '0';
        SELECT * FROM `groupMembers` WHERE `gmID` = '0' OR `gmHostID` = '0' OR `gmGroupID` = '0';
        SELECT * FROM `snapinGroupAssoc` WHERE `sgaID` = '0' OR `sgaSnapinID` = '0' OR `sgaStorageGroupID` = '0';
        SELECT * from `snapinAssoc` WHERE `saID` = '0' OR `saHostID` = '0' OR `saSnapinID` = '0'; 
        quit
        

        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/

        A 1 Reply Last reply Reply Quote 0
        • A
          ablohowiak @Wayne Workman
          last edited by

          @Wayne-Workman
          Query one and four returned nothing. Here are the other three.

          0_1474570607915_upload-97493957-7b91-4b55-9911-475cfdd3b955

          0_1474570706875_upload-6f41b4f5-04f9-4c98-8abc-65fdd8adaa2a

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

            @ablohowiak So what needs done is these with IDs of 0 need deleted. Three hosts were listed as pending with an ID of zero, one without a MAC. I would expect these three hosts to re-report in after being deleted, and you can then approve them. To delete all these, just change it from a select into a delete. Like below.

            Feel free to do a DB backup prior via Web Interface -> FOG Configuration -> Configuration Save -> Export or via CLI as mysqldump fog > /root/dbBackup.sql

            mysql -D fog
            DELETE FROM `hosts` WHERE `hostID` = '0';
            DELETE FROM `hostMAC` WHERE hmID = '0' OR `hmHostID` = '0';
            DELETE FROM `groupMembers` WHERE `gmID` = '0' OR `gmHostID` = '0' OR `gmGroupID` = '0';
            DELETE FROM `snapinGroupAssoc` WHERE `sgaID` = '0' OR `sgaSnapinID` = '0' OR `sgaStorageGroupID` = '0';
            DELETE from `snapinAssoc` WHERE `saID` = '0' OR `saHostID` = '0' OR `saSnapinID` = '0'; 
            quit
            

            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 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              Pretty sure this issue already has been addressed for RC 11. I want to push it out as soon as possible, just trying to get things worked out a little bit.

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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
              • UWPVIOLATORU
                UWPVIOLATOR
                last edited by

                Ran successfully. I was able to delete a device then re add it. I won’t be able to test the 2 I had issues with until next week but this looks promising for now.

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @UWPVIOLATOR
                  last edited by

                  @UWPVIOLATOR What ran successfully?

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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

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

                    @Tom-Elliott He was talking about the sql 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/

                    UWPVIOLATORU A 2 Replies Last reply Reply Quote 0
                    • UWPVIOLATORU
                      UWPVIOLATOR @Wayne Workman
                      last edited by

                      @Wayne-Workman Yes the SQL commands is what I was referring to.

                      1 Reply Last reply Reply Quote 0
                      • A
                        ablohowiak @Wayne Workman
                        last edited by

                        @Wayne-Workman
                        Had to run the delete commands one more time after moving to RC11. It’s been okay since then other than needing to reset the encryption data.

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

                        226

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project