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

    Snapins not deploying: Illegal characters in path.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    14
    339
    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.
    • S
      sideone @JJ Fullmer
      last edited by

      @JJ-Fullmer its happening on all snapins, but it tries the first one and then stops.

      FOG.log for the snapin today:

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       17/10/2024 08:41:58 Client-Info Client Version: 0.13.0
       17/10/2024 08:41:58 Client-Info Client OS:      Windows
       17/10/2024 08:41:58 Client-Info Server Version: 1.6.0-beta.2135
       17/10/2024 08:41:58 Middleware::Response Success
       17/10/2024 08:41:58 SnapinClient Running snapin IPEvo-Visualiser
       17/10/2024 08:41:58 Middleware::Communication Download: ://10.xx.xx.xx//fog/service/snapins.file.php?mac=0C:9D:92:C9:DE:33|0C:9D:92:C9:DE:32&taskid=1700
       17/10/2024 08:41:58 Middleware::Communication ERROR: Could not download file
       17/10/2024 08:41:58 Middleware::Communication ERROR: Illegal characters in path.
       17/10/2024 08:41:58 SnapinClient C:\Program Files (x86)\FOG\tmp\Visualizer_win7-11_v3.6.0.1.msi
       17/10/2024 08:41:59 Middleware::Communication URL: http://10.xx.xx.xx/fog/service/snapins.checkin.php?taskid=1700&exitcode=-1&mac=0C:9D:92:C9:DE:33|0C:9D:92:C9:DE:32&newService&json
      ------------------------------------------------------------------------------
      

      The only things in the www-error.log:

      [17-Oct-2024 07:41:24 UTC] PHP Warning:  Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 335
      [17-Oct-2024 07:41:24 UTC] PHP Warning:  Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 340
      [17-Oct-2024 07:41:24 UTC] PHP Warning:  Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 398
      [17-Oct-2024 07:42:05 UTC] PHP Warning:  Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 335
      
      JJ FullmerJ 2 Replies Last reply Reply Quote 0
      • S
        sideone
        last edited by

        6c92cfb5-60e3-4b83-9942-4b0b86a58817-image.png

        1 Reply Last reply Reply Quote 0
        • JJ FullmerJ
          JJ Fullmer Testers @sideone
          last edited by

          @sideone So the taskid increment is normal, that’s the id of that specific task.

          I just tested a snapin on my server which is on the same version of 1.6.0 and didn’t have the issue. But I did notice something glaring

          17/10/2024 08:41:58 Middleware::Communication Download: ://10.xx.xx.xx//fog/service/snapins.file.php?mac=0C:9D:92:C9:DE:33|0C:9D:92:C9:DE:32&taskid=1700

          The download url is missing http or https

          So we need to work out why that’s happening.

          Have you tried the FogApi powershell module? It's pretty cool IMHO
          https://github.com/darksidemilk/FogApi
          https://fogapi.readthedocs.io/en/latest/
          https://www.powershellgallery.com/packages/FogApi
          https://forums.fogproject.org/topic/12026/powershell-api-module

          S 1 Reply Last reply Reply Quote 0
          • S
            sideone @JJ Fullmer
            last edited by

            @JJ-Fullmer yes, that could be it. I’ve found a FOG.log from a few weeks ago that has http:// in the download link:

            ------------------------------------------------------------------------------
            ---------------------------------SnapinClient---------------------------------
            ------------------------------------------------------------------------------
             03/10/2024 11:22:15 Client-Info Client Version: 0.13.0
             03/10/2024 11:22:15 Client-Info Client OS:      Windows
             03/10/2024 11:22:15 Client-Info Server Version: 1.6.0-beta.2132
             03/10/2024 11:22:15 Middleware::Response Success
             03/10/2024 11:22:15 SnapinClient Running snapin LetterJoin Fonts - Little Mead
             03/10/2024 11:22:15 Middleware::Communication Download: http://10.xx.yy.zz//fog/service/snapins.file.php?mac=B4:B6:86:DF:3A:9B|92:32:4B:5B:31:DD|D2:32:4B:5B:31:DD|90:32:4B:5B:31:DE||90:32:4B:5B:31:DD&taskid=1618
             03/10/2024 11:22:38 SnapinClient C:\Program Files (x86)\FOG\tmp\f1k1w2x2z2.msi
             03/10/2024 11:22:38 Bus Emmiting message on channel: Notification
             03/10/2024 11:22:38 SnapinClient Starting snapin
             03/10/2024 11:22:40 SnapinClient Snapin finished
             03/10/2024 11:22:40 SnapinClient Return Code: 0
             03/10/2024 11:22:40 Bus Emmiting message on channel: Notification
             03/10/2024 11:22:40 Middleware::Communication URL: http://10.xx.yy.zz/fog/service/snapins.checkin.php?taskid=1618&exitcode=0&mac=B4:B6:86:DF:3A:9B|92:32:4B:5B:31:DD|D2:32:4B:5B:31:DD|90:32:4B:5B:31:DE||90:32:4B:5B:31:DD&newService&json
            ------------------------------------------------------------------------------
            
            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • JJ FullmerJ
              JJ Fullmer Testers @sideone
              last edited by

              @sideone Are you getting different IP addresses in the snapin download url and the communication url? i.e. is the communication URL going to your master and the download going to a storage node? Maybe a storage node has something goofy in its storage node config?

              The communication url is derived from the c:\program files (X86)\Fog\settings.json file where it uses the Https flag, server name, and webroot values to construct that base url i.e. http://10.xx.xx.xx/fog
              I’m not sure if the download url is combo of the settings.json file with info from the server or if it’s just from the server or what. But your download url is missing the http/https and is also has an extra slash.

              P.S. you don’t really need to hide the ip of the fog server. It’s an internal subnet only ip address, it doesn’t expose anything to say what ip you’re using. Do whatever makes you feel safe, just saying is all.

              Have you tried the FogApi powershell module? It's pretty cool IMHO
              https://github.com/darksidemilk/FogApi
              https://fogapi.readthedocs.io/en/latest/
              https://www.powershellgallery.com/packages/FogApi
              https://forums.fogproject.org/topic/12026/powershell-api-module

              S 1 Reply Last reply Reply Quote 1
              • S
                sideone @JJ Fullmer
                last edited by

                @JJ-Fullmer You were correct about the download link not being formed properly. I went looking in the code and found a change in the /var/www/html/fog/lib/client/snapinclient.class.php file from a working version of FOG (1.6 beta 2132) to the latest version.

                Copying over the old version of this file and snapins are installing correctly now.

                @Tom-Elliott this should probably be moved to the Bug Reports forum if that’s possible? The difference in the files is the latest version is missing the below code around line 185

                $location = sprintf(
                  '%s://%s/%s',
                   self::$httpproto,
                   $StorageNode->get('ip'),
                   $StorageNode->get('webroot')
                );
                

                and there are a few changes elsewhere too.

                Thanks all!

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

                  @sideone You use location plugin, correct?

                  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

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

                    @sideone I’ve pushed another fix that I think might help here and it takes a slightly different approach albeit similar.

                    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

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sideone @Tom Elliott
                      last edited by

                      @Tom-Elliott said in Snapins not deploying: Illegal characters in path.:

                      You use location plugin, correct?

                      Yes, that’s right.

                      I’ve pushed another fix that I think might help here and it takes a slightly different approach albeit similar.

                      Awesome, thanks. I’ll give it a try today

                      1 Reply Last reply Reply Quote 0
                      • S
                        sideone @Tom Elliott
                        last edited by

                        @Tom-Elliott updated to 2138 but now snapins not working. No http or https in the Communication download string. This is on the master FOG server, I haven’t updated the storage nodes yet.

                        ------------------------------------------------------------------------------
                        ---------------------------------SnapinClient---------------------------------
                        ------------------------------------------------------------------------------
                         18/10/2024 11:10:05 Client-Info Client Version: 0.13.0
                         18/10/2024 11:10:05 Client-Info Client OS:      Windows
                         18/10/2024 11:10:05 Client-Info Server Version: 1.6.0-beta.2138
                         18/10/2024 11:10:05 Middleware::Response Success
                         18/10/2024 11:10:05 SnapinClient Running snapin IPEvo-Visualiser
                         18/10/2024 11:10:05 Middleware::Communication Download: ://10.16.46.84//fog/service/snapins.file.php?mac=0C:9D:92:C9:DE:33|0C:9D:92:C9:DE:32&taskid=1711
                         18/10/2024 11:10:05 Middleware::Communication ERROR: Could not download file
                         18/10/2024 11:10:05 Middleware::Communication ERROR: Illegal characters in path.
                         18/10/2024 11:10:05 SnapinClient C:\Program Files (x86)\FOG\tmp\Visualizer_win7-11_v3.6.0.1.msi
                         18/10/2024 11:10:05 Middleware::Communication URL: http://10.16.46.84/fog/service/snapins.checkin.php?taskid=1711&exitcode=-1&mac=0C:9D:92:C9:DE:33|0C:9D:92:C9:DE:32&newService&json
                        ------------------------------------------------------------------------------
                        

                        Restoring the /var/www/html/fog/lib/client/snapinclient.class.php file from beta 2132 starts working again

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

                          @sideone If you’re willing to try the latest pull?

                          I’m trying to do it while having the new features of location plugin that were added in dev-branch. I apologize for the many iterations, but I think it should work now as I have failsafes in place too now.

                          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

                          S 1 Reply Last reply Reply Quote 2
                          • S
                            sideone @Tom Elliott
                            last edited by

                            @Tom-Elliott latest pull working correctly again. Thanks for sorting!

                            1 Reply Last reply Reply Quote 1
                            • [[undefined-on, S sideone, ]]
                            • 1 / 1
                            • First post
                              Last post

                            249

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project