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

Re: Snapin Hash does not exist

Scheduled Pinned Locked Moved Solved
FOG Problems
2
7
1.3k
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.
  • W
    Wayne Workman
    last edited by Aug 22, 2016, 8:56 PM

    Created a new thread, but it’s more or less a continuation of this thread I think:
    https://forums.fogproject.org/topic/7626/snapin-hash-does-not-exist

    @Tom-Elliott I’m afraid this issue has come up again, but I really don’t think that it’s related to file-size this time.

    A co-worker at another site said his snapins aren’t working. I did some investigating. I got the ERROR: Snapin hash does not exist error when trying to deploy a snapin from his fog server’s storage group. His server is in it’s own group by itself and set as master. But when I try to deploy a snapin from the main fog server it works fine.

    I created a new snapin, Google Chrome MSI, which is 54MB in size and put it on his storage group and I get the same error. I’ve re-ran the installer on his storage node, disabled firewall, rebooted, turned off bandwidth reporting, and I can’t get it to work.

    We are using RC-8 with Client 0.11.5.

    Another thing - this is a recent issue. We’ve been using RC-8 for maybe a week now and this just happened.

    Attached is the client log.
    0_1471899304050_fog.log

    notice how the permissions on the file is fog:fog that’s probably an issue. I checked on the main server too, and looked at permissions there. Seems like snapins that have been created in August have the wrong permissions (fog:fog instead of fog:apache).

    0_1471899267241_upload-30263ab2-9ce5-4569-98ef-35d23b4e8bd2

    0_1471899183888_upload-bc9a40bd-9529-42ff-af0f-ca701a59cfd4

    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 @Wayne Workman
      last edited by Tom Elliott Aug 23, 2016, 11:21 AM Aug 23, 2016, 5:20 PM

      @Wayne-Workman This issue, as you undoubtedly found now is not something easily fixable.

      The issue was the special character $ as a part of your password.

      I’m having you test a “fix” that should hopefully escape and store the escaped sequences for us as we speak, but I don’t know of a simpler way to escape characters in bash.

      I’m hoping the test fixes this once and for all, but escaping is a bitch.

      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

      W 1 Reply Last reply Aug 23, 2016, 6:31 PM Reply Quote 1
      • W
        Wayne Workman
        last edited by Wayne Workman Aug 22, 2016, 2:59 PM Aug 22, 2016, 8:59 PM

        Just set permissions on the snapins directory with chown -R fog:apache /opt/fog/snapins and restarted the client, no dice…

        ------------------------------------------------------------------------------
        ---------------------------------SnapinClient---------------------------------
        ------------------------------------------------------------------------------
         8/22/2016 3:57 PM Client-Info Client Version: 0.11.5
         8/22/2016 3:57 PM Client-Info Client OS:      Windows
         8/22/2016 3:57 PM Client-Info Server Version: 1.3.0-RC-8
         8/22/2016 3:57 PM Middleware::Response Success
         8/22/2016 3:57 PM SnapinClient Snapin Found:
         8/22/2016 3:57 PM SnapinClient     ID: -1
         8/22/2016 3:57 PM SnapinClient     Name: 
         8/22/2016 3:57 PM SnapinClient     Created: -1
         8/22/2016 3:57 PM SnapinClient     Action: 
         8/22/2016 3:57 PM SnapinClient     Pack: False
         8/22/2016 3:57 PM SnapinClient     Hide: False
         8/22/2016 3:57 PM SnapinClient     Server: 
         8/22/2016 3:57 PM SnapinClient     TimeOut: -1
         8/22/2016 3:57 PM SnapinClient     RunWith: 
         8/22/2016 3:57 PM SnapinClient     RunWithArgs: 
         8/22/2016 3:57 PM SnapinClient     Args: 
         8/22/2016 3:57 PM SnapinClient     File: 
         8/22/2016 3:57 PM SnapinClient ERROR: Snapin hash does not exist
        ------------------------------------------------------------------------------
        

        0_1471899583872_upload-665c9de5-d85b-479e-978b-47c6fa52db5c

        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
        • W
          Wayne Workman
          last edited by Aug 22, 2016, 9:02 PM

          Setting permissions to chmod -R 775 /opt/fog/snapins and then restarting the fog client also resulted in the exact same error.

          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
          • W
            Wayne Workman
            last edited by Aug 23, 2016, 3:49 PM

            I’ve done a git pull to verify I’m on the latest version of 1.3.0 RC-8, still experiencing the same problem.

            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
            • W
              Wayne Workman
              last edited by Wayne Workman Aug 23, 2016, 10:52 AM Aug 23, 2016, 4:51 PM

              @Tom-Elliott

              When visiting http://x.x.x.x/fog/service/ipxe/boot.php for any of the Storage Nodes, the page returns:

              #!db

              This is the issue.

              I’ve confirmed manually that the fogstorage user/pass works manually from the storage nodes.

              I’ve confirmed the credentials are correct in /opt/fog/.fogsettings

              I’ve confirmed the credentials are correct in /var/www/html/fog/lib/fog/config.class.php

              This leads me to believe that the password itself is causing PHP issues with connecting to the DB.

              I’m testing this theory by changing it to something without special characters.

              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/

              T 1 Reply Last reply Aug 23, 2016, 5:20 PM Reply Quote 0
              • T
                Tom Elliott @Wayne Workman
                last edited by Tom Elliott Aug 23, 2016, 11:21 AM Aug 23, 2016, 5:20 PM

                @Wayne-Workman This issue, as you undoubtedly found now is not something easily fixable.

                The issue was the special character $ as a part of your password.

                I’m having you test a “fix” that should hopefully escape and store the escaped sequences for us as we speak, but I don’t know of a simpler way to escape characters in bash.

                I’m hoping the test fixes this once and for all, but escaping is a bitch.

                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

                W 1 Reply Last reply Aug 23, 2016, 6:31 PM Reply Quote 1
                • W
                  Wayne Workman @Tom Elliott
                  last edited by Aug 23, 2016, 6:31 PM

                  @Tom-Elliott I ended up just resetting the fogstorage password and replacing the $ with an s and ran a script to change this on all nodes.

                  I can continue to test escaping at home though.

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

                  259

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project