08-27-2024 04:09 AM
Good day Folks,
I am trying to set up Alfresco in Ubuntu using the distribution zip package. I have installed all the scripts as directed but when I run the command: "sudo systemctl start tomcat", I get the following error below in catalina.out:
2024-08-27T08:55:00,623 [] ERROR [quartz.core.JobRunShell] [SearchScheduler_Worker-1] Job Solr.SolrWatcher threw an unhandled Exception:
org.alfresco.error.AlfrescoRuntimeException: 07270038 Connection refused
at org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient.getOperation(AbstractSolrAdminHTTPClient.java:96) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRAdminClient.executeAction(SOLRAdminClient.java:221) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRAdminClient$SolrTracker.pingSolr(SOLRAdminClient.java:333) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRWatcherJob.execute(SOLRWatcherJob.java:54) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.alfresco.httpclient.RequestHeadersHttpClient.executeMethod(RequestHeadersHttpClient.java:90) ~[alfresco-core-23.2.0.60.jar:23.2.0.60]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) ~[commons-httpclient-3.1-HTTPCLIENT-1265.jar:?]
at org.alfresco.httpclient.RequestHeadersHttpClient.executeMethod(RequestHeadersHttpClient.java:75) ~[alfresco-core-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient.getOperation(AbstractSolrAdminHTTPClient.java:73) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
... 5 more
2024-08-27T08:55:00,632 [] ERROR [quartz.core.ErrorLogger] [SearchScheduler_Worker-1] Job (Solr.SolrWatcher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception.
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.3.2.jar:?]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
Caused by: org.alfresco.error.AlfrescoRuntimeException: 07270038 Connection refused
at org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient.getOperation(AbstractSolrAdminHTTPClient.java:96) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRAdminClient.executeAction(SOLRAdminClient.java:221) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRAdminClient$SolrTracker.pingSolr(SOLRAdminClient.java:333) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.alfresco.repo.solr.SOLRWatcherJob.execute(SOLRWatcherJob.java:54) ~[alfresco-repository-23.2.0.60.jar:23.2.0.60]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?]
... 1 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
<===========================================================================>
Below is my script from from "solr.sh":
#!/bin/bash
set -e
echo "Unzip SOLR ZIP Distribution File"
unzip downloads/alfresco-search-services-2.0.9.1.zip -d /tmp/solr
mv /tmp/solr/alfresco-search-services /home/ejike
# Variables
SOLR_USER=ejike
SOLR_GROUP=ejike
SOLR_HOME=/home/ejike/alfresco-search-services
echo "Creating SOLR systemd service file..."
cat <<EOL | sudo tee /etc/systemd/system/solr.service
[Unit]
Description=Apache SOLR Web Application Container
After=network.target
[Service]
Type=forking
User=$SOLR_USER
Group=$SOLR_GROUP
Environment="JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64"
ExecStart=/home/ejike/alfresco-search-services/solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive -Dalfresco.secureComms=secret -Dalfresco.secureComms.secret=secret"
ExecStop=/home/ejike/alfresco-search-services/solr/bin/solr stop
[Install]
WantedBy=multi-user.target
EOL
echo "Reloading systemd daemon..."
sudo systemctl daemon-reload
echo "Starting Solr service..."
sudo systemctl start solr
echo "Stopping Solr service..."
sudo systemctl stop solr
echo "Enabling Solr service to start on boot..."
sudo systemctl enable solr
echo "SOLR has been configured"
Please can someone assist me on why I am receiving such an error?
Thanks.
Explore our Alfresco products with the links below. Use labels to filter content by product module.