[
https://issues.apache.org/jira/browse/NIFI-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239928#comment-16239928
]
Koji Kawamura commented on NIFI-4570:
-------------------------------------
By looking at change histories, it seems that this issue has been introduced by
NIFI-2656 since NiFi 1.2.0.
> NiFi is not starting after encrypting config files using Encrypt-Config tool
> ----------------------------------------------------------------------------
>
> Key: NIFI-4570
> URL: https://issues.apache.org/jira/browse/NIFI-4570
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.2.0
> Reporter: Koji Kawamura
>
> On a Windows machine, after configuring sensitive property encryption key
> using encrypt-config.bat, NiFi fails to start up because NiFi tries to use
> Posix API but Windows does not support it. It fails with following error
> message:
> {code}
> # Sample command to configure sensitive property encryption key:
> encrypt-config.bat --bootstrapConf conf\bootstrap.conf --flowXml
> conf\flow.xml.gz --niFiProperties conf\nifi.properties --verbose
> # Start NiFi
> bin\run-nifi.bat
> 2017-11-06 02:13:10,325 ERROR [main] org.apache.nifi.bootstrap.Command Other
> failure relating to setting permissions on
> c:\dev\NIFI-1~1.0-7\.\conf\sensitive.key. (so that only the owner can read
> it). This is fatal to the bootstrap process for security reasons. Exception
> was: {}
> java.lang.UnsupportedOperationException: 'posix:permissions' not supported as
> initial attribute
> at
> sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
> at
> sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:222)
> at java.nio.file.Files.newByteChannel(Files.java:361)
> at java.nio.file.Files.createFile(Files.java:632)
> at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:1043)
> at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:219)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)