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.

65 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.

  17. You can play lunchtime results offline and online both. The UK49s is one of the biggest national lotteries which have been played with a gap.

  18. 49s says:

    49s legally established as 6 balls and 1 is bonus ball. However, depending on your betting and cash spend on stakes you can choose randomly one ball. Then play with only one ball for which you are betting out.

  19. Nothing is more admirable than the fortitude with which millionaires tolerate the disadvantages of their wealth.

  20. Nice guidelines, many because of the writer. It is comprehensible in my opinion now, the usefulness and importance is overwhelming. Many thanks yet again and best of luck!

  21. Just file making clear content. I beg your pardon? exactly I needed! I have been previously browsing search engines like google the complete sunlight hours for some correct item such as this

  22. require instant cash winstar casino concerts however, given that a property loan can be a long-term

  23. to read more says:

    problems? A number of my blog visitors have complained about my website not working correctly in Explorer but looks great in Opera.

  24. Thank you, I ave recently been looking for info about this subject for ages and yours is the best I have discovered so far. But, what about the conclusion? Are you sure about the source?

  25. Thanks for the article post. Keep writing.

  26. Tattoo Shops says:

    Thanks a lot for the blog article. Fantastic.

  27. C_TS4C_2020 says:

    Im no professional, but I think you just made the best point. You obviously comprehend what youre talking about, and I can definitely get behind that. Thanks for staying so upfront and so truthful.

  28. Thanks a lot for the blog post.Much thanks again. Keep writing.

  29. Really appreciate you sharing this blog article. Will read on

  30. Right away I am ready to do my breakfast, later than having my breakfast coming again to read more news.

  31. Looking forward to reading more. Great article post.Really thank you! Keep writing.

  32. Viagra says:

    There as noticeably a bundle to find out about this. I assume you made certain nice factors in features also.

  33. This Site says:

    Very good article! We are linking to this particularly great post on our site. Keep up the great writing.

  34. Rolet online says:

    Optimization? I am trying to get my blog to rank for some targeted keywords but I am not seeing very good gains.

  35. Muchos Gracias for your blog post. Awesome.

  36. Secondary moment My partner and i acquired and then both of those events happy with %anchor% When important I most certainly will arrangement as a result supplier once again..Fantastic occupation.

  37. Thank you for your post.Thanks Again. Really Great.

  38. Thank you so much and I am looking ahead to touch you.

  39. laptop akku says:

    Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the commenters right here! Its constantly nice when you can not only be informed, but also entertained! I am certain you had enjoyable writing this write-up. http://www.laptop-akkus.com

  40. I was reading some of your blog posts on this site and I conceive this internet site is real informative! Keep posting.

  41. This article has truly peaked my interest. I am going to bookmark

  42. Wow, marvelous blog layout! How long have you been

  43. sante de et le territoire et sa batarde sera je

  44. windows says:

    There as certainly a great deal to know about this subject. I like all the points you ave made.

  45. Some actually good content on this web web site, appreciate it for share. A conservative can be a man who sits and thinks, mostly is located. by Woodrow Wilson.

  46. erotik says:

    transfers a slice of the risk he takes on your behalf, back to you.

  47. romance understanding. With online video clip clip

  48. Tattoo Shops says:

    This very blog is without a doubt entertaining and amusing. I have chosen many useful things out of this amazing blog. I ad love to go back again soon. Thanks!

  49. It as not that I want to duplicate your web-site, but I really like the design and style. Could you tell me which design are you using? Or was it tailor made?

  50. What are the laptops with best battery life?
    It’s all a numbers game, so deciding which are the laptops with best battery life is objective. Right now, the laptop with best battery life you can buy is the Dell Latitude 9410 2-in-1, which comes in at a ridiculous 16 hours and 54 minutes. This is one of the best business laptops that you can buy. Along with its epic endurance, this ultraportable enterprise machine has a slim yet durable chassis, a solid 1080p display and plenty of security features, including a fingerprint sensor and IR camera.

    Long The battery life

    https://www.all-laptopbattery.com/dell-latitude-e4200.html Dell Latitude E4200 Battery

  51. wonderful points altogether, you simply gained a brand new reader. What would you suggest in regards to your post that you made some days ago? Any positive?

  52. bwi says:

    womens ray ban sunglasses ??????30????????????????5??????????????? | ????????

  53. Thank you for producing the powerful, dependable, educational and as well as easy tips about your topic.

  54. I really liked your post.Really thank you! Keep writing.

  55. wonderful points altogether, you simply gained a brand new reader. What would you suggest in regards to your post that you made some days ago? Any positive?
    https://thelotteryresults.uk/set-for-life-statistics/
    I really liked your post. Really thank you! Keep writing.

  56. 에세머 says:

    Looking around I like to surf around the web, often I will just go to Digg and follow thru

  57. the book in it or something. I think that you

  58. 부커취 says:

    This awesome blog is really interesting and besides diverting. I have picked many useful advices out of this source. I ad love to come back over and over again. Thanks a lot!

  59. I truly appreciate this blog article.Really thank you! Want more.

  60. 관전클럽 says:

    share. I know this is off topic but I simply needed to

  61. venue finder says:

    I think this is a real great blog article.Thanks Again. Cool.

  62. Porn Videos says:

    Merely wanna input that you have a very decent internet site , I like the style it actually stands out.

  63. You made some decent points there. I did a search on the subject matter and found most guys will go along with with your site.

  64. pretty practical stuff, overall I feel this is really worth a bookmark, thanks

  65. That is a admirable blog, does one be engaged happening accomplish a interview around definitely how you will drafted the item? In that case mail me personally!

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>