Hello everybody,
In the solr6 webconsole, the logging is producing lots of errors, doing rollbacks mainly because of the following error :
java.lang.NullPointerException
at org.alfresco.solr.tracker.MetadataTracker.setLastTxCommitTimeAndTxIdInTrackerState(MetadataTracker.java:1023)
at org.alfresco.solr.tracker.MetadataTracker.checkRepoAndIndexConsistency(MetadataTracker.java:404)
at org.alfresco.solr.tracker.MetadataTracker.trackRepository(MetadataTracker.java:282)
at org.alfresco.solr.tracker.MetadataTracker.doTrack(MetadataTracker.java:242)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:242)
at org.alfresco.solr.tracker.ActivatableTracker.track(ActivatableTracker.java:97)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:60)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Does anybody have an idea how to solve this?
Do you have some customized configuration in solrcore.properties for the following parameters?
"solr.initial.transaction.range"
"solr.initial.transaction.id"
What Search Services version are you using?
Hello,
Indeed I have the following configuration, which has been the initial config of the file:
solr.initial.transaction.range=0-2000
I am using Search Services 2.0 and installed it according to this tutorial : Alfresco Docs - Installation options
Here is also now the second error message I get in the solr console :
9/14/2021, 9:26:08 AM | ERROR true | SolrInformationServer | Unable to get nodes metadata from repository using fromNodeId=963796,​ toNodeId=963796,​... | |
java.net.ConnectException: Connection refused (Connection refused) at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/java.net.Socket.connect(Socket.java:558) at java.base/java.net.Socket.<init>(Socket.java:454) at java.base/java.net.Socket.<init>(Socket.java:306) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.alfresco.httpclient.RequestHeadersHttpClient.executeMethod(RequestHeadersHttpClient.java:84) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.alfresco.httpclient.RequestHeadersHttpClient.executeMethod(RequestHeadersHttpClient.java:69) at org.alfresco.httpclient.AbstractHttpClient.executeMethod(AbstractHttpClient.java:135) at org.alfresco.httpclient.AbstractHttpClient.sendRemoteRequest(AbstractHttpClient.java:111) at org.alfresco.httpclient.HttpClientFactory$DefaultHttpClient.sendRequest(HttpClientFactory.java:496) at org.alfresco.solr.client.SOLRAPIClient.callRepository(SOLRAPIClient.java:1593) at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:812) at org.alfresco.solr.SolrInformationServer.getNodesMetaDataFromRepository(SolrInformationServer.java:4087) at org.alfresco.solr.SolrInformationServer.getCascadeNodes(SolrInformationServer.java:1874) at org.alfresco.solr.tracker.CascadeTracker.processCascades(CascadeTracker.java:209) at org.alfresco.solr.tracker.CascadeTracker.trackRepository(CascadeTracker.java:130) at org.alfresco.solr.tracker.CascadeTracker.doTrack(CascadeTracker.java:115) at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:242) at org.alfresco.solr.tracker.ActivatableTracker.track(ActivatableTracker.java:97) at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:60) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) |
Then I guess that the main problem is that SOLR is not able to communicate with Alfresco Repository, likely due to a missconfiguration of TLS communication or incorrect Alfreso Repository server URL, port and protocol in SOLR side.
The repository configuration should be good as I was able to do a re-index. That should not be possible otherwise.
This is my Configuration in the alfresco-global.properties file:
solr.secureComms=none
solr.host=localhost
solr.port=8983
solr.port.ssl=8983
index.subsystem.name=solr6
solr.baseUrl=/solr
An this is my solrcore.properties-file :
# none, https
alfresco.secureComms=none
# ssl, default values
# keystore and trustore files are not provided by default
alfresco.encryption.ssl.keystore.type=JCEKS
alfresco.encryption.ssl.keystore.provider=
alfresco.encryption.ssl.keystore.location=/data/alfresco/alfresco-7.0.1.3/alfresco-search-services/solrhome/keystore/ssl.repo.client.keystore
alfresco.encryption.ssl.keystore.passwordFileLocation=
alfresco.encryption.ssl.truststore.type=JCEKS
alfresco.encryption.ssl.truststore.provider=
alfresco.encryption.ssl.truststore.location=/data/alfresco/alfresco-7.0.1.3/alfresco-search-services/solrhome/keystore/ssl.repo.client.truststore
alfresco.encryption.ssl.truststore.passwordFileLocation=
alfresco.port.ssl=8443
Do you see any inconsistency?
Is Alfresco repository running in http://localhost:8080/alfresco?
localhost:8080/alfresco is the alfresco main page :
The repository is stored under a "/data/alfresco/alf_data/contentstore" - folder and can be accessed by http://servername:8080/shared.
Solr and alfresco are running on the same server.
Here is my config in the admin console:
Hello Angel,
After re-indexing, my search - function in ACS 7 is working now, so solr seems working good.
However I still get numerous times the same error message below.
Do you can help me with this?
_______________________________________________
2021-09-15 09:35:30.033 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@39fc6b2c_Worker-28) [ ] o.a.s.t.AbstractTracker [alfresco / NODE_STATE_PUBLISHER@552974234 / IT #1631698530007] Tracking failure. See the stacktrace below fo
r further details.
org.alfresco.error.AlfrescoRuntimeException: 08150000 GetTransactions return status is 404
at org.alfresco.solr.client.SOLRAPIClient.getTransactions(SOLRAPIClient.java:441)
at org.alfresco.solr.tracker.ShardStatePublisher.doTrack(ShardStatePublisher.java:91)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:242)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:60)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2021-09-15 09:35:30.033 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@39fc6b2c_Worker-33) [ ] o.a.s.t.AbstractTracker [archive / METADATA@1553896360 / IT #1631698530003] Tracking failure. See the stacktrace below for further de
tails.
java.io.IOException: org.alfresco.error.AlfrescoRuntimeException: 08150006 GetTransactions return status is 404
at org.alfresco.solr.tracker.MetadataTracker.trackTransactions(MetadataTracker.java:1001)
at org.alfresco.solr.tracker.MetadataTracker.trackRepository(MetadataTracker.java:301)
at org.alfresco.solr.tracker.MetadataTracker.doTrack(MetadataTracker.java:242)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:242)
at org.alfresco.solr.tracker.ActivatableTracker.track(ActivatableTracker.java:97)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:60)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08150006 GetTransactions return status is 404
at org.alfresco.solr.client.SOLRAPIClient.getTransactions(SOLRAPIClient.java:441)
at org.alfresco.solr.client.SOLRAPIClient.getTransactions(SOLRAPIClient.java:340)
at org.alfresco.solr.tracker.MetadataTracker.getSomeTransactions(MetadataTracker.java:753)
at org.alfresco.solr.tracker.MetadataTracker.trackTransactions(MetadataTracker.java:916)
... 7 more
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.