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

    Snapins Issue : Hash does not match

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    21
    3.5k
    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.
    • D
      DARUN974
      last edited by

      Hello
      My configuration
      FOG Version 1.5.9
      Serveur Ubuntu 20.04.2 LTS
      Client OS : Win10 20H2

      I try to use snapin to deploy apps in windows client.
      Snapins creation done .
      I modifiy in php.ini:
      memory_limit à 1900M.
      post_max_size à 1900M.
      upload_max_filesize à 1900M
      And restart apache2

      I upload Setup_SimpeStickyNotes.exe from web for test
      I upload my snapins files from my local computer.
      When I look in C:\Program Files (x86)\FOG\tmp, files are only 1KB
      here is my fog.log :


      ---------------------------------SnapinClient---------------------------------

      04/06/2021 10:48:03 Client-Info Client Version: 0.12.0
      04/06/2021 10:48:03 Client-Info Client OS: Windows
      04/06/2021 10:48:03 Client-Info Server Version: 1.5.9
      04/06/2021 10:48:03 Middleware::Response Success
      04/06/2021 10:48:03 SnapinClient Running snapin TEST
      04/06/2021 10:48:03 Middleware::Communication Download: http://172.21.248.20//fog/service/snapins.file.php?mac=64:5D:86:A3:07:5A|64:5D:86:A3:07:5B|66:5D:86:A3:07:5A|8C:16:45:C3:7A:74|64:5D:86:A3:07:5E&taskid=11
      04/06/2021 10:48:03 SnapinClient C:\Program Files (x86)\FOG\tmp\Setup_SimpleStickyNotes.exe
      04/06/2021 10:48:03 SnapinClient ERROR: Hash does not match
      04/06/2021 10:48:03 SnapinClient ERROR: --> Ideal: 273D64F36ED3BC939E24F73E3DFCBFCA4786FC5D0B2F170908094B6D50D7DBF8D0F3721625F7E42D20287495D590B575680DFC5CB6D8AA1FCEB4E2F02954EFF1
      04/06/2021 10:48:03 SnapinClient ERROR: --> Actual: BFBA49E97B70CC6E124CAD15C3775245230B9BCEE4E7641566AC88B812D2822C39C58A3797A2FDE9B5E4721D24DF20A9D66490236688FBD39E7DCE154C51C365
      04/06/2021 10:48:03 Middleware::Communication URL: http://172.21.248.20/fog/service/snapins.checkin.php?taskid=11&exitcode=-1&mac=64:5D:86:A3:07:5A|64:5D:86:A3:07:5B|66:5D:86:A3:07:5A|8C:16:45:C3:7A:74|64:5D:86:A3:07:5E&newService&json

      Is it a problem in my log fog i see:
      04/06/2021 10:48:03 Middleware::Communication Download: http://172.21.248.20//fog/service/snapins.file.
      There 's two '//" after ‘http://172.21.248.20’.
      Thank-you.
      Sorry for my english , i’m french

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

        @darun974 said in Snapins Issue : Hash does not match:

        There 's two '//" after ‘http://172.21.248.20’.

        While that might look a bit strange it’s not an issue. Apache webserver and fog-client can handle this double slash.

        When I look in C:\Program Files (x86)\FOG\tmp, files are only 1KB

        Really, the Setup_SimpleStickyNotes.exe file is only 1 KB in size in the tmp folder? That’s probably a pointer to why it’s not working. First let’s check the file on the FOG server:

        ls -al /opt/fog/snapins/Setup_SimpleStickyNotes.exe
        sha512sum /opt/fog/snapins/Setup_SimpleStickyNotes.exe
        

        Run those commands on the FOG server console (e.g. SSH) and post the 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
        • D
          DARUN974
          last edited by

          Good evening
          Please find below the result of the two data commands:
          Capture d’écran du 2021-06-04 21-35-20.png

          Capture d’écran du 2021-06-04 21-35-48.png

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

            @DARUN974 OK, so the size and hash sum of that file in the server looks fine I think. There must be something going wrong when the file is being downloaded from the server.

            Do you have a proxy server in your network? Or maybe this is caused by an anti virus program in the fog-client host?

            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
            • D
              DARUN974
              last edited by

              Hi ,
              No antivirus is installed on the client workstation.
              There is the proxy which is entered in the parameters of WIN10.
              Manual configuration.
              Box checked “do not use the proxy server for local addresses”
              Thanks for your help

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

                @DARUN974 Can you disable the Windows proxy setting for testing. Manually restart the FOGService (Windows service management) after disabling proxy and check fog.log again.

                As well you might want to take a look at the 1 kilo byte file in FOG\tmp\ folder using a proper editor like Notepad++. I am wondering if it looks like binary content or maybe we find readable text as hint on why this fails.

                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
                • D
                  DARUN974
                  last edited by

                  I have disabled the Windows proxy setting. Manually restarted the FOGService.
                  I deleted the different snapins and created a new one.
                  It’s the same error in the fog.log file.
                  This is what the file contained in FOG \ tmp contains:
                  “#! er: Could not read snapin file”

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

                    @darun974 said in Snapins Issue : Hash does not match:

                    “#! er: Could not read snapin file”

                    Ahh, well that’s a pointer to what’s going wrong. This messages comes from the FOG server as it’s not able to open that file for reading the binary data (code ref).

                    First check the path set in FOG Configuration -> FOG Settings -> FOG Client - Snapins -> SNAPINDIR to make sure this is pointing to the right directory. Should be /opt/fog/snapins/.

                    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
                    • D
                      DARUN974
                      last edited by

                      Hello,
                      The path defined in FOG Configuration -> FOG Settings -> FOG Client - Snapins -> is: / opt / fog / snapins /.
                      The rights to the Setup_SimpleStickyNotes.exe file are complete for everyone.
                      Capture d’écran du 2021-06-08 10-58-53.png

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

                        @Tom-Elliott Have you seen this happen before? I have not tested snapins myself in a long time but I guess we would have heard about it if this is a general issue with FOG 1.5.9.

                        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

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

                          @sebastian-roth I would agree that if this were a common issue, some of our users who use Snapins a lot (@Greg-Plamondon) would have likely noted it for us already.

                          is /opt/fog/snapins a link to another directory on your FOG Server? Maybe to an NFS or CIFS mounted share? (ls -al /opt/fog should be sufficient to at least tell us if it’s local or linked at least.)

                          When the snapin is read, it’s read in binary mode. If, for some reason, the web service cannot read it (which we can see from /opt/fog/snapins being owned by fogproject:fogproject) it will give this issue. This should be fixed if you change the permissions from fogproject:fogproject to fogproject:www-data chown -R fogproject:www-data /opt/fog/snapins I would think.

                          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

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

                            @Tom-Elliott Good point about maybe /opt/fog/snapins/ being on a different filesystem.
                            Don’t think it’s an ownership/access issue as rights are set to 777, so any user would be able to read that file. Same for the directory.

                            @DARUN974 Beside Tom’s command, please also run mount | grep opt 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
                            • D
                              DARUN974
                              last edited by

                              Hello
                              FOG is installed on the root
                              There is no link.
                              Just a link for images.
                              Capture d’écran du 2021-06-09 11-01-14.png
                              I changed the permissions of fogproject: fogproject to fogproject: www-data
                              But still the same error.

                              Result of the command: mount | grep opt:
                              Capture d’écran du 2021-06-09 11-04-22.png

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

                                @DARUN974 I am at a loss on why it runs into this problem. Just doesn’t make sense to me at the moment.

                                @testers Anyone using snapins with FOG 1.5.9 who can confirm this should be working??

                                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
                                • D
                                  DARUN974
                                  last edited by

                                  Hello,
                                  Thanks for your help.
                                  On my side, I continue to check my network configuration: proxy …
                                  I am in national education, we use the different modules of the EOLE distribution for our systems.
                                  The installation of the FOG server was done using an eole_fog package provided by EOLE

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

                                    @darun974 said in Snapins Issue : Hash does not match:

                                    The installation of the FOG server was done using an eole_fog package provided by EOLE

                                    Well that is interesting. I have never heard of EOLE. @Tom-Elliott Do you know about this?

                                    https://dev-eole.ac-dijon.fr/projects/eole-fog

                                    Not sure if their setup process might have caused this. When I find a bit of time I might take a closer look at this. @DARUN974 Are you in contact with the developers of EOLE?

                                    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

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

                                      @sebastian-roth I’ve never heard of this either.

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        DARUN974
                                        last edited by

                                        @sebastian-roth said in Snapins Issue : Hash does not match:

                                        @DARUN974 Are you in contact with the developers of EOLE?

                                        Hello,
                                        I am not “really” in contact with the EOLE developers.
                                        We use a forum to ask our questions: scribe@listeseole.ac-dijon.fr
                                        I will see if other users have encountered this problem.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          sborgne
                                          last edited by

                                          Bonjour,

                                          J’ai rencontré le même problème, la configuration de php est en cause.

                                          Vérifiez dans le fichier php.ini que la variable allow_url_fopen est à On.
                                          Redémarrez apache si vous faites la modification de Off à On, puis effectuez des tests.

                                          Sous EOLE, lors de la mise à jour automatique, le “reconfigure” va écraser la configuration php et remettre la variable à Off, il faut créer un patch creole pour péréniser la configuration allow_url_fopen=On.

                                          Le problème n’est donc pas lié à fog mais à EOLE.

                                          MP si vous voulez sur stephane DOT borgne AT savoie DOT fr

                                          Cordialement,

                                          Hi,

                                          It’s a php misconfiguration specific recurently applied by EOLE distribution update process.

                                          Issue is not from fog.

                                          Regards,

                                          Stéphane

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

                                            @sborgne Oh, that sounds reasonable! Thanks heaps for posting here.

                                            @DARUN974 Definitely take a look at the php.ini settings as suggested!

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

                                            162

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project