How to debug solr exceptions/warnings for Alfresco (Part 1)

There are two kinds of solr error / warnings that I’ve seen a few times but never really investigated further. Now when in the process of migrating a big Alfresco installation from Lucene to Solr we had alot of errors and warnings that needed to be investigated and fixed.

Error/warning 1:

2015-04-28 16:11:35,532 WARN  [org.alfresco.solr.tracker.CoreTracker] Node index failed and skipped for 4777625 in Tx 9223372036854775807
java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:152)
        at java.net.SocketInputStream.read(SocketInputStream.java:122)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
        at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
        at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
        at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
        at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
        at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        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:393)
        at org.alfresco.solr.client.SOLRAPIClient.getTextContent(SOLRAPIClient.java:992)
        at org.alfresco.solr.tracker.CoreTracker.addContentPropertyToDoc(CoreTracker.java:2980)
        at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2568)
        at org.alfresco.solr.tracker.CoreTracker.reindexNodes(CoreTracker.java:1057)
        at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:566)
        at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

Error/warning 2:

2015-04-28 15:02:50,413 WARN  [org.alfresco.solr.tracker.CoreTracker] Node index failed and skipped for 6899573 in Tx 9223372036854775807
org.json.JSONException: Unterminated string at character 1866
        at org.json.JSONTokener.syntaxError(JSONTokener.java:413)
        at org.json.JSONTokener.nextString(JSONTokener.java:244)
        at org.json.JSONTokener.nextValue(JSONTokener.java:344)
        at org.json.JSONObject.(JSONObject.java:206)
        at org.json.JSONTokener.nextValue(JSONTokener.java:347)
        at org.json.JSONArray.(JSONArray.java:125)
        at org.json.JSONTokener.nextValue(JSONTokener.java:351)
        at org.json.JSONObject.(JSONObject.java:206)
        at org.alfresco.solr.client.SOLRAPIClient.getNodesMetaData(SOLRAPIClient.java:774)
        at org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2376)
        at org.alfresco.solr.tracker.CoreTracker.reindexNodes(CoreTracker.java:1057)
        at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:566)
        at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

This first part of the guide will cover the first error/warning.

This particular error comes from a timeout when Alfresco is trying to extract text content from the document. Possible causes could be a slow transformation or high load on the system. So the place to start would be to just increase the timeout in solr so that it waits around a bit longer for a response. This is done by modifying the SOLR_HOME/workspace-SpacesStore/conf/solrcore.properties and SOLR_HOME/archive-SpacesStore/conf/solrcore.properties.

The setting to look for is: alfresco.socketTimeout. Default value is 60 seconds (60000). Increase it to a level suitable for your installation such as alfresco.socketTimeout=240000 for 4 minutes timeout.

Some times increasing the timeout does not help and you see that Alfresco is working hard to serve the request. Then you might have to do with a corrupt document or a document which is too large to effectively export text content from.

Part 2 of this guide will contain information about the other error/warning. In it you will also get some tips on how to get more information about a failed index request.

How to debug solr exceptions/warnings for Alfresco (Part 2)
How to debug solr exceptions/warnings for Alfresco (Part 3)

This entry was posted in Alfresco, Solr. Bookmark the permalink.

16 Responses to How to debug solr exceptions/warnings for Alfresco (Part 1)

  1. Lepsofts says:

    Fantastic website content. Just what I ended up being looking for!
    All the best,
    ps
    Check out your fresh SE position at type in google lepsoft RankChecker

  2. thanks for sharing bro

  3. Thomas says:

    Great post! Have nice day ! :) u1uix

  4. Ivan says:

    Hi Marcus,

    Amaze! I have been looking bing for hours because of this and I also in the end think it is in this article! Maybe I recommend you something helps me all the time?

    For the last several years, micro services has been an important trend in IT architecture. Technology consulting firm Thought works has declared that “a micro services architecture as programming model” is one of the four rising trends of 2017, whereas others in the press are expressing their endorsement of micro services making architects and IT executives feel a fear of missing out on the next exciting trend.
    I am so grateful for your blog. Really looking forward to read more.

    Thank you,
    Ivan

  5. kiranmaibabu says:

    Hi

    Thanks for the information. The information you provided is very helpful.concept providers very well.

    Thanks.

  6. sao says:

    많은 정보 감사히 받겠습니다.
    매우
    감사

  7. youjizz says:

    In alfresco-global.properties, set the property ‘solr.secureComms’ to ‘none’ and ensure that the property ‘solr.port’ is set to the correct non-SSL port of the application server in which Solr is running. Similarly, in each solrcore.properties file, set the property ‘alfresco.secureComms’ to ‘none’ and ensure that the property ‘alfresco.port’ is set to the correct non-SSL port of the application server in which your repository is running.

  8. Name says:

    comment text
    link

  9. And then came Givenchy, with his quietly glam, simple dress — and Hepburn, of course, who was on her way to becoming a fashion and film icon. The duo ushered the LBD into its modern-day interpretation: a piece of clothing that evokes a wondrous lifestyle but does that in the simplest way, no frills required.
    https://www.betting33.com

  10. dok222 says:

    Titus Kaphar’s “Enough About You” greets your first glance. Kaphar’s much-lauded work is based on an 18th-century painting, but in his version, the focus is placed on a young black boy, whose portrait is placed in an ornate gold frame. Meanwhile, the rest of the composition — featuring white men in powder wigs, including Elihu Yale
    https://www.dok222.com

  11. best373 says:

    is crumpled up and trails off across the wall. Kaphar’s work speculates on the life, desires and hopes of the lone black figure, who, in the original work, remains small in the background, serving Yale and colleagues while wearing a steel collar. The work is ambitious, demanding and a reckoning on black possibilities. And it encapsulates the ethos of Lewis’ dynamic art collection.
    https://www.best373.com

  12. dok222 says:

    Lewis, who recently became the creative director of UTA Fine Arts and UTA Artist Space, is a fixture of the Los Angeles art community. But before Los Angeles, and before 13 years of building his bold collection, his earliest engagements with art happened in his hometown of New Orleans.
    https://www.dok222.com

  13. ccclub700 says:

    Lewis credits the city’s black cultural productions, museums and vibrancy as an aesthetic and ethical foundation for what would become the tenets of his collection: brilliantly executed craftsmanship, narrative-driven practices and the work of black practitioners.
    https://www.ccclub700.com

  14. hgame79 says:

    from Mardi Gras celebrations and artisans to the sculptures and festivities of Louis Armstrong Park. “Being able to grow up in that land of music, food and art, and then being in this beautiful community of artists that were just part of our everyday scene, was an extraordinary thing,” Lewis said.
    https://www.hgame79.com

  15. Cristiano says:

    This is only one of the bestforumin therm of communication between people. I had a very meaningful dialogue with a member which frequently Go to This Site about custom merchandise Custom popcorn boxes wholesale and her told me about relyit.co.uk

  16. Thunderball results history shows all the previous thunderball results, with complete prize breakdown. If you have missed the latest thunderball result, we are here to help you with free thunderball past results with complete prize and information for free.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>