<?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: Version Control for Splunk - &amp;quot;Restore has failed to complete successfully&amp;quot; in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517368#M63269</link>
    <description>&lt;P&gt;Ok, so perhaps try:&lt;/P&gt;&lt;P&gt;splunk cmd splunkd print-modinput-config splunkversioncontrol_backup splunkversioncontrol_backup://replaceme | splunk cmd python simpleinput.py | splunk cmd python /opt/splunk/etc/apps/SplunkVersionControl/bin/splunkversioncontrol_backup.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where "replaceme" is the name of your input name, and simpleinput.py is from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-do-you-test-a-modular-input-on-the-command-line-with-a-valid/td-p/358726" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-do-you-test-a-modular-input-on-the-command-line-with-a-valid/td-p/358726&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I borrowed the code and updated the password with my local one....all the above will do is run the code within your current shell which might be the missing link...the above will test backup but restore is a very similar process (replace the backup with restore in the python file &amp;amp; input name)&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 05:27:46 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2020-09-02T05:27:46Z</dc:date>
    <item>
      <title>Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/512155#M62770</link>
      <description>&lt;P&gt;@Garethan&lt;/P&gt;
&lt;P&gt;When trying to test the app I get the following when trying to restore a dashboard&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Restore has failed to complete successfully in app search, object of type dashboard, with name &amp;lt;object name&amp;gt; "&lt;/P&gt;
&lt;P&gt;I have confirmed that Im' using the Object URI/Name (not label).&lt;/P&gt;
&lt;P&gt;In looking at the backup.log it is giving two warnings and an error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WARNING i="splunkVCBackup" error/fatal messages in git stderroutput please review. stderrout="b'\n*** Please tell me who you are.\n\nRun\n\n git config --global user.email "you@example.com"\n git config --global user.name "Your Name"\n\nto set your account\'s default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: empty ident name (for &amp;lt;splunk@&amp;lt;server.xx.xxx&amp;gt;) not allowed\nTo git@gitlab.com-&amp;lt;repo&amp;gt;/sharedteams/&amp;lt;project&amp;gt;/&amp;lt;repo&amp;gt;.git\n * [new tag] 2020-08-03_0746 -&amp;gt; 2020-08-03_0746\n'"

ERROR i="splunkVCBackup" git failure occurred during runtime, not updating the epoch value. This failure may require investigation, please refer to the WARNING messages in the logs

