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
Comment | File | Size | Author |
---|---|---|---|
#5 | solrsearch.jpg | 20.16 KB | mhamed |
Comments
Comment #1
hgurol CreditAttribution: hgurol commentedAlright, 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.
Comment #2
drunken monkeyOn 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?
Comment #3
ismailmechbal CreditAttribution: ismailmechbal commentedhttps://drupal.org/comment/8438941#comment-8438941
Comment #4
hgurol CreditAttribution: hgurol commentedIt 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.
Comment #5
mhamed CreditAttribution: mhamed commentedPerhaps 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:GETSo POST not compatible as is in :#1
4 -GOing to the search created :
Click to index and life is beautifulComment #6
Kirubelg CreditAttribution: Kirubelg commentedI 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.
Comment #7
fjgarlin CreditAttribution: fjgarlin as a volunteer commentedI 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.
Comment #8
Bobby Endarr Ramdin CreditAttribution: Bobby Endarr Ramdin as a volunteer commented#6 worked for me nicely!
Comment #9
pmkanse CreditAttribution: pmkanse commented#6 worked for me nicely!
Thanks.
Comment #10
oldspot CreditAttribution: oldspot at Zoocha commentedDisabling and re-enabling the index worked for me too! Thanks!
Comment #11
manish_7 CreditAttribution: manish_7 commented#6 is helpful to fix this issue