chatsiri created NIFI-4259:
------------------------------

             Summary: Run-init.bat show permission error as 
org.apache.nifi.bootstrap.Command Failed to set permissions so that only the 
owner can read pid file
                 Key: NIFI-4259
                 URL: https://issues.apache.org/jira/browse/NIFI-4259
             Project: Apache NiFi
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 2.0.0
            Reporter: chatsiri


Hello Contributor,

I  build Apache-nifi on Windows OS enviorment by use maven simple command 
references from official build steps. After built core jar file success in  
nifi-assembly folder. I run command line as below. That warning did I cannot 
loaded web URL : http://localhost:8080/nifi.
 
{panel:title=My title}
PS C:\workspacejava\nifi\nifi-assembly\target\nifi-1.4.0-SNAPSHOT\bin> 
.\run-nifi.bat
2017-08-03 10:18:03,086 INFO [main] org.apache.nifi.bootstrap.Command Starting 
Apache NiFi...
2017-08-03 10:18:03,088 INFO [main] org.apache.nifi.bootstrap.Command Working 
Directory: C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S
2017-08-03 10:18:03,089 INFO [main] org.apache.nifi.bootstrap.Command Command: 
C:\Program Files\Java\jdk1.8.0_131\bin\java.exe -classpath 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\conf;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-
S\.\lib\javax.servlet-api-3.1.0.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\jetty-schemas-3.1.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\tar
get\NIFI-1~2.0-S\.\lib\jul-to-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\logback-classic-1.2.3.jar;C:\Users\R2C06~1.CHA\WOA236~1\
nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\logback-core-1.2.3.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\nifi-api-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\nifi-framework-api-1.4.0-SNAPSHOT.jar;C:
\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\nifi-nar-utils-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\nifi-properties-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\
.\lib\nifi-runtime-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\lib\slf4j-api-1.7.25.jar
 -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m -Xms512m 
-Djava.security.egd=file:/dev/urandom -Dsun.net.http.allowRestrictedHeaders=
true -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -XX:+UseG1GC 
-Djava.protocol.handler.pkgs=sun.net.www.protocol 
-Dnifi.properties.file.path=C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\.\conf\nifi.properties
 -Dnifi.bootstrap.listen.port=53
626 -Dapp=NiFi 
-Dorg.apache.nifi.bootstrap.config.log.dir=C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\bin\..\\logs
 org.apache.nifi.NiFi
2017-08-03 10:18:03,975 WARN [main] org.apache.nifi.bootstrap.Command Failed to 
set permissions so that only the owner can read pid file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\bin\..\run\nifi.pid;
 this may allows others to have access to the key
needed to communicate with NiFi. Permissions should be changed so that only the 
owner can read this file
2017-08-03 10:18:04,000 WARN [main] org.apache.nifi.bootstrap.Command Failed to 
set permissions so that only the owner can read status file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\bin\..\run\nifi.status;
 this may allows others to have access to th
e key needed to communicate with NiFi. Permissions should be changed so that 
only the owner can read this file
2017-08-03 10:18:04,051 INFO [main] org.apache.nifi.bootstrap.Command Launched 
Apache NiFi with Process ID 18036
{panel} 

It shows warning from console log is  


{panel:title=My title}
2017-08-03 10:18:04,000 WARN [main] org.apache.nifi.bootstrap.Command Failed to 
set permissions so that only the owner can read status file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~2.0-S\bin\..\run\nifi.status;
 this may allows others to have access to th
e key needed to communicate with NiFi. Permissions should be changed so that 
only the owner can read this file
{panel}

I paste log from  Nifi-app.log


