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

    Snapins not working properly

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    12
    4.0k
    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.
    • M
      msaglioc99
      last edited by

      Server
      • FOG Version: 1.4.4
      • OS: Kubuntu
      Client
      • Service Version: Smart Installer (11.12)
      • OS: Windows 10 1703
      Description

      Hello,

      I currently have been using FOG to deploy to Windows 10 to machines in mulitpile departments and have been able to do so successfully. I would like to try to start using the “Snapins” Feature FOG has to offer to deploy some software we use here at my company. I have not been able to successfully use any of the “snapin features” even somthing as simple as a run a batch script. I am aware that FOG uses the “system” or “root” user to run these files. I will post screenshots of the permissions to the TMP folder where the files are placed when deployed via snapin. I am able to see the files placed in the TMP folder and the fog installer says the program was installed “successfully” but the software was not. Just wondering if it’s a setting on my workstation or something to do with FOG why I am unable to deploy any snapins. It’s as if the file is deployed no matter what template or file type I use by the files are never ran. I’m assuming it has something to do with a permissions issue![0_1499869154232_IMG_0511.JPG](Uploading 100%) but I can really use some help on this! Let me know your thoughts! Thanks!

      M 1 Reply Last reply Reply Quote 0
      • M
        msaglioc99 @msaglioc99
        last edited by

        @msaglioc99
        0_1499869261000_permissions.PNG

        Wayne WorkmanW 1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman @msaglioc99
          last edited by Wayne Workman

          @msaglioc99 This is most likely an issue with how you’re configuring the snapin. Have you looked over the examples here: https://wiki.fogproject.org/wiki/index.php?title=Snapin_Examples

          For us to really help you get started with Snapins, we need to know what it is your trying to do with snapins, the files you’re working with, where they are, etc.

          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/

          M 1 Reply Last reply Reply Quote 0
          • M
            msaglioc99 @Wayne Workman
            last edited by

            @Wayne-Workman I am configuring the snapin correctly and followed the example. It works properly, i see the file placed in the TMP folder and FOG gives a message stating that the program was installed or the file was ran but any type of file (exe, msi, bat or any kind of script) is always placed in the folder but never ran/executed. This is why I believe it is a permissions issue.

            Tom ElliottT Q 2 Replies Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @msaglioc99
              last edited by

              @msaglioc99 I have to ask how you know it’s not being executed.

              I ask because to know absolutely if it’s being run or not (and it’s running with an expectation the snapin system doesn’t have access to from the client). Can you make your script write to a log file somewhere on the machine. If the log is generated, then you know the script IS or isn’t running absolutely. What the executable being called does is a whole different thing.

              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
              • M
                msaglioc99
                last edited by

                @Tom-Elliott said in Snapins not working properly:

                e to ask how you know it’s not being executed.
                I ask because to know absolutely if it’s being run or not (and it’s running with an expectation the snapin system doesn’t have access to from the client). Can you make your script write to a log file somewhere on the machine. If the log is generated, then you know the script IS or isn’t running abso

                The script is not being ran. The log was not generated.

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

                  @msaglioc99 So your scripts are creating a log already?

                  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

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    msaglioc99 @Tom Elliott
                    last edited by

                    @Tom-Elliott
                    If I manually execute it creates a log file, if I deploy using FOG’s snapin feature a log is generated. Do you have a script that you can send me for a test? Or something you suggest? Something simple ? Just so we can pin point the problem.

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

                      Let’s go the simplest method.

                      Edit one of your batch scripts.

                      At the start have it do something like:

                      echo "Snapin BLAH BLAH beginning installation" > %systemdrive%\fog_snapin_install_snapinname.log
                      

                      At the end, also have it run:

                      echo "Snapin BLAH BLAH ending installation" > %systemdrive%\fog_snapin_install_snapinname.log
                      

                      Try deploying the snapin that fails. When it shows as complete, look on that system to see if the log file was generated and has what you expect.

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

                        @msaglioc99 Permission issues would show up in the FOG client log.

                        That said, not all software can be installed by the SYSTEM user I believe, some require user interaction.

                        What we really need is to see what you’re actually trying to do.

                        1 Reply Last reply Reply Quote 0
                        • M
                          msaglioc99
                          last edited by

                          I want to install MS Project 2016 @Quazz

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            BedCruncher @msaglioc99
                            last edited by

                            @msaglioc99
                            I would suggest using the following. It works also with Office 2k16.

                            Microsoft Office Silent Install

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

                            224

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project