<?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 Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error &amp;quot;Could not write to auth token file&amp;quot; trying to run: splunk reload deploy-server? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178343#M6652</link>
    <description>&lt;P&gt;We have had that problem before, we had saved searches and alerts within the app folder.  The deployment server wiped out that data and re-wrote those directories from its source.  &lt;/P&gt;

&lt;P&gt;We copied those items to our deployment server so that it could be replicated out with the app.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2015 20:31:23 GMT</pubDate>
    <dc:creator>stemo76</dc:creator>
    <dc:date>2015-03-16T20:31:23Z</dc:date>
    <item>
      <title>After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178337#M6646</link>
      <description>&lt;P&gt;Upgraded from 6.1.5 to 6.2.1 and now when I attempt to run splunk reload deploy-server I get this error message&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;D:\Splunk\bin&amp;gt;splunk reload deploy-server
Splunk username: &amp;lt;userid&amp;gt;
Password:
Could not write to auth token file '\\&amp;lt;server&amp;gt;\users\.splunk\authToken_&amp;lt;localservernamer&amp;gt;_8089'.

An unforeseen error occurred:

        Exception: &amp;lt;type 'exceptions.WindowsError'&amp;gt;, Value: [Error 2] The system cannot find the file specified: '\\\\&amp;lt;server&amp;gt;\\users\\.splunk\\authToken_&amp;lt;localservernamer&amp;gt;_8089'

Traceback (most recent call last):
  File "D:\splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 1145, in main
    parseAndRun(argsList)
  File "D:\splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 872, in parseAndRun
    login({}, True)
  File "D:\splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 213, in login
    authToken = user_friendly_login(username, password, save=True)
  File "D:\splunk\Python-2.7\Lib\site-packages\splunk\clilib\cli.py", line 160, in user_friendly_login
    os.unlink(getAuthFilePath())
WindowsError: [Error 2] The system cannot find the file specified: '\\\\&amp;lt;server&amp;gt;\\users\\.splunk\\authToken_&amp;lt;localservernamer&amp;gt;_8089'


Please file a case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jan 2015 16:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178337#M6646</guid>
      <dc:creator>stemo76</dc:creator>
      <dc:date>2015-01-07T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178338#M6647</link>
      <description>&lt;P&gt;This seems to be capturing the homepath of the user signed  \\users\ but the .splunk\authToken__8089 file is in the root of &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178338#M6647</guid>
      <dc:creator>stemo76</dc:creator>
      <dc:date>2015-01-07T19:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178339#M6648</link>
      <description>&lt;P&gt;I have opened a ticket with Splunk support but still no resolution.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 21:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178339#M6648</guid>
      <dc:creator>stemo76</dc:creator>
      <dc:date>2015-01-09T21:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178340#M6649</link>
      <description>&lt;P&gt;After your 6.2.1 upgrade, did you have any issues with saved searches or saved alerts?  It looks like I lost mine after the 6.2 upgrade.  &lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178340#M6649</guid>
      <dc:creator>sbrice36</dc:creator>
      <dc:date>2015-03-16T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178341#M6650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the error message may come a splunk command (with authentication ) which was launched from another user (automatically or manually) which wrote the file with another rights on it.&lt;BR /&gt;
Is the file \\users.splunk\authToken__8089 existing ?&lt;BR /&gt;
if this is the case, what if you rename it to .old and try again your command ?&lt;BR /&gt;
can you create a file and later modify it in the same directory ( \\users.splunk) while logged with the same windows user (from a command line for example) ?&lt;BR /&gt;
As a workaround, you could also try with a local home directory configured for your windows user by I guess this is not what you want to do.(there may be a pb with the way splunk uses the remote path. in 6.2..)&lt;/P&gt;

&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 17:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178341#M6650</guid>
      <dc:creator>matthieu_araman</dc:creator>
      <dc:date>2015-03-16T17:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178342#M6651</link>
      <description>&lt;P&gt;Splunk found the cause. The newer version of python bundled with this version of splunk handled our environmental variables differently.&lt;/P&gt;

&lt;P&gt;"I think we’re finally to the bottom of it. Splunk 6.x is packaged with a newer version of Python that handles Windows UNC paths differently. Before, building the file path with “\” would take you to the root of the file system or just “\”. Now Python recognizes that a path starting with “\” is a UNC path and so when you build the file path with “\” at the end it takes you to the root of the UNC mount which it expects to be at "\\”. That explains the difference."&lt;/P&gt;

&lt;P&gt;The fix for use was this edit&lt;BR /&gt;
In $SPLUNK_HOME\Python-2.7\Lib\site-packages\splunk\clilib\cli.py on line 1070 there is the following piece of code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  userHome = os.path.join(userHomePrefix, userHome)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change it to the following and your .splunk directory&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  userHome = os.path.join(userHomePrefix, userHome.strip("\\"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178342#M6651</guid>
      <dc:creator>stemo76</dc:creator>
      <dc:date>2015-03-16T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: After upgrade to 6.2.1 from 6.1.5, why am I getting error "Could not write to auth token file" trying to run: splunk reload deploy-server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178343#M6652</link>
      <description>&lt;P&gt;We have had that problem before, we had saved searches and alerts within the app folder.  The deployment server wiped out that data and re-wrote those directories from its source.  &lt;/P&gt;

&lt;P&gt;We copied those items to our deployment server so that it could be replicated out with the app.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/After-upgrade-to-6-2-1-from-6-1-5-why-am-I-getting-error-quot/m-p/178343#M6652</guid>
      <dc:creator>stemo76</dc:creator>
      <dc:date>2015-03-16T20:31:23Z</dc:date>
    </item>
  </channel>
</rss>