{panel:title=My title}
2017-08-02 23:55:08,101 WARN [main] org.apache.nifi.nar.ExtensionManager 
Component org.apache.nifi.processors.aws.dynamodb.PutDynamoDB is bundled with 
its referenced Controller Service APIs 
org.apache.nifi.processors.aws.credentials.pr
ovider.service.AWSCredentialsProviderService. The service APIs should not be 
bundled with component implementations that reference it.
2017-08-02 23:55:08,116 WARN [main] org.apache.nifi.nar.ExtensionManager 
Component org.apache.nifi.processors.aws.dynamodb.DeleteDynamoDB is bundled 
with its referenced Controller Service APIs 
org.apache.nifi.processors.aws.credentials
.provider.service.AWSCredentialsProviderService. The service APIs should not be 
bundled with component implementations that reference it.
2017-08-02 23:55:08,130 WARN [main] org.apache.nifi.nar.ExtensionManager 
Component org.apache.nifi.processors.aws.kinesis.stream.PutKinesisStream is 
bundled with its referenced Controller Service APIs 
org.apache.nifi.processors.aws.cre
dentials.provider.service.AWSCredentialsProviderService. The service APIs 
should not be bundled with component implementations that reference it.
2017-08-02 23:55:08,143 WARN [main] org.apache.nifi.nar.ExtensionManager 
Component org.apache.nifi.processors.aws.cloudwatch.PutCloudWatchMetric is 
bundled with its referenced Controller Service APIs 
org.apache.nifi.processors.aws.cred
entials.provider.service.AWSCredentialsProviderService. The service APIs should 
not be bundled with component implementations that reference it.
2017-08-02 23:55:11,606 INFO [pool-2-thread-1] 
org.apache.nifi.BootstrapListener Received SHUTDOWN request from Bootstrap
2017-08-02 23:55:11,621 INFO [pool-2-thread-1] org.apache.nifi.NiFi Initiating 
shutdown of Jetty web server...
2017-08-02 23:55:11,621 INFO [pool-2-thread-1] org.apache.nifi.NiFi Jetty web 
server shutdown completed (nicely or otherwise).
2017-08-03 00:07:25,926 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2017-08-03 00:07:26,590 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Determined default nifi.properties path to be 
'C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties'
2017-08-03 00:07:26,619 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Loaded 126 properties from 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties
2017-08-03 00:07:26,663 INFO [main] org.apache.nifi.NiFi Loaded 126 properties
2017-08-03 00:07:27,039 INFO [main] org.apache.nifi.BootstrapListener Started 
Bootstrap Listener, Listening for incoming requests on port 65357
2017-08-03 00:07:27,103 INFO [main] org.apache.nifi.BootstrapListener 
Successfully initiated communication with Bootstrap
2017-08-03 00:07:27,155 INFO [main] org.apache.nifi.nar.NarUnpacker Expanding 
77 NAR files with all processors...
2017-08-03 00:07:43,153 INFO [main] org.apache.nifi.nar.NarUnpacker NAR loading 
process took 15998117002 nanoseconds (15 seconds).
2017-08-03 00:08:41,839 INFO [pool-2-thread-1] 
org.apache.nifi.BootstrapListener Received SHUTDOWN request from Bootstrap
2017-08-03 00:08:41,866 INFO [pool-2-thread-1] org.apache.nifi.NiFi Initiating 
shutdown of Jetty web server...
2017-08-03 00:08:41,891 INFO [pool-2-thread-1] org.apache.nifi.NiFi Jetty web 
server shutdown completed (nicely or otherwise).
2017-08-03 00:21:44,958 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2017-08-03 00:21:45,412 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Determined default nifi.properties path to be 
'C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties'
2017-08-03 00:21:45,431 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Loaded 126 properties from 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties
2017-08-03 00:21:45,444 INFO [main] org.apache.nifi.NiFi Loaded 126 properties
2017-08-03 00:21:45,796 INFO [main] org.apache.nifi.BootstrapListener Started 
Bootstrap Listener, Listening for incoming requests on port 50146
2017-08-03 00:21:45,848 INFO [main] org.apache.nifi.BootstrapListener 
Successfully initiated communication with Bootstrap
2017-08-03 00:21:45,893 INFO [main] org.apache.nifi.nar.NarUnpacker Expanding 
77 NAR files with all processors...
2017-08-03 00:21:48,584 INFO [pool-2-thread-1] 
org.apache.nifi.BootstrapListener Received SHUTDOWN request from Bootstrap
2017-08-03 00:21:48,602 INFO [pool-2-thread-1] org.apache.nifi.NiFi Initiating 
shutdown of Jetty web server...
2017-08-03 00:21:48,604 INFO [pool-2-thread-1] org.apache.nifi.NiFi Jetty web 
server shutdown completed (nicely or otherwise).
2017-08-03 00:21:59,125 INFO [main] org.apache.nifi.nar.NarUnpacker NAR loading 
process took 13232102179 nanoseconds (13 seconds).
2017-08-03 09:39:35,733 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2017-08-03 09:39:36,283 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Determined default nifi.properties path to be 
'C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties'
2017-08-03 09:39:36,292 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader 
Loaded 126 properties from 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties
{panel}

