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

Cannot run snapins

Scheduled Pinned Locked Moved
FOG Problems
4
15
4.7k
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.
  • D
    dislikeusernames
    last edited by Jun 27, 2014, 4:08 AM

    I can create and upload snapins with no problem. I can even add them to individual hosts. However, when I try to Task Management to actually run the snapin, I get an error that reads, “Failed to create deploy task. Snapins are already deployed to this host.” (Even though there are no snapins running.) When I go to Active Snapin Tasks, it says “No Results Found.” I am not trying to join a domain. I just can’t run a snapin. I had this problem on 1.0.1, so I deleted the whole Fog installation and database, downloaded and installed 1.1.2, and created new hosts, images, and snapins. Same problem. Any thoughts?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 27, 2014, 10:35 AM

      Are you okay with getting me some information?

      Open a terminal to your fog server and connect to the mysql instance. My commands below assume you have the password blank:
      [code]mysql -u root fog
      select * from snapinJobs;
      select * from snapinTasks;[/code]

      If you have a mysql password the first line should look like:
      [code]mysql -u root -p fog[/code]

      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
      • D
        dislikeusernames
        last edited by Jun 27, 2014, 2:15 PM

        mysql> select * from snapinJobs;
        ±-----±---------±----------±--------------------+
        | sjID | sjHostID | sjStateID | sjCreateTime |
        ±-----±---------±----------±--------------------+
        | 8 | 1 | 0 | 2014-06-27 02:26:09 |
        ±-----±---------±----------±--------------------+
        1 row in set (0.00 sec)

        mysql> select * from snapinTasks;
        Empty set (0.00 sec)

        1 Reply Last reply Reply Quote 0
        • T
          Tom Elliott
          last edited by Jun 27, 2014, 2:54 PM

          so
          run this command:
          in mysql for that job so you can schedule other deployments.
          [code]UPDATE snapinJobs SET sjStateID=‘2’ WHERE sjID=‘8’;[/code]

          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
          • D
            dislikeusernames
            last edited by Jun 27, 2014, 3:52 PM

            That appears to have done it. Thank you!

            What does that command do? Is it something I will have to run on future installations?

            Also, is there a good documentation page or tutorial on Snapins? I still don’t understand the difference adding a snapin through the host as opposed to through Task Management. Deleting snapins I’ve added doesn’t seem to unschedule them. I can’t choose which snapin to run when I click Single Snapin in Task Scheduler… I’m sure I’m doing this wrong or don’t quite understand it, but I haven’t been able to find a good page that explains the details of how Snapins work. Thanks again, Tom!

            1 Reply Last reply Reply Quote 0
            • D
              dislikeusernames
              last edited by Jun 28, 2014, 3:50 PM

              Anyone?

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jun 28, 2014, 4:12 PM

                There are some issues with how snapins close out when run on a larger scale. I can only hope I’ve fixed it in SVN, and am just awaiting test results.

                Documentation is fairly scarce, but have you looked at the WIKI that explains snapins and what they do?
                [url]http://fogproject.org/wiki/index.php/Make_Snapins_Using_FOSS[/url] #How to create a snapin.
                [url]http://fogproject.org/wiki/index.php/Supported_Snapin's_and_Command_Line_Switches[/url] #How to use the argument switch parts.
                [url]http://fogproject.org/forum/threads/how-to-make-a-simple-snapin-start-to-finish.304/[/url] #More indepth how to make them.

                Their purpose is to install files to a system after it’s been images, or just to install software without the need to reimage.

                Deleteing Snapins doesn’t unschedule them? I may need to look at that in the code for this.

                Can’t choose which snapin to choose when you click from Task Manager. This is correct, I haven’t implemented it fully yet and am still trying to think of the logic on how to do this. It should, however, deploy all snapins even from the Single Snapin deploy menu item.

                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
                • D
                  dislikeusernames
                  last edited by Jul 16, 2014, 5:57 PM

                  I know this is a late reply, but thank you for all your help. I have it working now.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bveiga
                    last edited by Oct 1, 2014, 1:19 PM

                    hi,
                    i´m running version 2353,when i create a task for a computer that have a snapin assigned, the snapin task create two tasks for the snapin and the snapin is not deployed for the computer, im running Ubuntu 12.04, can you help me please?
                    the snapin is a .cmd file with 340 kb.
                    after checking the error log i´ve got this message:

                    [Wed Oct 01 14:31:10 2014] [error] [client 10.7.107.11] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/FOGBase.class.php on line 409, referer: [url]http://10.0.16.133/fog/management/index.php?node=tasks&sub=active-snapins[/url]

                    best regards and sorry for my bad english
                    bruno veiga

                    1 Reply Last reply Reply Quote 0
                    • J
                      Junkhacker Developer
                      last edited by Oct 1, 2014, 2:54 PM

                      [quote=“bveiga, post: 37217, member: 24091”]hi,
                      i´m running version 2353,when i create a task for a computer that have a snapin assigned, the snapin task create two tasks for the snapin and the snapin is not deployed for the computer, im running Ubuntu 12.04, can you help me please?
                      the snapin is a .cmd file with 340 kb.
                      after checking the error log i´ve got this message:

                      [Wed Oct 01 14:31:10 2014] [error] [client 10.7.107.11] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/FOGBase.class.php on line 409, referer: [url]http://10.0.16.133/fog/management/index.php?node=tasks&sub=active-snapins[/url]

                      best regards and sorry for my bad english
                      bruno veiga[/quote]

                      [url]http://fogproject.org/forum/threads/duplicate-snapin-task-and-error-deploying.11764/[/url]

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

                      1 Reply Last reply Reply Quote 0
                      • B
                        bveiga
                        last edited by Oct 1, 2014, 3:04 PM

                        [quote=“Junkhacker, post: 37231, member: 21583”][url]http://fogproject.org/forum/threads/duplicate-snapin-task-and-error-deploying.11764/[/url][/quote]

                        hi, hi had to go to a meeting but now i´m here, sorry i don’t know where you posted the answer, i admire your work and im very thankful

                        1 Reply Last reply Reply Quote 0
                        • B
                          bveiga
                          last edited by Oct 1, 2014, 3:05 PM

                          i already tried the answer in this threat but nothing resolved.

                          best regards

                          1 Reply Last reply Reply Quote 0
                          • J
                            Junkhacker Developer
                            last edited by Oct 1, 2014, 3:11 PM

                            you double posted. i was directing anyone who came across this to the new thread.

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

                            1 Reply Last reply Reply Quote 0
                            • B
                              bveiga
                              last edited by Oct 1, 2014, 3:13 PM

                              ok, sorry im a newbie here, any help is very appreciated.

                              best regards

                              1 Reply Last reply Reply Quote 0
                              • B
                                bveiga
                                last edited by Oct 7, 2014, 9:53 AM

                                [quote=“Junkhacker, post: 37231, member: 21583”][url]http://fogproject.org/forum/threads/duplicate-snapin-task-and-error-deploying.11764/[/url][/quote]

                                anyone could help me please?

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

                                223

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project