0

我尝试从 Web 控制台检查 solr 架构,但访问时也出现错误。从日志中:

INFO: 2016-04-11        06:19:16        0:0:0:0:0:0:0:1 -       0:0:0:0:0:0:0:1 8983    POST    /solr/schema/fields     -       500     486     558     50      http://myserver.net:8983   curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.18 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2    -
36865524 ERROR (qtp59559151-18) [   x:fedora] o.a.s.h.RequestHandlerBase java.nio.file.NoSuchFileException: /opt/HWEEArchive/solr/solr-5.5.0/server/solr/fedora/data/index/segments_18
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
    at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144

36865527 INFO  (qtp59559151-18) [   x:fedora] o.a.s.c.S.Request [fedora]  webapp=/solr path=/admin/luke params={show=index&numTerms=0&wt=json&_=1460355771692} status=500 QTime=7
36865530 ERROR (qtp59559151-18) [   x:fedora] o.a.s.s.HttpSolrCall null:java.nio.file.NoSuchFileException: /opt/HWEEArchive/solr/solr-5.5.0/server/solr/fedora/data/index/segments_18
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
    at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144
4

1 回答 1

0

好的,我找到了。是权限问题。我以前用 root 运行 solr,现在用 solr 用户运行。我已经修复了所有 solr 目录的文件权限。然后它开始工作。

于 2016-04-11T09:19:50.530 回答