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

Snapin Hash

Scheduled Pinned Locked Moved Solved
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.
  • G
    Greg Plamondon Testers
    last edited by Greg Plamondon Mar 15, 2018, 9:10 AM Mar 15, 2018, 3:10 PM

    I recently migrated my fog installation to a new server and I am getting allot of snapin hash doesn’t match.
    Is there a way to get the hash to match through the shell? Currently, I have been just re-importing them one by one through the GUI.

    Thanks!

    W 1 Reply Last reply Mar 15, 2018, 6:06 PM Reply Quote 0
    • W
      Wayne Workman @Greg Plamondon
      last edited by Mar 15, 2018, 6:06 PM

      @greg-plamondon If you blank that column in the database, the snapin hash service thingy (very technical, I know) will fill them back in with correct ones. Do you know the sql to empty a column?

      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/

      G 1 Reply Last reply Mar 15, 2018, 7:07 PM Reply Quote 0
      • G
        Greg Plamondon Testers @Wayne Workman
        last edited by Greg Plamondon Mar 15, 2018, 1:15 PM Mar 15, 2018, 7:07 PM

        @wayne-workman
        Thanks I will truncate the snapins.sHash table.

        UPDATE snapins SET sHash=NULL;
        
        1 Reply Last reply Reply Quote 1
        • G
          Greg Plamondon Testers
          last edited by Mar 15, 2018, 8:01 PM

          How long should this take? I see a few hashes in the database but there are allot that is still null.

          W 1 Reply Last reply Mar 15, 2018, 8:17 PM Reply Quote 0
          • W
            Wayne Workman @Greg Plamondon
            last edited by Wayne Workman Mar 15, 2018, 2:19 PM Mar 15, 2018, 8:17 PM

            @greg-plamondon I would think in most people’s cases it should happen in minutes or less. How big are your snapins? How many snapins do you have? Any apache error logs related to this? How about the snapin hash log in /opt/fog/log ?

            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
            • T
              Tom Elliott
              last edited by Mar 15, 2018, 8:25 PM

              There is a service called “FOGSnapinHash” that does these checks.

              Maybe check the logs for this?

              The time it takes to get the hash varies quite terribly on the the size of the file to be hashed. For example a 1.5 GB file will take a very long time to get the hash compared to a file the size of 1KB.

              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

              G 1 Reply Last reply Mar 15, 2018, 8:55 PM Reply Quote 0
              • G
                Greg Plamondon Testers @Tom Elliott
                last edited by Greg Plamondon Mar 15, 2018, 3:12 PM Mar 15, 2018, 8:55 PM

                @tom-elliott

                ==> fogsnapinhash.log <==
                [03-15-18 4:48:28 pm]  * Trying Snapin hash for: Synergize Client v13.1, ID: 116
                [03-15-18 4:48:28 pm]  * Getting snapin hash and size for: Synergize Client v13.1.
                [03-15-18 4:48:28 pm]  | Hash: 46ddfd39e74b31fc97f78ce17c6208a5619884e2b75d2c10a53ab5ae842a1fb634230126de53cf11d1305dab04fdcca95c5b50886d453c2fc5f33c46740feb26
                [03-15-18 4:48:28 pm]  * Trying Snapin hash for: Synergize Indexing v13.1, ID: 115
                [03-15-18 4:48:28 pm]  * Getting snapin hash and size for: Synergize Indexing v13.1.
                [03-15-18 4:48:29 pm]  | Hash: 1749c4c8bd5dc664796a0c56305ee2204a26bbc1166e7c263ec51a8f02b70f4a253803f4af141d2da5d4462b3aa599ff88d062fa3313aadf06ae58255b5b0c4f
                [03-15-18 4:48:29 pm]  * Trying Snapin hash for: UAG Components, ID: 56
                [03-15-18 4:48:29 pm]  * Getting snapin hash and size for: UAG Components.
                [03-15-18 4:48:29 pm]  | Hash: d78f69a8ebe78a44e338fb53c6bb287577e24895ded8d233559c74c3c5b063af1cae5fdb2e8637053a4e201da87e16347fa735e11d258788351956b7d9c6db83
                [03-15-18 4:48:29 pm]  * Completed.
                [root@10fogserver fog]#
                

                It says completed but there are allot more snapins that need hashes.
                I did notice that when setting the primary storage group for a snapin it doesn’t stay checked.
                Also when adding or making changes to snapin groups it doesn’t refresh the screen. you have to do it manually by pressing F5 or the browser refresh button.

                Video

                W 1 Reply Last reply Mar 15, 2018, 9:31 PM Reply Quote 0
                • W
                  Wayne Workman @Greg Plamondon
                  last edited by Mar 15, 2018, 9:31 PM

                  @greg-plamondon said in Snapin Hash:

                  I did notice that when setting the primary storage group for a snapin it doesn’t stay checked.

                  How many storage groups do you have? I’ve noticed this too but on a system with only one storage group.

                  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/

                  G 2 Replies Last reply Mar 16, 2018, 12:36 PM Reply Quote 0
                  • G
                    Greg Plamondon Testers @Wayne Workman
                    last edited by Mar 16, 2018, 12:36 PM

                    @wayne-workman
                    I only have 2 storage groups.
                    I looked this morning and the snapin hash was still empty on the majority of the snapins.
                    the one thing I did notice is that the permissions were set to fog:apache on the snapins without hashes and when I upload a snapin through the web interface the permissions are fog:fog.

                    W 1 Reply Last reply Mar 16, 2018, 1:54 PM Reply Quote 0
                    • W
                      Wayne Workman @Greg Plamondon
                      last edited by Mar 16, 2018, 1:54 PM

                      @greg-plamondon said in Snapin Hash:

                      the one thing I did notice is that the permissions were set to fog:apache on the snapins without hashes and when I upload a snapin through the web interface the permissions are fog:fog.

                      Can you correlate which ones have what permissions, and if they have a hash or not?

                      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
                      • G
                        Greg Plamondon Testers @Wayne Workman
                        last edited by Greg Plamondon Mar 16, 2018, 8:16 AM Mar 16, 2018, 2:13 PM

                        @wayne-workman

                        I figured it out!
                        I took a look at the snapinGroupAssoc table and notice that there were some very odd numbers in the sgaStorageID column varying from 1, 4 and even 22.
                        I then ran this query to empty the entire snapinGroupAssoc table:

                        SET FOREIGN_KEY_CHECKS = 0;
                        TRUNCATE snapinGroupAssoc;
                        

                        I then clicked on the “List All Snapins” from the web interface and the snapinGroupAssoc table was repopulated with the Default storage ID for all Snapins, from there I went to each Snapin and assigned the second storage group and the checkmark for primary works!

                        the snapin hash service wasn’t working for the majority of my snapins because the storage group didn’t match any of my actual storage ID’s in the database.

                        1 Reply Last reply Reply Quote 0
                        • G
                          Greg Plamondon Testers
                          last edited by Mar 26, 2018, 3:55 PM

                          You can mark this as solved.

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

                          175

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project