<?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 Error in upgrading forwarder using ansible in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Error-in-upgrading-forwarder-using-ansible/m-p/652207#M13108</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We are trying to upgrade the splunk universal forwarder from version 8.1.0 to 9.0.3 using ansible scripts. But we are getting error when the script tries to start the forwarder. Herewith attached error and ansible playbook.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ansible playbook:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Copy tgz to target&lt;BR /&gt;copy:&lt;BR /&gt;src: /pub/splunk/splunkpackages/{{ splunk_package }}&lt;BR /&gt;dest: /tmp/{{ splunk_package }}&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Check for SYSV scripts&lt;BR /&gt;stat:&lt;BR /&gt;path: /etc/rc.d/init.d/splunk&lt;BR /&gt;register: splunk_sysv&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Stop Splunk&lt;BR /&gt;shell: |&lt;BR /&gt;{{ splunk_home }}/bin/splunk stop&lt;BR /&gt;tar -cvf /opt/splunk_config_backup.tar {{ splunk_home }}/etc/&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Clean up SYSV scripts&lt;BR /&gt;shell: |&lt;BR /&gt;rm /etc/rc.d/init.d/splunk&lt;BR /&gt;/opt/splunkforwarder/bin/splunk disable boot-start&lt;BR /&gt;when: splunk_sysv.stat.exists&lt;BR /&gt;ignore_errors: yes&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Upgrade Forwarder and restart &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;==&amp;gt; in this task it getting failed&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;shell: |&lt;BR /&gt;cd /opt&lt;BR /&gt;tar -xzvf /tmp/{{ splunk_package }}&lt;BR /&gt;chown -R splunk:splunk /opt/splunkforwarder&lt;BR /&gt;{{ splunk_home }}/bin/splunk start --accept-license --answer-yes --no-prompt&lt;BR /&gt;register: splunk_upgrade&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Convert SYSV to Systemd&lt;BR /&gt;shell: |&lt;BR /&gt;{{ splunk_home }}/bin/splunk stop&lt;BR /&gt;chown -R splunk:splunk /opt/splunkforwarder&lt;BR /&gt;/opt/splunkforwarder/bin/splunk enable boot-start -user splunk&lt;BR /&gt;when: splunk_sysv.stat.exists&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | start and enable splunk&lt;BR /&gt;service:&lt;BR /&gt;name: SplunkForwarder.service&lt;BR /&gt;enabled: true&lt;BR /&gt;state: started&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Cleanup tgz&lt;BR /&gt;file:&lt;BR /&gt;state: absent&lt;BR /&gt;path: /tmp/{{ splunk_package }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error in splunk forwarder log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gowthammahes_0-1690459358986.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26500iA0774E08DE4868CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gowthammahes_0-1690459358986.png" alt="gowthammahes_0-1690459358986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 12:26:55 GMT</pubDate>
    <dc:creator>gowthammahes</dc:creator>
    <dc:date>2023-07-27T12:26:55Z</dc:date>
    <item>
      <title>Error in upgrading forwarder using ansible</title>
      <link>https://community.splunk.com/t5/Installation/Error-in-upgrading-forwarder-using-ansible/m-p/652207#M13108</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We are trying to upgrade the splunk universal forwarder from version 8.1.0 to 9.0.3 using ansible scripts. But we are getting error when the script tries to start the forwarder. Herewith attached error and ansible playbook.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ansible playbook:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Copy tgz to target&lt;BR /&gt;copy:&lt;BR /&gt;src: /pub/splunk/splunkpackages/{{ splunk_package }}&lt;BR /&gt;dest: /tmp/{{ splunk_package }}&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Check for SYSV scripts&lt;BR /&gt;stat:&lt;BR /&gt;path: /etc/rc.d/init.d/splunk&lt;BR /&gt;register: splunk_sysv&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Stop Splunk&lt;BR /&gt;shell: |&lt;BR /&gt;{{ splunk_home }}/bin/splunk stop&lt;BR /&gt;tar -cvf /opt/splunk_config_backup.tar {{ splunk_home }}/etc/&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Clean up SYSV scripts&lt;BR /&gt;shell: |&lt;BR /&gt;rm /etc/rc.d/init.d/splunk&lt;BR /&gt;/opt/splunkforwarder/bin/splunk disable boot-start&lt;BR /&gt;when: splunk_sysv.stat.exists&lt;BR /&gt;ignore_errors: yes&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Upgrade Forwarder and restart &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;==&amp;gt; in this task it getting failed&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;shell: |&lt;BR /&gt;cd /opt&lt;BR /&gt;tar -xzvf /tmp/{{ splunk_package }}&lt;BR /&gt;chown -R splunk:splunk /opt/splunkforwarder&lt;BR /&gt;{{ splunk_home }}/bin/splunk start --accept-license --answer-yes --no-prompt&lt;BR /&gt;register: splunk_upgrade&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Convert SYSV to Systemd&lt;BR /&gt;shell: |&lt;BR /&gt;{{ splunk_home }}/bin/splunk stop&lt;BR /&gt;chown -R splunk:splunk /opt/splunkforwarder&lt;BR /&gt;/opt/splunkforwarder/bin/splunk enable boot-start -user splunk&lt;BR /&gt;when: splunk_sysv.stat.exists&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | start and enable splunk&lt;BR /&gt;service:&lt;BR /&gt;name: SplunkForwarder.service&lt;BR /&gt;enabled: true&lt;BR /&gt;state: started&lt;/P&gt;&lt;P&gt;- name: Splunk Upgrade | Cleanup tgz&lt;BR /&gt;file:&lt;BR /&gt;state: absent&lt;BR /&gt;path: /tmp/{{ splunk_package }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error in splunk forwarder log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gowthammahes_0-1690459358986.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26500iA0774E08DE4868CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gowthammahes_0-1690459358986.png" alt="gowthammahes_0-1690459358986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Error-in-upgrading-forwarder-using-ansible/m-p/652207#M13108</guid>
      <dc:creator>gowthammahes</dc:creator>
      <dc:date>2023-07-27T12:26:55Z</dc:date>
    </item>
  </channel>
</rss>