Nifi-bootstrap.log


{panel:title=My title}

2017-08-03 09:39:32,814 INFO [main] org.apache.nifi.bootstrap.Command Starting 
Apache NiFi...
2017-08-03 09:39:32,815 INFO [main] org.apache.nifi.bootstrap.Command Working 
Directory: 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S
2017-08-03 09:39:32,836 INFO [main] org.apache.nifi.bootstrap.Command Command: 
C:\Program Files\Java\jdk1.8.0_131\bin\java.exe -classpath 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf;C:\Users\R2C
6~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\javax.servlet-api-3.1.0.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\jcl-over-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236
1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\jetty-schemas-3.1.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\jul-to-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target
NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\log4j-over-slf4j-1.7.25.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\logback-classic-1.2.3.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\N
FI-1~1.0-S\.\lib\logback-core-1.2.3.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\nifi-api-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\
ifi-framework-api-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\nifi-nar-utils-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\l
b\nifi-properties-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib\nifi-runtime-1.4.0-SNAPSHOT.jar;C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\lib
slf4j-api-1.7.25.jar -Dorg.apache.jasper.compiler.disablejsr199=true -Xmx512m 
-Xms512m -Djava.security.egd=file:/dev/urandom 
-Dsun.net.http.allowRestrictedHeaders=true -Djava.net.preferIPv4Stack=true 
-Djava.awt.headless=true -XX:+UseG
GC -Djava.protocol.handler.pkgs=sun.net.www.protocol 
-Dnifi.properties.file.path=C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\.\conf\nifi.properties
 -Dnifi.bootstrap.listen.port=52022 -Dapp=NiFi -Dorg.a
ache.nifi.bootstrap.config.log.dir=C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\bin\..\\logs
 org.apache.nifi.NiFi
2017-08-03 09:39:33,960 WARN [main] org.apache.nifi.bootstrap.Command Failed to 
set permissions so that only the owner can read pid file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\bin\..\run\nifi.pid;
this may allows others to have access to the key needed to communicate with 
NiFi. Permissions should be changed so that only the owner can read this file
2017-08-03 09:39:33,974 WARN [main] org.apache.nifi.bootstrap.Command Failed to 
set permissions so that only the owner can read status file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1~1.0-S\bin\..\run\nifi.s
atus; this may allows others to have access to the key needed to communicate 
with NiFi. Permissions should be changed so that only the owner can read this 
file
2017-08-03 09:39:33,993 INFO [main] org.apache.nifi.bootstrap.Command Launched 
Apache NiFi with Process ID 5084
2017-08-03 09:39:36,639 WARN [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the 
owner can read pid file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIFI-1
1.0-S\bin\..\run\nifi.pid; this may allows others to have access to the key 
needed to communicate with NiFi. Permissions should be changed so that only the 
owner can read this file
2017-08-03 09:39:36,645 WARN [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Failed to set permissions so that only the 
owner can read status file 
C:\Users\R2C06~1.CHA\WOA236~1\nifi\NIFI-A~1\target\NIFI-1~1.0-S\NIF
-1~1.0-S\bin\..\run\nifi.status; this may allows others to have access to the 
key needed to communicate with NiFi. Permissions should be changed so that only 
the owner can read this file
2017-08-03 09:39:36,662 INFO [NiFi Bootstrap Command Listener] 
org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for 
Bootstrap requests on port 5202
{panel}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to