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

    Snapins removed from Previously registered hosts

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    10
    1.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.
    • adukes40A
      adukes40
      last edited by

      Since the snapin hash issue of last week. I noticed that all the hosts we have registered, have lost the assigned snapins they used to have. Is there a way to get those settings back from a backup? or do we need to reassigned snapins to 3000 hosts?

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

        What do you mean not assigned? Snapin tasks were cleaned up, but we didn’t touch associations at all. You can recover from backup or you can reassign via groups.

        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

        adukes40A 1 Reply Last reply Reply Quote 0
        • adukes40A
          adukes40 @Tom Elliott
          last edited by adukes40

          @Tom-Elliott Correct, all the associations have been blown out. How would I restore them from the backup?

          Also I did not get around to updating the nodes until the weekend, so the nodes are on version 39, but master on 33. Would that cause it?

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

            @adukes40 no. There is no code that removes associations unless the associations are invalid or somebody goes and removes the associations. There should be a backup db on the fog server. If you can get it on your machine you can upload it straight through the GUI.

            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

            adukes40A 1 Reply Last reply Reply Quote 0
            • adukes40A
              adukes40 @Tom Elliott
              last edited by

              @Tom-Elliott Which would I choose

              0_1474379400809_upload-f4623672-e5e8-4d3a-a74b-c41a44e4c548

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

                @adukes40 Those files have date/time stamps and versions. When were things correct last?

                The nomenclature for the backups is:
                fog_sql_version_yyyymmdd_hhmmss.sql

                so year-month-day__hour-minute-second
                Don’t go further back than you need.

                You can restore the files via CLI like this:

                mysql < file

                If a user/pass is needed just include those before the < file part.

                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/

                adukes40A 1 Reply Last reply Reply Quote 0
                • adukes40A
                  adukes40 @Wayne Workman
                  last edited by

                  @Wayne-Workman Tom was working on my system on the 16th, which has two entries, but I just noticed them missing, so not sure when it went missing. The one for the 13th is 0 in size, so not sure how far to go.

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

                    @adukes40 Well, I’d say make a new backup first so that you can go back if needed. Like this:

                    mysqldump fog > /root/fogDB.sql

                    Or via the web interface. But CLI is more reliable.

                    Then I’d try to restore the one called fog_sql_35 first. If that isn’t good I’d go to the 33 next, which appears to have a little more data in it.

                    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/

                    adukes40A 1 Reply Last reply Reply Quote 0
                    • adukes40A
                      adukes40 @Wayne Workman
                      last edited by

                      @Wayne-Workman OK, I will give that shot.

                      adukes40A 1 Reply Last reply Reply Quote 0
                      • adukes40A
                        adukes40 @adukes40
                        last edited by

                        @Wayne-Workman I was able to get it rolled back. It is looking like the snapins are back now. thanks for the help

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

                        151

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project