无法在TFS 2017.1上启动ElasticSearch。

问题描述 投票:1回答:1
当前我无法在Windows Server 2012的TFS 2017.1上启动ElasticSearch 2.4.1

日志文件显示访问被拒绝,但是文件夹“ E:\ TfsData \ Search \ IndexStore”具有775权限

elasticsearch-service-x64-stderr.xxxx-xx-xx.log 2017-04-27 07:20:56 Commons Daemon procrun stderr initialized Exception in thread "main" tion: Unable to access 'path.data' (E:\TfsData\Search\IndexStore) Likely root cause: java.nio.file.AccessDeniedException: E:\TfsData\Search\IndexStore at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:90) at sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:259) at sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:836) at sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:44) at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:333) at org.elasticsearch.bootstrap.Security.addPath(Security.java:314) at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:256) at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212) at org.elasticsearch.bootstrap.Security.configure(Security.java:118) at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:212) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:183) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) Refer to the log for complete error details.

TFS_Serach_TFS.log

[ERROR][bootstrap] Exception java.lang.IllegalStateException: Unable to access 'path.data' (E:\TfsData\Search\IndexStore) at org.elasticsearch.bootstrap.Security.addPath(Security.java:316) at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:256) at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212) at org.elasticsearch.bootstrap.Security.configure(Security.java:118) at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:212) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:183) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) Caused by: java.nio.file.AccessDeniedException: E:\TfsData\Search\IndexStore at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:90) at sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:259) at sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:836) at sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:44) at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:333) at org.elasticsearch.bootstrap.Security.addPath(Security.java:314) ... 7 more

我的ElasticSearch配置(elasticsearch.yml)

{ "cluster.name": "TFS_Search_${COMPUTERNAME}", "node.name": "${COMPUTERNAME}", "index.number_of_replicas": 0, "path.data": "${SEARCH_ES_INDEX_PATH}", "http.port": 9200, "discovery.zen.ping.multicast.enabled": false, "network.host": "127.0.0.1" }

每个人都一个主意,我该如何解决这些问题。

编辑:服务器日志,当我尝试启动Elasticsearch服务时

'AccountFaultInJob' failed with error : Microsoft.VisualStudio.Services.Search.Common.SearchPlatformException: ES Exception: Unknown Exception Err: [Nest.GetAliasesResponse]. Raw response:

当前,我无法在Windows Server 2012的TFS 2017.1上启动ElasticSearch 2.4.1。日志文件说访问被拒绝,但是文件夹“ E:\ TfsData \ Search \ IndexStore”具有775权限elasticsearch-service -...] >
elasticsearch tfs
1个回答
0
投票
长时间解决问题后

有一些问题

© www.soinside.com 2019 - 2024. All rights reserved.