You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Geoff Craig <Ge...@lucd.ai> on 2018/07/20 17:58:41 UTC

nifi-registry.sh doesn't find user

Hello,

I'm trying to run nifi-registry (0.2.0) using run.as in bootstrap.conf and the nifi-registry.sh run command is throwing this error:

does not exist. Exiting.

The only reference I see to this is here:

if ! id -u "${run_as_user}" >/dev/null 2>&1; then
                echo "The specified run.as user ${run_as_user} does not exist. Exiting."
                exit 1
            fi

I have ran id -u with the run.as username and it comes back with the user id.  I put in some echo commands and the run_as_user is reporting appropriately.  Any suggestions?

Thank you,



Re: nifi-registry.sh doesn't find user

Posted by "geoff.craig" <ge...@lucd.ai>.
Hello,

I just found the issue.  The bootstrap.conf file was a copy from another
system and was in dos format.  dos2unix fixed it.



--
Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/

Re: nifi-registry.sh doesn't find user

Posted by Kevin Doran <kd...@apache.org>.
Never seen that before - definitely odd. What platform are you running on?



Thanks,
Kevin

On Fri, Jul 20, 2018 at 1:58 PM, Geoff Craig <Ge...@lucd.ai> wrote:

> Hello,
>
>
>
> I’m trying to run nifi-registry (0.2.0) using run.as in bootstrap.conf
> and the nifi-registry.sh run command is throwing this error:
>
>
>
> does not exist. Exiting.
>
>
>
> The only reference I see to this is here:
>
>
>
> if ! id -u "${run_as_user}" >/dev/null 2>&1; then
>
>                 echo "The specified run.as user ${run_as_user} does not
> exist. Exiting."
>
>                 exit 1
>
>             fi
>
>
>
> I have ran id -u with the run.as username and it comes back with the user
> id.  I put in some echo commands and the run_as_user is reporting
> appropriately.  Any suggestions?
>
>
>
> Thank you,
>
>
>
>
>