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

    Snapins Issue : Hash does not match

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    21
    3.7k
    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

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

                                          Hello,
                                          Sorry for the delay, I just noticed the change made.
                                          I can’t wait to try this tomorrow.
                                          I will come back to you.

                                          @sborgne Bonjour, Merci beaucoup . Je teste cela demain.

                                          Regards.

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

                                          200

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project