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

    Snapin hash does not exist

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    9
    930
    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.
    • Q
      quinniedid
      last edited by

      Ubuntu 18.04.2
      FOG 1.5.7.2

      After migrating my server files and database, I am not able to get the snapins to work.

      In the logs of the client this is what I am seeing:

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       8/5/2019 10:49 AM Client-Info Client Version: 0.11.16
       8/5/2019 10:49 AM Client-Info Client OS:      Windows
       8/5/2019 10:49 AM Client-Info Server Version: 1.5.7.2
       8/5/2019 10:49 AM Middleware::Response Success
       8/5/2019 10:49 AM SnapinClient Running snapin Set IP Address ONLY 
       8/5/2019 10:49 AM SnapinClient ERROR: Snapin hash does not exist
      

      I have tried based on another thread to go into the database and set null to sHash column. I did do that in MariaDB as it appears that is now the database to which FOG uses. Re-ran the installer. Still getting the same error and database shows nothing in the sHash column.

      Any ideas on how to fix this?

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator
        last edited by Quazz

        If a file doesn’t exist, it won’t get a hash, I believe, so verify that the snapin files still exist.

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

          @quinniedid Is the FOGSnapinHash service running on your FOG server? Run ps ax | grep FOGSnapinHash and post output here.

          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
          • Q
            quinniedid
            last edited by

            @Sebastian-Roth

            Here is the command output:

            admin@fog-server:/var/www/fog/service/ipxe$ ps ax | grep FOGSnapinHash
             31163 ?        Ss     0:00 /usr/bin/php -q /opt/fog/service/FOGSnapinHash/FOGSnapinHash &
             31186 ?        S      1:06 /usr/bin/php -q /opt/fog/service/FOGSnapinHash/FOGSnapinHash &
            113518 pts/1    S+     0:00 grep --color=auto FOGSnapinHash
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @quinniedid Please upload your full /var/log/fog/fogsnapinhash.log here.

              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
              • Q
                quinniedid
                last edited by

                @Sebastian-Roth
                Attached is the log. Looks like the hash isn’t ever generated…
                fogsnapinhash.log

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

                  @quinniedid Strange. I will take a look at the code as soon as I find a bit of time.

                  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
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @quinniedid Can’t really figure out what’s going wrong here. Would you be able to add some debug print outs to the PHP code to help us figure this out? I’ll give instructions if you confirm.

                    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
                    • Q
                      Quazz Moderator
                      last edited by Quazz

                      If a file doesn’t exist, it won’t get a hash, I believe, so verify that the snapin files still exist.

                      1 Reply Last reply Reply Quote 1
                      • Q
                        quinniedid
                        last edited by

                        @Sebastian-Roth

                        Thank you for your help!

                        @Quazz

                        You are absolutely right. I always struggle to keep the copying behavior between Linux and robocopy. Sure enough there was a snapin folder inside of the snapin folder. I thought that I had checked that but probably just saw that files were there and did not pay attention to the path. The hashes now exist and I saw that in the logs that it was generated and deploying of those snapins now work as expected.

                        I appreciate everyone’s help and willingness 🙂

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

                        189

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project