亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

更新 DSpace Solr 索引遇到這個錯誤:SolrCore 'search' is not

更新 DSpace Solr 索引遇到這個錯誤:SolrCore 'search' is not

當我運行以下命令更新 Solr 索引時:sh [dspace]/bin/dspace index-discoveryDSpace的安裝目錄在哪里[dspace],我得到以下錯誤:Exception: Expected mime type application/octet-stream but got text/html. <!doctype html><html><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> {msg=SolrCore &#39;search&#39; is not available due to init failure: Error opening new searcher,trace=org.apache.solr.common.SolrException: SolrCore &#39;search&#39; is not available due to init failure: Error opening new searcher    at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745)    ...    Caused by: org.apache.solr.common.SolrException: Error opening new searcher    at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1565)    at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1677)    at org.apache.solr.core.SolrCore.&lt;init&gt;(SolrCore.java:845)    ... 8 more...Caused by: java.nio.file.AccessDeniedException: ....solr&#47;search&#47;data&#47;index&#47;segments_p    at java.base&#47;sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
查看完整描述

1 回答

?
守候你守候我

TA貢獻1802條經驗 獲得超10個贊

將錯誤堆棧跟蹤轉換為 HTML 后,我發現文件的權限[dspace]/solr/search/data/index/segments_p阻止進程訪問它。該文件的所有者是root,我以非 root 用戶身份使用 Eclipse 運行 Tomcat,因此我使自己成為該文件的所有者:

chown myself:myself [dspace]/solr/search/data/index/segments_p

然后重新啟動 Tomcat,并重新運行命令:

sh [dspace]/bin/dspace index-discovery

它做得很完美。


查看完整回答
反對 回復 2023-06-14
  • 1 回答
  • 0 關注
  • 202 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號