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

    Deploying Single Snapins to Group All

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    35
    10.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
      MarkusK
      last edited by MarkusK

      Server
      • FOG Version: 1.3.4
      • OS: Ubuntu 14.04
      Description

      I have problems deploying several snapins to all hosts.

      I deleted all active tasks, active snapin tasks and scheduled task. I created a group called “All” and added all hosts as members.

      I select the group “All”, Advanced, Basic Task, Single Snapin and deploy a snapin (.exe) with Schedule Instant (.exe). That works fine.
      I select athe group “All”, Advanced, Basic Task, Single Snapin (.exe) and deploy another snapin with Schedule Instant.

      The error message:

      Failed to create tasking to some or all All Failed to start tasking type Single Snapin There is a host in a tasking

      A way to avoid this message, is to choose “Schedule Delayed”, choose a date in the future and deploy. The problem is, that this task get stuck in the “Scheduled Tasks” forever and never deploys the snapin.

      I also can deploy the same snapin via manage hosts, choose a host, basic tasks, advanced, single snapin. That works. But repeating this for 180 hosts is not so funny.

      This process worked in version 1.2.0

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

        Anyone with a hint? I truncated snapinTask, snapinJobs, tasks table with no success. I only added one host to the group, with no success. After I try to deploy a second single snapin I always get the error

        Failed to create tasking to some or all All Failed to start tasking type Single Snapin There is a host in a tasking

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

          @MarkusK The database maintenance commands should clear out any stale jobs from the database that are preventing you from using groups.
          https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Database_Maintenance_Commands

          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
            MarkusK @Wayne Workman
            last edited by MarkusK

            I cleaned the stale jobs, without success. Is it a bug? Can someone reproduce?

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

              @MarkusK Did you run all of those commands though?

              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
                MarkusK @Wayne Workman
                last edited by MarkusK

                @Wayne-Workman Yes, all of them. Can you reproduce the error?

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

                  @MarkusK I think Tom did some work on groups and snapins, those changes are in 1.3.5 stable, can you update and see if it’s still an issue?

                  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
                    MarkusK @Wayne Workman
                    last edited by

                    @Wayne-Workman I upgraded to 1.3.5 and have still the same error.

                    I create a group, add one host into the group and deploy a single snapin to the group. The second time i want to deploy a single snapin to this group, I always get the error:

                    Failed to create tasking to some or all

                    All Failed to start tasking type Single Snapin
                    There is a host in a tasking

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

                      @MarkusK This is expected.

                      Snapins are “Tasks” in and of themselves. So deploying a snapin, and “redepoying” immediately after there SHOULD be this error. Groups are not hosts and have no nice means to know about hosts in the same manner as an individual host.

                      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
                        MarkusK @Tom Elliott
                        last edited by

                        @Tom-Elliott said in Deploying Single Snapins to Group All:

                        ns are “Tasks” in and of themselves. So deploying a snapin, and “redepoying” immediately after there SHOULD be this error. Groups are not hosts and have no nice means to know about hosts in the same manner as an individual host.

                        I was used to deploy different snapins to the “all” group in 1.2.0 like this. How do you deploy, lets say ugly Flash or Java, every month to all hosts without clicking like hell?

                        Tom ElliottT JunkhackerJ 3 Replies Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @MarkusK
                          last edited by

                          @MarkusK Why not just make a pack and perform them independently

                          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
                          • Tom ElliottT
                            Tom Elliott @MarkusK
                            last edited by

                            @MarkusK The methods 1.2.0 worked, but were EXTREMELY slow to perform.

                            There are many changes between 1.2.0 and 1.3.X. I will see if I can maybe make it work, but they’re not working even remotely close to how it was done in the past. (This is intentional.)

                            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
                            • JunkhackerJ
                              Junkhacker Developer @MarkusK
                              last edited by

                              @MarkusK I recommend you simply wait until there are no active imaging tasks before you create the snapin task, also you may have some luck with using a scheduled task for this

                              signature:
                              Junkhacker
                              We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                                @Junkhacker I have no imaging tasks running during the creation of snapin tasks. Scheduled tasks can be sumitted, but never run.

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

                                  @MarkusK Snapins are also considered “taskings”.

                                  So, if you “schedule” single snapin, each of the hosts in the group now suddenly have a “tasking” in the tasking table (even though it’s not an imaging task).

                                  This is the “tasking” he’s referring to.

                                  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
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by

                                    So, I’ve updated to enable the usage of groups to deploy single snapins properly now. Please see:

                                    https://github.com/FOGProject/fogproject/commit/83d189a4de1017eedb8266b6630f10b73bbde4d9

                                    If you must have/see this now, please switch to the github working branch. I’m not considering this a “feature” as it had existed in the past. I’m not considering this a bug because it did require a whole new logic flow to ensure tasking can be done as expeditiously as possible.

                                    Because of the testing I’ve also moved the tasking submission button to display before the list of hosts in the tasking (as I don’t like scrolling to the bottom of the page just to submit my form element here).

                                    Hopefully this fits the bill for what you needed/wanted properly.

                                    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
                                      MarkusK @Tom Elliott
                                      last edited by

                                      @Tom-Elliott Thank you very much for effort!

                                      I moved to the working branch and installed it. After the update I was no longer able to login. I reset the password, but this didn’t help. So unfortunatly I couldn’t test your changes.

                                      I really would like to see this in action, because deploying different snapins to groups is one of my main workflows.

                                      Any chance you can help me testing this?

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

                                        @MarkusK please repull and try again. I meant to remove a “testing” element that I found a similar problem but had reset for other reasons. Readded and pushed.

                                        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
                                          MarkusK @Tom Elliott
                                          last edited by MarkusK

                                          @Tom-Elliott Thanks. I moved to 1.4.0-RC-3. I now can submit several Single Snapins to a group. There’s just some strange behaviour. The first time i submit a single snapin to a group with 100 clients, I can see 100 Snapin Task under Task Managment…Active Snapin Tasks. The second time I submit a Single Snapin to 100 clients, there are only 2 Snapin Tasks created. When I repeat the last step, aprox. 20 Snain Tasks are created. I somehow also expect 100 Single Snapin Tasks under Task Managment…Active Snapin Task. When I click Task Management…Active Tasks… I only get a white page.

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

                                            @MarkusK The strangeness of what you’re seeing seems to be odd for sure, but not the end of the world right now I suppose.

                                            Can you provide your apache error logs after going to the Active Tasks page? When pages go white as you’re describing it usually indicates a syntax issue, or there was a memory usage issue. If it is syntax related, chances are it will point us to the issue so I can provide a fast fix for the problem.

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            317

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project