Hi,

This is a fresh drupal installation.
Setup Solr 4.6 with jetty following the instructions here (per documentation)

Solr working just fine. Configured the server through module's configuration. Enabled the default index and when I try to index I keep getting this error message "Couldn't index items. Check the logs for details".

I am checking log files; I have 3 of them. 1 for jetty and 2 for solr. But I see nothing useful.
out.log --> Nothing
stderrorout.log --> Nothing
request.log --> Looks just fine. Only 1 line with 400 response. I am not sure if that is something I should worry about but sure it is not helpful.

I want to troubleshoot the problem but have no idea how, if I can't get something from the logs.

Please help....
Thanks

CommentFileSizeAuthor
#5 solrsearch.jpg20.16 KBmhamed
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hgurol’s picture

Alright, now I got a proper error message.

SearchApiException while indexing: "400" Status: HTTP method POST is not supported by this URL:

Now, where do I go?

PS: For those who are confused about checking the log to see detailed error messages: It is in the Drupal Reports section, Recent log messages. You will not be able to see it if you disable Database Logging module for performance reasons like I do.

drunken monkey’s picture

On the Search API server page, does it say it could successfully connect to the Solr server? Maybe that is the problem?
Otherwise, does it say which URL it was that didn't support POST?

ismailmechbal’s picture

I had this same error. The problem was having the # in the solr path in the search api config, so it had to be "solr/drupal" and not "solr/#/drupal".

https://drupal.org/comment/8438941#comment-8438941

hgurol’s picture

Status: Active » Closed (works as designed)

It was a config problem.
Like Ismail says, the solr path should say "solr/drupal", replace drupal with your own instance(core) name.
Closing this one, thanks.

mhamed’s picture

FileSize
20.16 KB

Perhaps this is repeated by many but may be an other manner:
I ve struggled two days with search api solr and the solr version 5.5.2 everything is as in the install guide and many tutorials .but the created server has always the error of indexing.
Here are the steps but still can not see the reason:

1-created solr user and chawn it -R the all server/folder :

Since in solr log it gave me the error of nor index directory:Checking up :there is an index directory under:solr-5.5.2/server/solr/drupal/data/index/. So the error disappeared from the log.

2-under the server created in drupal 7/ :

Administration » Configuration » Search and metadata» search_api/created server: used: as url site.com:8983/solr/#/drupal as described .
And is the real link for the solr page for me .
But as #3 stated the correct one is :site.com:8983/solr/drupal even on clicking on this url it gives:HTTP ERROR 404.

3- In Advanced configuration of the server:

HTTP method:GET
So POST not compatible as is in :#1

4 -GOing to the search created :

Click to index and life is beautiful

Kirubelg’s picture

I found the solution for "Couldn't index items. Check the logs for details" go to search index page and disable the status then enable it again, then click on the button index now, automatically it will start indexing.

fjgarlin’s picture

I was having a similar issue and needed to both remove the # from the server URL and also disable/enable the indexes. Once I did all that everything came into life and the server was indexing properly. Thanks for the suggestions.

Bobby Endarr Ramdin’s picture

#6 worked for me nicely!

pmkanse’s picture

#6 worked for me nicely!

Thanks.

oldspot’s picture

Disabling and re-enabling the index worked for me too! Thanks!

manish_7’s picture

#6 is helpful to fix this issue