<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JasonSamuel.com &#187; Urchin 6</title>
	<atom:link href="http://www.jasonsamuel.com/category/urchin-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:35:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to clear a hung profile in Urchin 6</title>
		<link>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-clear-a-hung-profile-in-urchin-6</link>
		<comments>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:03:14 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Urchin 6]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=280</guid>
		<description><![CDATA[If you&#8217;ve ever used Urchin 6 for web analytics (Google&#8217;s pay for version of Google Analytics aimed at enterprises), you have probably seen profiles stuck in a &#8220;Running&#8221; state.  If you hit Run Now, you get this error message: 12008 &#8211; Action: Failed to cancel urchin process. If you try to reschedule the profile, you [...]<p><a href="http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/">How to clear a hung profile in Urchin 6</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever used <a href="http://www.google.com/urchin/" target="_blank">Urchin 6</a> for web analytics (Google&#8217;s pay for version of Google Analytics aimed at enterprises), you have probably seen profiles stuck in a &#8220;Running&#8221; state.  If you hit Run Now, you get this error message:</p>
<blockquote><p>12008 &#8211; Action: Failed to cancel urchin process.</p></blockquote>
<p>If you try to reschedule the profile, you get this error message:</p>
<blockquote><p>12007 &#8211; Action: Failed to add profile to the scheduler queue. The profile is already in the queue.</p></blockquote>
<p>This happens because Urchin&#8217;s scheduler is very sensitive to server reboots.  If you have jobs scheduled to run at night and let&#8217;s say you push patches to the server and reboot in the middle of the night, it can cause this error to appear on some of your profiles.  You get these errors because the log processing engine and scheduler never received the proper exit signals which means there will be database entries in the MySQL database that will be in an inconsistent state.  When the server boots back up, the log processing engine cannot pick back up where it stopped and the web GUI will show the profile is &#8220;Running&#8221; even though it is not.</p>
<p>The quick solution for this is to navigate to your Urchin bin folder via command prompt.  Here is an example path:</p>
<p>C:\Program Files\Urchin6\bin</p>
<p>then type:</p>
<blockquote><p>urchinctl stop</p></blockquote>
<p>which will stop all Urchin processes.  Then open up MySQL Command Line Client and type:</p>
<blockquote><p>use urchin;<br />
delete from uprofiles_queue;</p></blockquote>
<p><img class="alignnone size-full wp-image-287" title="urchin6_mysql" src="http://www.jasonsamuel.com/wp-content/uploads/2009/12/urchin6_mysql.gif" alt="urchin6_mysql" width="666" height="329" /></p>
<p>This switches the database to the urchin database and deletes all running profiles.  Now if you go to to the web GUI under Profile Task Scheduler, you will see everything looks normal.  Now trying running the job again and it should work.  You should get a message saying:</p>
<blockquote><p>12009 &#8211; Action: Profile has been queued to run. Please check the Profile Task History screen for status and runtime output.</p></blockquote>
<p>Now don&#8217;t forget to restart your Master and Slave scheduler services or the job will remain in a queued state until they are back up:</p>
<blockquote><p>urchinctl start</p></blockquote>
<p>Now verify the job is actually running properly by clicking the green &#8220;Running&#8221; link for the job and you should see it processing the logs.</p>
<p><a href="http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/">How to clear a hung profile in Urchin 6</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: www.jasonsamuel.com @ 2010-07-31 20:12:42 -->