WARNING i="splunkVCBackup" wiping the git directory, dir=/opt/&amp;lt;repo dir&amp;gt;/vcbackup to allow re-cloning on next run of the script.  vcbackup is the temp directory under the main repo.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 21:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/512155#M62770</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-20T21:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514001#M62950</link>
      <description>&lt;P&gt;Thanks for the direct email, looks like I don't get notified when someone mentions my application anymore &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I suspect the git command on this Linux server is refusing to do a checkout because the git configuration doesn't exist.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;git config --global user.email "you@example.com"&lt;/P&gt;&lt;P&gt;git config --global user.name "Your Name"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run as the user running Splunk should fix it, although you might want to use a real email/name.&lt;/P&gt;&lt;P&gt;In the manual on &lt;A href="https://github.com/gjanders/SplunkVersionControl/" target="_self"&gt;github (or README.md in the app)&lt;/A&gt; I have mentioned under the "Can I use this application on Windows?":&lt;/P&gt;&lt;P&gt;And set the git global configuration git config --global user.name "John Doe" git config --global user.email johndoe@example.com&lt;/P&gt;&lt;P&gt;That's what I had to do on Windows to make the git clone/git checkout command work as expected...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 23:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514001#M62950</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-13T23:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514111#M62970</link>
      <description>&lt;P&gt;Thanks for the response Gareth.&lt;/P&gt;&lt;P&gt;I checked the git config on the Linux box logged in as the Splunk user. &amp;nbsp;The user.email and user.name are currently set.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514111#M62970</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-14T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514211#M62979</link>
      <description>&lt;P&gt;Try setting debugMode to true and run it again and the logs should advise which command threw that error&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/514211#M62979</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-14T22:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515297#M63092</link>
      <description>&lt;P&gt;When running requests.get() on the url output_mode=json is showing a 404&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515297#M63092</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-20T19:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515346#M63103</link>
      <description>&lt;P&gt;If you can trim the &lt;A href="https://community.splunk.com/" target="_blank"&gt;https://&amp;lt;yourservername&amp;gt;&lt;/A&gt; part out, I'd just need to see the endpoint it is trying to hit.&lt;/P&gt;&lt;P&gt;Most likely the application name which defaults to SplunkVersionControl has been changed and a 404 will occur.&lt;/P&gt;&lt;P&gt;I have a setting called "remoteAppName" which is supposed to be the name of the app on the remote server, but I might have some code with the app name hardcoded somewhere.&lt;/P&gt;&lt;P&gt;Which server is throwing the 404? And what action is taken (or which log file) are you seeing it in?&lt;/P&gt;&lt;P&gt;Or I might have some context with more log entries..&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 01:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515346#M63103</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-21T01:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515574#M63121</link>
      <description>&lt;P&gt;Here are the lines from splunkversioncontrol_rest_restore.log&lt;/P&gt;&lt;P&gt;020-08-20 13:48:03,821 root INFO Received remote request checking username and role related to the token on url=https:///services/authentication/current-context?output_mode=json&lt;BR /&gt;2020-08-20 13:48:03,830 root INFO username= roles=['admin']&lt;BR /&gt;2020-08-20 13:48:03,860 root INFO Sleeping for 30 seconds to wait for audit logs&lt;BR /&gt;2020-08-20 13:48:33,890 root INFO Sleep completed&lt;BR /&gt;2020-08-20 13:48:35,683 root INFO i="splunkVCRestore" Splunk Version Control Restore run with arguments="{'debugMode': 'true', 'destURL': 'https://58:8089', 'destUsername': 'splunkvcgituser', 'disabled': False, 'eai:acl': None, 'gitRepoURL': 'git@gitlab.com-pt9splunk:ciorg/sharedteams/ptn/pt9splunk.git', 'gitTempDir': '/opt/pt9splunk/vcrestore', 'host': 'GMC0449', 'host_resolved': 'xxxx', 'index': 'main', 'interval': '', 'python.version': None, 'name': 'splunkversioncontrol_restore://splunkVCRestore'}"&lt;BR /&gt;2020-08-20 13:48:35,687 root DEBUG Begin OS process run of cd /opt/xxxx/vcrestore; git checkout master; git pull&lt;BR /&gt;2020-08-20 13:48:37,124 root DEBUG OS process exited with zero code, for command cd /opt/xxxx/vcrestore; git checkout master; git pull&lt;BR /&gt;2020-08-20 13:48:37,125 root INFO i="splunkVCRestore" Successfully ran the git pull for URL=xxxx/sharedteams/xxx/xxxx.git from directory dir=/opt/xxxx/vcrestore&lt;BR /&gt;2020-08-20 13:48:37,125 root DEBUG i="splunkVCRestore" The restore list is [{'app': 'search', 'type': 'savedsearch', 'name': 'dds_git_test', 'tag': '2020-08-20_1345', 'scope': 'all', 'time': 1597952793, 'restoreAsUser': '', 'user': 'xxxx'}]&lt;BR /&gt;2020-08-20 13:48:37,125 root DEBUG i="splunkVCRestore" Running requests.post() on url=&lt;A href="https://xxxx.58:8089/servicesNS/-/SplunkVersionControl/search/jobs" target="_blank"&gt;https://xxxx.58:8089/servicesNS/-/SplunkVersionControl/search/jobs&lt;/A&gt; with user=xxxx query="| savedsearch "SplunkVersionControl CheckAdmin" ldapFilter="*xxxx", usernameFilter="xxxx"" proxies_length=0&lt;BR /&gt;2020-08-20 13:48:37,303 root INFO i="splunkVCRestore" user=dougs has requested the object with name=dds_git_test of type=savedsearch to be restored from tag=2020-08-20_1345 and scope=all, restoreAsUser=, this was requested at time=1597952793 in app context of app=search&lt;BR /&gt;2020-08-20 13:48:37,304 root DEBUG Begin OS process run of cd /opt/xxxx/vcrestore; git checkout 2020-08-20_1345&lt;BR /&gt;2020-08-20 13:48:37,315 root DEBUG OS process exited with zero code, for command cd /opt/pt9splunk/vcrestore; git checkout 2020-08-20_1345&lt;BR /&gt;2020-08-20 13:48:37,316 root INFO i="splunkVCRestore" Successfully ran the git checkout for URL=xxxx/sharedteams/ptn/xxxx.git from directory dir=/opt/xxxxx/vcrestore&lt;BR /&gt;2020-08-20 13:48:37,316 root DEBUG i="splunkVCRestore" Known app list is&lt;BR /&gt;2020-08-20 13:48:37,316 root INFO i="splunkVCRestore" user=xxxx, attempting to restore name=dds_git_test in app=search of type=savedsearches in scope=all, restoreAsUser=, adminLevel=False&lt;BR /&gt;2020-08-20 13:48:37,316 root DEBUG i="splunkVCRestore" Running requests.get() on url=&lt;A href="https://xxxx.58:8089/servicesNS/-/search/saved/searches/dds_git_test?output_mode=json" target="_blank"&gt;https://xxxx.58:8089/servicesNS/-/search/saved/searches/dds_git_test?output_mode=json&lt;/A&gt; with user=xxxx in app=search proxies_length=0&lt;BR /&gt;2020-08-20 13:48:37,378 root DEBUG i="splunkVCRestore" URL=&lt;A href="https://xxxx.58:8089/servicesNS/-/search/saved/searches/dds_git_test?output_mode=json" target="_blank"&gt;https://xxxx.58:8089/servicesNS/-/search/saved/searches/dds_git_test?output_mode=json&lt;/A&gt; is throwing a 404, assuming new object creation&lt;BR /&gt;2020-08-20 13:48:37,378 root DEBUG i="splunkVCRestore" user=xxxx, name=dds_git_test, found typeFile=/opt/xxxx/vcrestore/search/user/savedsearches to restore from&lt;BR /&gt;2020-08-20 13:48:37,399 root INFO i="splunkVCRestore" user=xxxx, name=dds_git_test not found at scope=user in file=/opt/xxxx/vcrestore/search/user/savedsearches&lt;BR /&gt;2020-08-20 13:48:37,400 root DEBUG i="splunkVCRestore" user=xxxx, name=dds_git_test, found typeFile=/opt/xxxx/vcrestore/search/app/savedsearches to restore from&lt;BR /&gt;2020-08-20 13:48:37,407 root INFO i="splunkVCRestore" user=xxxx, name=dds_git_test not found at app level scope in typeFile=/opt/xxxx/vcrestore/search/app/savedsearches&lt;BR /&gt;2020-08-20 13:48:37,407 root DEBUG i="splunkVCRestore" user=xxxx, name=dds_git_test, found typeFile=/opt/xxxx/vcrestore/search/global/savedsearches to restore from&lt;BR /&gt;2020-08-20 13:48:37,409 root INFO i="splunkVCRestore" user=xxxx, name=dds_git_test not found at scope=global in typeFile=/opt/xxxx/vcrestore/search/global/savedsearches&lt;BR /&gt;2020-08-20 13:48:37,409 root WARNING i="splunkVCRestore" user=xxxx attempted to restore name=dds_git_test, type=savedsearches, restoreAsUser=, adminLevel=False however the object was not found, the restore was unsuccessful. Perhaps check the restore date, scope &amp;amp; capitilisation before trying again?&lt;BR /&gt;2020-08-20 13:48:37,409 root INFO i="splunkVCRestore" Done&lt;BR /&gt;2020-08-20 13:48:37,409 root WARNING Restore has failed to complete successfully in app=search, object of type=savedsearch, with name=dds_git_test was not restored from tag=2020-08-20_1345, scope=all with restoreAsUser= and requested by username=xxxx&lt;/P&gt;&lt;P&gt;The restore is being requested from a member of the SHC and is the server that is throwing the 404 error. &amp;nbsp;The application and the git repo are on the deployment server. &amp;nbsp;The SplunkVCRestore input is pointing to .58 which is one of the SHC members.&lt;/P&gt;&lt;P&gt;I thought that maybe it was because I wasn't trying to do the restore from .58 so I logged into that server but it still fails on the restore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 00:51:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515574#M63121</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-22T00:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515576#M63122</link>
      <description>&lt;P&gt;So did the search app have a savedsearch named&amp;nbsp;&lt;SPAN&gt;dds_git_test in that tag?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code is saying it cannot find the saved search with that name in the backup...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 02:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515576#M63122</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-22T02:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515804#M63133</link>
      <description>&lt;P&gt;It is recording the name in the splunkversioncontrol_backup.log with the correct type (saved searches), app (search) and owner (dougs)&lt;/P&gt;&lt;P&gt;I am getting this info in the same log file: (NOTE: Items in bold are redacted)&lt;/P&gt;&lt;P&gt;2020-08-24 08:32:43,243 root DEBUG Begin OS process run of cd /opt/pt9splunk/vcbackup; git add -A; git commit -am "Updated by Splunk Version Control backup job splunkVCBackup"; git tag 2020-08-24_0832; git push origin master --tags&lt;BR /&gt;2020-08-24 08:32:46,050 root DEBUG OS process exited with zero code, for command cd /opt/&lt;STRONG&gt;{GIT repo}&lt;/STRONG&gt;/vcbackup; git add -A; git commit -am "Updated by Splunk Version Control backup job splunkVCBackup"; git tag 2020-08-24_0832; git push origin master --tags&lt;BR /&gt;2020-08-24 08:32:46,051 root WARNING i="splunkVCBackup" error/fatal messages in git stderroutput please review. stderrout="b'\n*** Please tell me who you are.\n\nRun\n\n git config --global user.email "you@example.com"\n git config --global user.name "Your Name"\n\nto set your account\'s default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: empty ident name (for &amp;lt;splunk@&lt;STRONG&gt;{deployer}&lt;/STRONG&gt;&amp;gt;) not allowed\nTo git@gitlab.com-&lt;STRONG&gt;{repo}&lt;/STRONG&gt;\n * [new tag] 2020-08-24_0832 -&amp;gt; 2020-08-24_0832\n'"&lt;BR /&gt;2020-08-24 08:32:46,051 root DEBUG i="splunkVCBackup" Running requests.post() on url=https://&lt;STRONG&gt;{SH}&lt;/STRONG&gt;/servicesNS/-/local/search/jobs with user=splunkvcgituser query="| makeresults | eval tag="2020-08-24_0832" | fields - _time | outputlookup append=t splunkversioncontrol_taglist" proxies_length=0&lt;BR /&gt;2020-08-24 08:32:46,246 root INFO i="splunkVCBackup" messages from query="| makeresults | eval tag="2020-08-24_0832" | fields - _time | outputlookup append=t splunkversioncontrol_taglist" were messages="[{'type': 'INFO', 'text': "Results written to file '/opt/splunk/etc/apps/local/lookups/splunkversioncontrol_taglist.csv' on serverName='&lt;STRONG&gt;{SH}&lt;/STRONG&gt;'."}]"&lt;BR /&gt;2020-08-24 08:32:46,246 root ERROR i="splunkVCBackup" git failure occurred during runtime, not updating the epoch value. This failure may require investigation, please refer to the WARNING messages in the logs&lt;BR /&gt;2020-08-24 08:32:46,246 root WARNING i="splunkVCBackup" wiping the git directory, dir=/opt/&lt;STRONG&gt;{GIT repo}&lt;/STRONG&gt;/vcbackup to allow re-cloning on next run of the script&lt;BR /&gt;2020-08-24 08:32:46,349 root INFO i="splunkVCBackup" Done&lt;/P&gt;&lt;P&gt;I have confirmed the .gitconfig has the user.email and user.name but it continues to give a "Warning" in the log file.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 14:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515804#M63133</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-24T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515898#M63139</link>
      <description>&lt;P&gt;So if you login to the server where these logs are and run the below as the same username that is running Splunk:&lt;/P&gt;&lt;P&gt;cd /opt/&lt;STRONG&gt;{GIT repo}&lt;/STRONG&gt;/vcbackup; git add -A; git commit -am "Updated by Splunk Version Control backup job splunkVCBackup"; git tag 2020-08-24_0832; git push origin master --tags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that you might have to edit a file or similar to make the git add/commit work, does that throw an error?&lt;/P&gt;&lt;P&gt;Because all the code does is run a shell that runs the above...so it should be identical to what you see as a command line user (assuming you are running as the same username that runs splunk)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 23:36:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/515898#M63139</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-24T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516041#M63148</link>
      <description>&lt;P&gt;When I first cd to the git repo there is no vcbackup folder.&lt;/P&gt;&lt;P&gt;If I recall correctly from previous conversations you indicated to just let the Data Input created the temp directory. &amp;nbsp;So I went into the backup data input and changed the temp directory to vcbackup1 and confirmed that it created the directory, which it did.&lt;/P&gt;&lt;P&gt;I then did cd to that directory and ran the commands you suggested. &amp;nbsp;I had to use a different time for git tag because there was already one with that date/time. &amp;nbsp;It didn't throw any errors &amp;nbsp;on those commands.&lt;/P&gt;&lt;P&gt;It is still giving the Warning about the git config user.email and the error about the epoch value.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 14:58:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516041#M63148</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-25T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516166#M63159</link>
      <description>&lt;P&gt;I think something like this will work:&lt;/P&gt;&lt;P&gt;Go to the bin directory of the SplunkVersionControl app then:&lt;/P&gt;&lt;P&gt;run:&lt;/P&gt;&lt;P&gt;splunk cmd python&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the python window try:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from splunkversioncontrol_utility import runOSProcess, get_password&lt;BR /&gt;import logging&lt;BR /&gt;logger = logging.getLogger()&lt;BR /&gt;(output, stderrout, res) = runOSProcess("cd ~; echo `pwd` `whoami`; git config --list --global", logger, shell=True)&lt;/P&gt;&lt;P&gt;print(output)&lt;/P&gt;&lt;P&gt;print(stderrout)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll run some testing a bit later to confirm that should work but I believe that will print the git config&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 00:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516166#M63159</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-26T00:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516174#M63160</link>
      <description>&lt;P&gt;With that runOSProcess you can execute any shell command so you could test a :&lt;/P&gt;&lt;P&gt;cd &amp;lt;your git directory&amp;gt;; echo `pwd`; touch file; git add file; git commit -m test; git push origin master&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or similar and see what happens &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 01:25:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516174#M63160</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-26T01:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516386#M63187</link>
      <description>&lt;LI-SPOILER&gt;error: failed to push some refs to 'git@gitlab.com-&amp;lt;repo&amp;gt;/&amp;lt;repo&amp;gt;/&amp;lt;repo&amp;gt;/.git'&lt;BR /&gt;hint: Updates were rejected because the remote contains work that you do&lt;BR /&gt;hint: not have locally. This is usually caused by another repository pushing&lt;BR /&gt;hint: to the same ref. You may want to first merge the remote changes (e.g.,&lt;BR /&gt;hint: 'git pull') before pushing again.&lt;BR /&gt;hint: See the 'Note about fast-forwards' in 'git push --help' for details.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 26 Aug 2020 20:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516386#M63187</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-26T20:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516401#M63188</link>
      <description>&lt;P&gt;Perhaps run a&amp;nbsp;&lt;BR /&gt;git pull&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In that directory first&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 22:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516401#M63188</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-26T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516519#M63198</link>
      <description>&lt;P&gt;The git pull worked fine and the commands ran fine after the pull as well.&lt;/P&gt;&lt;P&gt;One thing I missed was your response earlier about the python commands to print the .gitconfig but it's not working&lt;/P&gt;&lt;P&gt;Here is the config&lt;/P&gt;&lt;P&gt;user.email=&amp;lt;my_email&amp;gt;&lt;BR /&gt;user.name=&amp;lt;my_userid&amp;gt;&lt;BR /&gt;push.default=simple&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 14:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516519#M63198</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-08-27T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516623#M63215</link>
      <description>&lt;P&gt;Something doesn't seem right here, so the git commands work fine?&lt;/P&gt;&lt;P&gt;Just to confirm the git commands are been run on the server that is running the actual backup/restore from git? Which might not be the one requesting the restore of the object...&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 02:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/516623#M63215</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-08-28T02:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517300#M63256</link>
      <description>&lt;P&gt;Correct, the Git commands were run on the deployment server which is connected to the Git repo&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 16:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517300#M63256</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-09-01T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517345#M63262</link>
      <description>&lt;P&gt;So something is happening that is not obvious at all &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an SSH key or something in use?&lt;/P&gt;&lt;P&gt;When you run this:&lt;/P&gt;&lt;P&gt;Go to the bin directory of the SplunkVersionControl app then:&lt;/P&gt;&lt;P&gt;run:&lt;/P&gt;&lt;P&gt;splunk cmd python&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the python window try:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from splunkversioncontrol_utility import runOSProcess, get_password&lt;BR /&gt;import logging&lt;BR /&gt;logger = logging.getLogger()&lt;BR /&gt;(output, stderrout, res) = runOSProcess("cd ~; echo `pwd` `whoami`; git config --list --global", logger, shell=True)&lt;/P&gt;&lt;P&gt;print(output)&lt;/P&gt;&lt;P&gt;print(stderrout)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which step or steps are failing? Clearly when splunk runs the commands it is getting a different result to when you run the commands in the shell...&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 23:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517345#M63262</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-09-01T23:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Version Control for Splunk - "Restore has failed to complete successfully"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517353#M63264</link>
      <description>&lt;P&gt;Ok, let's break this down a bit.&lt;/P&gt;&lt;P&gt;We are using an ssh key to connect to the repository.&lt;/P&gt;&lt;P&gt;I have gone to opt/splunk/etc/apps/splunkversioncontrol/bin and ran splunk cmd python&lt;/P&gt;&lt;P&gt;From there I successfully ran the commands you listed below. &amp;nbsp;Here are the results.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; (output,stderrout, res) = runOSProcess("cd ~;echo 'pwd' 'whoami';git config --list --global",logger,shell=True)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; print(output)&lt;BR /&gt;pwd whoami&lt;BR /&gt;user.email=&amp;lt;my email address&amp;gt;&lt;BR /&gt;user.name=dshatto&lt;BR /&gt;push.default=simple&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; print(stderrout)&lt;/P&gt;&lt;P&gt;I don't recall exactly where it was failing but I suspect that it was that I separating part of the command&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 02:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Version-Control-for-Splunk-quot-Restore-has-failed-to-complete/m-p/517353#M63264</guid>
      <dc:creator>dshatto</dc:creator>
      <dc:date>2020-09-02T02:34:46Z</dc:date>
    </item>
  </channel>
</rss>

