Cannot run snapins
-
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?
-
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] -
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) -
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] -
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!
-
Anyone?
-
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.
-
I know this is a late reply, but thank you for all your help. I have it working now.
-
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=“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]
-
[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
-
i already tried the answer in this threat but nothing resolved.
best regards
-
you double posted. i was directing anyone who came across this to the new thread.
-
ok, sorry im a newbie here, any help is very appreciated.
best regards
-
[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?