You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

"500" Status: Internal Server Error in apachesolr_cron

 

We have installed a 'solr' server for the use of our Drupal sites. It has been an interesting experience so far. Many thanks to all who have blazed the trail ahead of us.

I started getting the error

"500" Status: Internal Server Error in apachesolr_cron

on our main testing Drupal site recently. The error was showing up in  Adminstration -> Reports -> Recent log entries. I ran a few google searches and didn't find an answer. The index on this system is on the order of about 100K nodes. We had done some updates that required a 'rebuild' of the index. The error started to show up late into the rebuild process.
Well, I was looking in the wrong place. The 500 error was NOT coming from our Drupal server. It was coming from the Solr server. Something that just wasn't obvious from the error message that I could see.

Anyway, turned out that the error was very simple. The 'rebuild' of the index ran the system out of disk space. I killed off some old logs and all the RPMs that were used to install the solr system, and that provided enough space for the rebuild to finish and the old index to be removed.

All is well again, but , for all the Google searching I did on this error, and the lack of response, I thought it would be a good thing to share what fixed it for me.

Enjoy

Kurt

 
The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

 

Thanks for sharing such

Thanks for sharing such Valuable knowledge with us Kurt, This is really going to be of help for me, am sure... :)

Firstly, I want to thank you

Firstly, I want to thank you for the useful and informative entry.  I am so glad that I have found this your post. The information which you have shared for us is really good explained. Thanks a lot one more time for the useful and detailed post and I will be waiting for more such great articles like this one from you in the nearest future.

birdfeeder

You can set the variable

You can set the variable 'apachesolr_cron_limit' in settings.php to up the number indexed per cron run, but indeed something like the above ought to work in a custom script that bootstraps Drupal. Be careful that $base_url is set correcetly, however. However - if you are using our config files you may want to substantially increase the auto commit max docs in solrconfig.xml - we have it at 500. i.e. Solr will commit right away if there are more than 500 docs pending.      best electric fence

Well its one of the nice

Well its one of the nice discussion regarding the error which you had mentioned here.Even when I open some new sites I come across such types of errors.Its so nice that you posted this topic here so that I can come to know more about it.Rolex Watch

great discussion and also

great discussion and also very useful one.I have also come up with such errors.And thanks for sharing this post.I think so it will help me a lot .

mobile website

need to solve the error.

Hi all, this is for your information. Please contact me if you experience the same problem.My website is hosted at Strato (Germany). Since the beginning of January, me and several other drupal administrators experience problems with cron (it hangs) on different drupal installations, all hosted at Strato (using different hositing packages). Cron runs normally, if update-status is disabled. Klicking admin/reports/updates always shows HTTP error 500 (internal server error). Some people can't even reach their installations' admin-pages...

cuff links

hi.. nice information

hi..

nice information provided and also very useful one.So if the error persist again should we kill of th logs and try again .I think so it will work.

medical product testing

it creats more problem.

The following is a list of HyperText Transfer Protocol (HTTP) response status codes. This includes codes from IETF internet standards as well as unstandardised RFCs, other specifications and some additional commonly used codes. The first digit of the status code specifies one of five classes of response; the bare minimum for an HTTP client is that it recognises these five classes. Microsoft IIS may use additional decimal sub-codes to provide more specific information,[1] but these are not listed here. The phrases used are the standard examples, but any human-readable alternative can be provided. Unless otherwise stated, the status code is part of the HTTP/1.1 standard.
northern california skydive

I am very enjoyed for this

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. I think it may be help all of you. Thanks a lot for enjoying this beauty blog with me. I am appreciating it very much! Looking forward to another great blog. Good luck to the author! all the best!..

positivity app

Recovery

When this happens to my clients I get phone calls in the middle of the night. I am now trying to integrate auto recovery software like that provided by datanumen to allow my clients to restore there own sites. Most of the sites I build are data driven sites and can be easily rebuilt by restoring a previous build. Automating and simplying this for client self-service is another matter all together though. I think I am getting close, but I stll get the deer in the headlights look too often.