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

Need snapin assistance

Scheduled Pinned Locked Moved
FOG Problems
3
9
3.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.
  • G
    gwhitfield
    last edited by Jul 30, 2016, 7:45 PM

    Can’t seem to get this figured out, have looked at all posts and not getting it. Have created snapin for Adobe Reader DC using 7-zip to create SFX file “AdobeReaderDCInstaller.exe”. This file contains Adobe Reader installer, .MST transform file, and a batch file to run the install command. Snapin deploys okay to …\FOG\tmp but then disappears while fog.log shows this activity.

    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     7/30/2016 3:16 PM Client-Info Client Version: 0.11.4
     7/30/2016 3:16 PM Client-Info Client OS:      Windows
     7/30/2016 3:16 PM Client-Info Server Version: 1.3.0-RC-2
     7/30/2016 3:16 PM Middleware::Response Success
     7/30/2016 3:16 PM SnapinClient Snapin Found:
     7/30/2016 3:16 PM SnapinClient     ID: 103
     7/30/2016 3:16 PM SnapinClient     Name: ReaderDC
     7/30/2016 3:16 PM SnapinClient     Created: 2016-07-30 15:14:24
     7/30/2016 3:16 PM SnapinClient     Action: 
     7/30/2016 3:16 PM SnapinClient     Pack: True
     7/30/2016 3:16 PM SnapinClient     Hide: False
     7/30/2016 3:16 PM SnapinClient     Server: http://192.168.120.19/fog
     7/30/2016 3:16 PM SnapinClient     TimeOut: 0
     7/30/2016 3:16 PM SnapinClient     SnapinPack File: 
     7/30/2016 3:16 PM SnapinClient     SnapinPack Args: 
     7/30/2016 3:16 PM SnapinClient     File: AdobeReaderDCInstaller_exe
     7/30/2016 3:16 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=103
     7/30/2016 3:16 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe
     7/30/2016 3:16 PM SnapinClient Processing SnapinPack AdobeReaderDCInstaller_exe
     7/30/2016 3:16 PM SnapinClient Extracting SnapinPack
     7/30/2016 3:16 PM SnapinClient ERROR: Cannot find central directory
     7/30/2016 3:16 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=103&exitcode=-1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json
    ------------------------------------------------------------------------------
    

    Can’t seem to find any current documentation on the snapin pack creation process which I’m assuming is used if there is more than a single .msi or .exe file with arguments. Not sure if it’s relevant that my AdobeReaderDCInstaller.exe file is being renamed to AdobeReaderDCInstaller_exe, nor how I’m supposed to tell FOG to run the batch file after extraction. Maybe I’ve overlooked documentation that would clarify this process. I’ve seen https://forums.fogproject.org/topic/289/how-to-make-a-simple-snapin-start-to-finish but the referenced pdf document doesn’t seem to be available. Thank you all for any assistance, or for pointing in right direction!

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jul 30, 2016, 7:51 PM

      Would you mind updating to RC-4? Also, is this snapin supposed to be in a “snapin pack” form?

      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

      G 2 Replies Last reply Jul 30, 2016, 8:02 PM Reply Quote 0
      • G
        gwhitfield @Tom Elliott
        last edited by Jul 30, 2016, 8:02 PM

        @Tom-Elliott Will do the update tonight and reply tomorrow. Part of problem is not knowing what a snapin pack is? I have one working snapin which runs a simple batch file but this one is different. Again, I’m assuming a “pack” is appropriate since this one has an executable and transform file and batch file all together.

        1 Reply Last reply Reply Quote 0
        • G
          gwhitfield @Tom Elliott
          last edited by Jul 30, 2016, 8:15 PM

          @Tom-Elliott Got update done, tried again same error.

          ------------------------------------------------------------------------------
          ---------------------------------SnapinClient---------------------------------
          ------------------------------------------------------------------------------
           7/30/2016 4:11 PM Client-Info Client Version: 0.11.4
           7/30/2016 4:11 PM Client-Info Client OS:      Windows
           7/30/2016 4:11 PM Client-Info Server Version: 1.3.0-RC-4
           7/30/2016 4:11 PM Middleware::Response Success
           7/30/2016 4:11 PM SnapinClient Snapin Found:
           7/30/2016 4:11 PM SnapinClient     ID: 104
           7/30/2016 4:11 PM SnapinClient     Name: ReaderDC
           7/30/2016 4:11 PM SnapinClient     Created: 2016-07-30 16:11:21
           7/30/2016 4:11 PM SnapinClient     Action: 
           7/30/2016 4:11 PM SnapinClient     Pack: True
           7/30/2016 4:11 PM SnapinClient     Hide: False
           7/30/2016 4:11 PM SnapinClient     Server: http://192.168.120.19/fog
           7/30/2016 4:11 PM SnapinClient     TimeOut: 0
           7/30/2016 4:11 PM SnapinClient     SnapinPack File: 
           7/30/2016 4:11 PM SnapinClient     SnapinPack Args: 
           7/30/2016 4:11 PM SnapinClient     File: AdobeReaderDCInstaller_exe
           7/30/2016 4:11 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=104
           7/30/2016 4:12 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe
           7/30/2016 4:12 PM SnapinClient Processing SnapinPack AdobeReaderDCInstaller_exe
           7/30/2016 4:12 PM SnapinClient Extracting SnapinPack
           7/30/2016 4:12 PM SnapinClient ERROR: Cannot find central directory
           7/30/2016 4:12 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=104&exitcode=-1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json
          ------------------------------------------------------------------------------
          

          Given my lack of understanding of the snapin process, I’m sure FOG is fine, I’m just not telling it the right things…

          T 1 Reply Last reply Jul 30, 2016, 9:02 PM Reply Quote 0
          • T
            Tom Elliott @gwhitfield
            last edited by Jul 30, 2016, 9:02 PM

            @gwhitfield you can change the snapin type right in the snapin now, if you change it from pack to just normal does it work for you?

            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

            G 1 Reply Last reply Jul 31, 2016, 1:11 AM Reply Quote 0
            • G
              gwhitfield @Tom Elliott
              last edited by Jul 31, 2016, 1:11 AM

              @Tom-Elliott When changed from pack to normal I get this response:

              ------------------------------------------------------------------------------
              ---------------------------------SnapinClient---------------------------------
              ------------------------------------------------------------------------------
               7/30/2016 8:52 PM Client-Info Client Version: 0.11.4
               7/30/2016 8:52 PM Client-Info Client OS:      Windows
               7/30/2016 8:52 PM Client-Info Server Version: 1.3.0-RC-4
               7/30/2016 8:52 PM Middleware::Response Success
               7/30/2016 8:52 PM SnapinClient Snapin Found:
               7/30/2016 8:52 PM SnapinClient     ID: 105
               7/30/2016 8:52 PM SnapinClient     Name: ReaderDC
               7/30/2016 8:52 PM SnapinClient     Created: 2016-07-30 20:50:52
               7/30/2016 8:52 PM SnapinClient     Action: 
               7/30/2016 8:52 PM SnapinClient     Pack: False
               7/30/2016 8:52 PM SnapinClient     Hide: False
               7/30/2016 8:52 PM SnapinClient     Server: http://192.168.120.19/fog
               7/30/2016 8:52 PM SnapinClient     TimeOut: 0
               7/30/2016 8:52 PM SnapinClient     RunWith: cmd.exe
               7/30/2016 8:52 PM SnapinClient     RunWithArgs: /c
               7/30/2016 8:52 PM SnapinClient     Args: ReaderDC.bat
               7/30/2016 8:52 PM SnapinClient     File: AdobeReaderDCInstaller_exe
               7/30/2016 8:52 PM Middleware::Communication Download: http://192.168.120.19/fog/service/snapins.file.php?mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&taskid=105
               7/30/2016 8:52 PM SnapinClient C:\Program Files (x86)\FOG\tmp\AdobeReaderDCInstaller_exe
               7/30/2016 8:52 PM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"Installing ReaderDC\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
              }
               7/30/2016 8:52 PM Bus Emmiting message on channel: Notification
               7/30/2016 8:52 PM SnapinClient Starting snapin...
               7/30/2016 8:52 PM SnapinClient Snapin finished
               7/30/2016 8:52 PM SnapinClient Return Code: 1
               7/30/2016 8:52 PM Bus {
                "self": true,
                "channel": "Notification",
                "data": "{\r\n  \"title\": \"ReaderDC Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\"\r\n}"
              }
               7/30/2016 8:52 PM Bus Emmiting message on channel: Notification
               7/30/2016 8:52 PM Middleware::Communication URL: http://GB-FOGSERVER/fog/service/snapins.checkin.php?taskid=105&exitcode=1&mac=34:17:EB:A6:DA:77||00:00:00:00:00:00:00:E0&newService&json
              ------------------------------------------------------------------------------
              

              but nothing is installed which isn’t surprising as the file is now “AdobeReaderDCInstaller_exe” which doesn’t seem to be a self-extracting .exe file anymore. It downloads to …\FOG\tmp folder but then disappears after execution. I must be mis-configuring the snapin. After setting batch file template and pointing to AdobeReaderDCInstaller.exe and uploading it all goes south.
              0_1469927357331_upload-41aee720-7493-451e-8406-5f2ef7b60992
              That snapin command doesn’t look right at all

              T 1 Reply Last reply Jul 31, 2016, 1:51 AM Reply Quote 0
              • T
                Tom Elliott @gwhitfield
                last edited by Jul 31, 2016, 1:51 AM

                @gwhitfield RC4 had an issue with the regex to replace non valid characters to change out to _ instead of whatever the invalid character was.

                The problem is, I forgot to check about a . character. I have addressed this issue for RC5 though.

                In that case, then, I suppose you still want the snapin as a snapin pack (which @joe-schmitt can help you out more than I can).

                Of course, right now the issue is the filename won’t maintain the period. You can fix this if you absolutely need to by replacing the /var/www/fog/lib/pages/snapinmanagementpage.class.php with the file here: https://raw.githubusercontent.com/FOGProject/fogproject/a4bdcceb8e95bb8fb0c2efc15547f6b2ac0e2b24/packages/web/lib/pages/snapinmanagementpage.class.php

                You can do so by running:
                wget -O /var/www/fog/lib/pages/snapinmanagementpage.class.php https://raw.githubusercontent.com/FOGProject/fogproject/a4bdcceb8e95bb8fb0c2efc15547f6b2ac0e2b24/packages/web/lib/pages/snapinmanagementpage.class.php as root. You will have to replace the file with the proper file you require of course.

                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

                G 1 Reply Last reply Jul 31, 2016, 1:58 AM Reply Quote 0
                • G
                  gwhitfield @Tom Elliott
                  last edited by Jul 31, 2016, 1:58 AM

                  @Tom-Elliott
                  Cool, I’ll look forward to RC5! THANK YOU for hanging in with me on this! I’ll remember to get with @joe-schmitt to get the other details ironed out.

                  1 Reply Last reply Reply Quote 0
                  • W
                    Wayne Workman
                    last edited by Jul 31, 2016, 3:51 AM

                    #wiki need to work on snapin pack article.

                    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
                      8/9
                      Last post

                    199

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project