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

    New client some snapins doesn't work, ok with legacy client

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    27
    10.9k
    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.
    • C
      Claude Girard
      last edited by

      Hi,

      Rev 4586 and last client.
      But problem exist from previous rev, with client 0.9.4

      I have some snapins that copy files in directory like the one in screen capture joined.
      With new client, file is not copied.
      In log, snapin run and seems ok, but no file in target directory.
      With legacy client, file is copied.

      For others snapins, like executables, or other command line tasks, it’s ok with new client.
      Problem only for copy

      fog-snapin_2015-09-10_10-30-31.png

      fog-snapin-log_2015-09-10_10-30-31.png

      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by

        I will attempt to replicate your issue and get back to 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.

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

          I think this feature would help your issue…

          https://forums.fogproject.org/topic/5751/snapin-show-command-during-editing/1

          Give that thread some love.

          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/

          C 1 Reply Last reply Reply Quote 0
          • C
            Claude Girard @Wayne Workman
            last edited by

            @Wayne-Workman said:

            I think this feature would help your issue…

            https://forums.fogproject.org/topic/5751/snapin-show-command-during-editing/1

            Give that thread some love.

            Yes it could help.
            This feature is in rev 4738
            Command seems to be correct.
            On client, I can see the file appear in tmp directory under fog install directory, and disappear after snapin execution, but no copy in my target directory

            snapin-fog-rev4738.png

            1 Reply Last reply Reply Quote 0
            • J
              Joe Schmitt Senior Developer
              last edited by Joe Schmitt

              I cannot replicate this issue. I’ve replicated your snapin configuration and it works fine. According to the log you posted, the issue is with a configuration on your computer, not the client (the return Code 1). Try running the command on the machine manually (using a local copy of your license.dat file).

              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.

              C 2 Replies Last reply Reply Quote 1
              • C
                Claude Girard @Joe Schmitt
                last edited by

                @Jbob said:

                I cannot replicate this issue. I’ve replicated your snapin configuration and it works fine. According to the log you posted, the issue is with a configuration on your computer, not the client (the return Code 1). Try running the command on the machine manually (using a local copy of your license.dat file).

                Yes manually it works.
                And remember, I said that after uninstall new client and install legacy one, it works.
                I’ll try debug utility, to see if I can find more informations.
                I don’t know if it can help, but client is installed on Win 8.1, with French parameters (but I have no accented characters in files or directory names)

                1 Reply Last reply Reply Quote 0
                • C
                  Claude Girard @Joe Schmitt
                  last edited by

                  @Jbob Sorry but another Fog user confirmed that no file is copied.
                  After capturing processes on clients, I think I have found what is causing the issue.
                  Here is the command line executed on client:

                  “c:\windows\system32\cmd.exe” /C copy /Y "C:\Program Files (x86)\FOG\tmp\activ-licences-labview-mp206.txt "C:\tmp

                  I think space is missing before snapin arguments

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

                    @Claude-Girard said:

                    “c:\windows\system32\cmd.exe” /C copy /Y "C:\Program Files (x86)\FOG\tmp\activ-licences-labview-mp206.txt "C:\tmp

                    I think space is missing before snapin arguments

                    To me, it looks like the space is just in the wrong spot. see the trailing space before the end-quote?

                    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/

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Claude Girard @Wayne Workman
                      last edited by

                      @Wayne-Workman Yes, maybe.
                      But this command line is the one generated by new fog client.
                      I don’t know why this space is in bad place, but this command line, when executed in a terminal window, give an error.
                      with a space before C:\tmp, no more error.

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

                        Looking at the source code I find that the spaces are set correct. Although I am not that good at C# code. Take a look yourself: https://github.com/FOGProject/fog-client/blob/dev/Modules/SnapinClient/SnapinClient.cs#L177

                        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
                        • J
                          Joe Schmitt Senior Developer
                          last edited by Joe Schmitt

                          @Claude-Girard
                          This is a bug that is fixed in my nightly builds (as seen by @Uncle-Frank 's link). For now you should be able to add a space infront of
                          “C:\tmp” in your “Snapin Arguments” field. Hopefully that should serve as a hot-fix.

                          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.

                          C 1 Reply Last reply Reply Quote 1
                          • C
                            Claude Girard @Joe Schmitt
                            last edited by

                            @Jbob said:

                            @Claude-Girard
                            This is a bug that is fixed in my nightly builds (as seen by @Uncle-Frank 's link). For now you should be able to add a space infront of
                            “C:\tmp” in your “Snapin Arguments” field. Hopefully that should serve as a hot-fix.

                            I have already tried to add space before argument, but it is ignored, maybe because of html interpretation ?

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

                              I have to double check, but I’m pretty sure I added the same type of code sanitization to the run with, file, run with args fields as I do with printers. I won’t solve this until I am certain. This does not mean all bad entries from before will automatically work, but it should be fixed after updating.

                              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

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                Claude Girard @Tom Elliott
                                last edited by

                                @Tom-Elliott said:

                                I have to double check, but I’m pretty sure I added the same type of code sanitization to the run with, file, run with args fields as I do with printers. I won’t solve this until I am certain. This does not mean all bad entries from before will automatically work, but it should be fixed after updating.

                                Hi Tom

                                I think it isn’t solved.
                                I don’t know if it’s like in:
                                https://forums.fogproject.org/topic/5931/rev-4932-snapins-parameters-with-in-command-not-correct-in-database/9

                                But in advanced pxe menu, when I write what you can see in screen captures, escape characters and accentued french characters are badly saved in database tables.

                                I think all these symptoms are linked, and caused by bad locales ? (my server is UTF8) or by escaped characters interpreted by PHP ?

                                Thanks again for your work.
                                Screen captures are from rev 5273

                                In FOG Gui:

                                Capture d’écran_2015-11-09_12-10-52.png

                                In database:

                                Capture d’écran_2015-11-09_12-09-52.png

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Claude Girard
                                  last edited by

                                  Bad screen capture in previous post

                                  In database:

                                  Capture d’écran_2015-11-09_12-09-52.png

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

                                    @Claude-Girard what’s the advanced file actually show? Does it display with the escaped code, or as the actual characters.

                                    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

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      Claude Girard @Tom Elliott
                                      last edited by

                                      @Tom-Elliott said:

                                      @Claude-Girard what’s the advanced file actually show? Does it display with the escaped code, or as the actual characters.

                                      As you can see, && become &amp&amp in database, d’ become d&#039

                                      If I modify directly in database and save it, in FOG Gui all seems ok, characters are ok.

                                      But if I save PXE Menu from Gui, after that in database characters are with escaped code again

                                      Tom ElliottT 2 Replies Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @Claude Girard
                                        last edited by

                                        @Claude-Girard I’m still confused. What does the advanced menu have to do with snapins?

                                        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

                                        C 1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott @Claude Girard
                                          last edited by

                                          @Claude-Girard Beyond that, what does the advanced menu show when you go to it in browser?

                                          http://ip.of.fog.srv/fog/service/ipxe/advanced.php

                                          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

                                          C 1 Reply Last reply Reply Quote 0
                                          • C
                                            Claude Girard @Tom Elliott
                                            last edited by

                                            @Tom-Elliott said:

                                            @Claude-Girard I’m still confused. What does the advanced menu have to do with snapins?

                                            Nothing to do with snapins, but I understood when you reopened issue, that it was a similar problem than :
                                            https://forums.fogproject.org/topic/5931/rev-4932-snapins-parameters-with-in-command-not-correct-in-database/9

                                            Maybe I am wrong but isn’t it the same problem when you say:
                                            “I’m pretty sure I added the same type of code sanitization to the run with, file, run with args fields as I do with printers.”

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

                                            168

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project