admin管理员组

文章数量:1128506

Suddenly without making any changes to apache/tomcat this morning the SOLR stopped working in all my Codeigniter 3 apps hosted on the Ubuntu server. All apps lost their seach functionality because of this and the GUI Dashboard for SOLR is also throwing an error on browser when I hit the URL (http://server-ip:8080/vidwan/#/). But the Tomcat Dashboard is accessible well without any error at http://server-ip:8080/. SOLR Dashboard URL page

  • I tried to shutdown and start Tomcat by following commands in terminal:
/usr/local/apache-tomcat-7.0.57/bin/shutdown.sh
sleep 10
/usr/local/apache-tomcat-7.0.57/bin/startup.sh
  • There was not any setenv.sh file which I created at /usr/local/apache-tomcat-7.0.57/bin/setenv.sh with the content export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/usr/local/apache-tomcat-7.0.57/solr_vidwan"
  • Before any file was there or not that I do not have idea but I created vidwan.xml file at /usr/local/apache-tomcat-7.0.57/conf/Catalina/localhost/vidwan.xml with the content <Context docBase="/usr/local/apache-tomcat-7.0.57/webapps/solr" path="/vidwan" reloadable="true" crossContext="true"/>. Just this one file only available at present at the given path.
  • Here providing some logs from /usr/local/apache-tomcat-7.0.57/logs/localhost_access_log.2025-01-08.txt:
server-ip - - [08/Jan/2025:18:23:32 +0530] "HEAD /vidwan/edst/admin/ping HTTP/1.0" 503 -
my-local-ip - - [08/Jan/2025:18:23:52 +0530] "GET /vidwan/ HTTP/1.1" 503 1052
  • logs from /usr/local/apache-tomcat-7.0.57/logs/catalina.2025-01-09.log:
WARNING: Security role name solr used in an <auth-constraint> without being defined in a <security-role>
Jan 09, 2025 12:02:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.57/webapps/solr has finished in 3,586 ms
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.57/webapps/host-manager
Jan 09, 2025 12:02:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.57/webapps/host-manager has finished in 37 ms
Jan 09, 2025 12:02:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 09, 2025 12:02:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 09, 2025 12:02:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11793 ms

I want to solve this error as the hundreds of users are facing issue of broken search feature on apps.

本文标签: Apache Tomcatsolr is not working on ubuntu suddenlyStack Overflow