[ 
https://issues.apache.org/jira/browse/NIFI-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15706930#comment-15706930
 ] 

Joseph Percivall commented on NIFI-3112:
----------------------------------------

[~trixpan] [~michal.klempa]

I believe that the solution to NIFI-2199 is the following ssh command and the 
fix for this ticket is to just revert PR #1092 (since nothing was wrong in the 
first place the background process was working as designed):

{code}
ssh -f -p 3022 [email protected] "sh -c 'nohup 
/root/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT/bin/nifi.sh
 restart > 
/root/nifi/nifi-assembly/target/nifi-1.2.0-SNAPSHOT-bin/nifi-1.2.0-SNAPSHOT/startupOutput.txt
 2>&1 &'"
{code}

The command is primarily from this SO answer[1]. It starts the bootstrap 
process on the server and directs all of it's the StdOut and StdErr to 
"startupOutput.txt". 

I will be opening a PR reverting the commit[2]. Let me know what you guys think.

[1] http://stackoverflow.com/a/2831449/5252122
[2] 
https://github.com/apache/nifi/commit/88d125137e3bf3faf80b522edf5cf14f99419d60

> When running  "nifi.sh start" errors that occur in the bootstrap are routed 
> to dev/null
> ---------------------------------------------------------------------------------------
>
>                 Key: NIFI-3112
>                 URL: https://issues.apache.org/jira/browse/NIFI-3112
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Percivall
>            Assignee: Andre
>            Priority: Critical
>
> The commit added in this PR[1] makes it so any errors that occur in the 
> bootstrap during a "start" command will get routed to dev/null and it will 
> silently fail. Nothing is logged to the bootstrap log either. If you do the 
> "run" command it will work as expected and show the error.
> [1] https://github.com/apache/nifi/pull/1092



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to