<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic After setting non-system default timezone external commands fail with error code 1 or &amp;quot;ImportError: No module named site&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82156#M16970</link>
    <description>&lt;P&gt;In new 4.3 instance running on Win2008 R2, external commands  (e.g. sendemail) have started failing with errors like the one below. &lt;/P&gt;

&lt;P&gt;03-01-2012 09:20:26.862 +0000 ERROR script - External search command 'sendemail' returned error code 1. &lt;BR /&gt;
03-01-2012 09:20:26.831 +0000 ERROR ScriptRunner - stderr from 'C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py':  ImportError: No module named site&lt;/P&gt;

&lt;P&gt;I can't pinpoint the problem to a particular application installation or configuration change, all I can say is that everything has worked fine when the instance was first installed, but at some point we've noticed that the mails have stopped coming and then we've found the errors like the one in the example.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2012 09:34:05 GMT</pubDate>
    <dc:creator>IgorB</dc:creator>
    <dc:date>2012-03-01T09:34:05Z</dc:date>
    <item>
      <title>After setting non-system default timezone external commands fail with error code 1 or "ImportError: No module named site"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82156#M16970</link>
      <description>&lt;P&gt;In new 4.3 instance running on Win2008 R2, external commands  (e.g. sendemail) have started failing with errors like the one below. &lt;/P&gt;

&lt;P&gt;03-01-2012 09:20:26.862 +0000 ERROR script - External search command 'sendemail' returned error code 1. &lt;BR /&gt;
03-01-2012 09:20:26.831 +0000 ERROR ScriptRunner - stderr from 'C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py':  ImportError: No module named site&lt;/P&gt;

&lt;P&gt;I can't pinpoint the problem to a particular application installation or configuration change, all I can say is that everything has worked fine when the instance was first installed, but at some point we've noticed that the mails have stopped coming and then we've found the errors like the one in the example.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2012 09:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82156#M16970</guid>
      <dc:creator>IgorB</dc:creator>
      <dc:date>2012-03-01T09:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: After setting non-system default timezone external commands fail with error code 1 or "ImportError: No module named site"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82157#M16971</link>
      <description>&lt;P&gt;We found what was triggering the problem. Comes out it's the per-user timezone setting (new in 4.3). So once you set the user's timezone to anything other than the system's default timezone, you'll encounter the following problems: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Searches utilizing external search commands, e.g. xmlkv, will start failing showing red bar with messages like "External search command 'xmlkv' returned error code 1.".
There will be no traces of an error in splunkd.log.&lt;/LI&gt;
&lt;LI&gt;'Send Email' alert action and other scripts, e.g. "backfill data" in Deployment Monitor app will also fail, but at least will leave trace in splunkd.log: &lt;/LI&gt;
&lt;/OL&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;03-01-2012 09:20:26.862 +0000 ERROR script - External search command 'sendemail' returned error code 1. &lt;BR /&gt;
03-01-2012 09:20:26.831 +0000 ERROR ScriptRunner - stderr from 'C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py': ImportError: No module named site&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 03 Mar 2012 16:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82157#M16971</guid>
      <dc:creator>IgorB</dc:creator>
      <dc:date>2012-03-03T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: After setting non-system default timezone external commands fail with error code 1 or "ImportError: No module named site"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82158#M16972</link>
      <description>&lt;P&gt;Thank you, i can confirm that setting the "System Default timezone" made my email alerts work again.&lt;BR /&gt;
I dont know how you found it, but a big thank you for posting it, saved my day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2012 10:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82158#M16972</guid>
      <dc:creator>patrikan</dc:creator>
      <dc:date>2012-03-05T10:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: After setting non-system default timezone external commands fail with error code 1 or "ImportError: No module named site"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82159#M16973</link>
      <description>&lt;P&gt;The credit should go to my customer - Eyal P.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 09:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82159#M16973</guid>
      <dc:creator>IgorB</dc:creator>
      <dc:date>2012-03-07T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: After setting non-system default timezone external commands fail with error code 1 or "ImportError: No module named site"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82160#M16974</link>
      <description>&lt;P&gt;I wanted to upvote IgorB's answer, but I don't have enough points &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Anyway- you saved us too, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2012 19:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/After-setting-non-system-default-timezone-external-commands-fail/m-p/82160#M16974</guid>
      <dc:creator>smeier</dc:creator>
      <dc:date>2012-04-03T19:06:58Z</dc:date>
    </item>
  </channel>
</rss>

