<?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>question Nifi starts then stops at linux startup in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381646#M244362</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When my linux server reboots, Nifi automatically &lt;STRONG&gt;starts&lt;/STRONG&gt; but automatically &lt;STRONG&gt;stops&lt;/STRONG&gt; after few secondes.&lt;BR /&gt;When I &lt;STRONG&gt;manually&lt;/STRONG&gt; restart the service, that's &lt;STRONG&gt;okay&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Could anyone help me to diagnose this issue ?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;OS :&lt;/STRONG&gt;&lt;/EM&gt; &lt;STRONG&gt;Cent OS 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Service :&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;nifi.service - Apache NiFi&lt;BR /&gt;&amp;nbsp; Loaded: loaded (/usr/lib/systemd/system/nifi.service; &lt;STRONG&gt;enabled&lt;/STRONG&gt;; vendor preset: disabled)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Service description (nifi.service):&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Unit]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Description=Apache NiFi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;After=network.target&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Service]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Type=simple&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;User=nifi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Group=nifi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitAS=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitRSS=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitCORE=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitFSIZE=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitNOFILE=65536&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PIDFile=/appli/nifi/run/nifi.pid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ExecStart=/appli/nifi/bin/nifi.sh start&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ExecStop=/appli/nifi/bin/nifi.sh stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Install]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WantedBy=multi-user.target&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Extract from the &lt;EM&gt;&lt;STRONG&gt;bootstrap log&lt;/STRONG&gt;&lt;/EM&gt; :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-12-21 14:43:46,394 DEBUG [main] org.apache.nifi.bootstrap.Command Established connection to NiFi instance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2023-12-21 14:43:46,394 DEBUG [main] org.apache.nifi.bootstrap.Command Sending SHUTDOWN Command to port 44185&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can't see any WARN/ERROR in bootstrap log or nifi log that would correlate to this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 09:12:50 GMT</pubDate>
    <dc:creator>jerome69007</dc:creator>
    <dc:date>2024-01-04T09:12:50Z</dc:date>
    <item>
      <title>Nifi starts then stops at linux startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381646#M244362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When my linux server reboots, Nifi automatically &lt;STRONG&gt;starts&lt;/STRONG&gt; but automatically &lt;STRONG&gt;stops&lt;/STRONG&gt; after few secondes.&lt;BR /&gt;When I &lt;STRONG&gt;manually&lt;/STRONG&gt; restart the service, that's &lt;STRONG&gt;okay&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Could anyone help me to diagnose this issue ?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;OS :&lt;/STRONG&gt;&lt;/EM&gt; &lt;STRONG&gt;Cent OS 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Service :&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;nifi.service - Apache NiFi&lt;BR /&gt;&amp;nbsp; Loaded: loaded (/usr/lib/systemd/system/nifi.service; &lt;STRONG&gt;enabled&lt;/STRONG&gt;; vendor preset: disabled)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Service description (nifi.service):&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Unit]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Description=Apache NiFi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;After=network.target&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Service]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Type=simple&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;User=nifi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Group=nifi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitAS=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitRSS=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitCORE=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitFSIZE=infinity&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LimitNOFILE=65536&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PIDFile=/appli/nifi/run/nifi.pid&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ExecStart=/appli/nifi/bin/nifi.sh start&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ExecStop=/appli/nifi/bin/nifi.sh stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[Install]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WantedBy=multi-user.target&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Extract from the &lt;EM&gt;&lt;STRONG&gt;bootstrap log&lt;/STRONG&gt;&lt;/EM&gt; :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2023-12-21 14:43:46,394 DEBUG [main] org.apache.nifi.bootstrap.Command Established connection to NiFi instance.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2023-12-21 14:43:46,394 DEBUG [main] org.apache.nifi.bootstrap.Command Sending SHUTDOWN Command to port 44185&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I can't see any WARN/ERROR in bootstrap log or nifi log that would correlate to this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 09:12:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381646#M244362</guid>
      <dc:creator>jerome69007</dc:creator>
      <dc:date>2024-01-04T09:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi starts then stops at linux startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381667#M244363</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108591"&gt;@jerome69007&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How was your nifi.service created?&lt;BR /&gt;I am confused as to why it contains both the following lines:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExecStart=/appli/nifi/bin/nifi.sh start
ExecStop=/appli/nifi/bin/nifi.sh stop&lt;/LI-CODE&gt;&lt;P&gt;I would expect the nifi.service to only contain the start command.&lt;BR /&gt;This explains why on linux startup it is executing the start followed by the stop command.&lt;BR /&gt;&lt;BR /&gt;Typically setting NiFi as a service on your linux is performed in a few simple steps:&lt;BR /&gt;1. Execute "./nifi.sh install" command.&amp;nbsp; This will setup NiFi as a service allowing to use systemctl command like "systemctl start nifi", "systemctl status nifi", and "systemctl stop&lt;BR /&gt;nifi".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;2. execute "systemctl enable nifi" command to configure nifi service start on system bootup.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 14:48:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381667#M244363</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-04T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi starts then stops at linux startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381869#M244443</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;. Well...&lt;/P&gt;&lt;P&gt;I regained ownership of the Nifi platform; I don't have the information regarding the initial installation.&lt;/P&gt;&lt;P&gt;I will check about ExecStop and give a feedback.&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 10:48:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-starts-then-stops-at-linux-startup/m-p/381869#M244443</guid>
      <dc:creator>jerome69007</dc:creator>
      <dc:date>2024-01-10T10:48:08Z</dc:date>
    </item>
  </channel>
</rss>

