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

Snapin hash does not exist

Scheduled Pinned Locked Moved Solved
FOG Problems
3
9
929
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 Aug 5, 2019, 5:13 PM

    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 Aug 8, 2019, 6:57 AM Aug 8, 2019, 12:57 PM

      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 Aug 5, 2019, 8:57 PM

        @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 Aug 6, 2019, 3:51 PM

          @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 Aug 6, 2019, 6:08 PM

            @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 Aug 6, 2019, 9:52 PM

              @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 Aug 7, 2019, 12:56 PM

                @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 Aug 8, 2019, 9:12 AM

                  @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 Aug 8, 2019, 6:57 AM Aug 8, 2019, 12:57 PM

                    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 Aug 8, 2019, 4:15 PM

                      @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
                      1 / 1
                      • First post
                        4/9
                        Last post

                      165

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project