Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi guys, I have followed the guide at http://www.nickveenhof.be/blog/simple-guide-install-apache-solr-3x-drupal-7 and I am able to login to http://localhost:8983/solr/admin. However when I went back to my drupal site and tried to set up the connection, it said "Your site was unable to contact the Apache Solr server." Does anyone know what went wrong here?
Comments
Comment #1
Nick_vhAre you running all these services locally? You might have a firewall?
Comment #2
Nick_vhComment #3
Louis Bob CreditAttribution: Louis Bob commentedI have the exact same issue, followed the same tutorial.
I can connect to http://www.mysite.com:8983/solr/admin/
But on http://www.mysite.com/admin/config/search/apachesolr/settings/solr/edit it says that "Your site was unable to contact the Apache Solr server" when I test the connection with http://www.mysite.com:8983/solr
Site running on ubuntu server 11.04 (64bits).
Any idea?
Comment #4
Louis Bob CreditAttribution: Louis Bob commentedIt works for me now!
I added the "www" in front of my domain name, forgot them...
Comment #5
Nick_vhWeird.. Closing this thread. Not specific enough :)
Comment #6
Denise_0523 CreditAttribution: Denise_0523 commentedI got the same issue, Site running on centos6.3 (64bits). any helps?
Comment #7
sjhuskey CreditAttribution: sjhuskey as a volunteer commentedYou can receive this error if you are using http basic authorization to limit access to Solr. In that case, set the Server URL to include the username and password, using the following pattern: http://username:password@example.com:8080/solr. So, if your username is user, your password is 12345, your URL is mysite.com, and your Solr is using port 8080, do http://user:12345@mysite.com:8080/solr.
Comment #8
Dhruv Panchal CreditAttribution: Dhruv Panchal commentedYou just need to add your collection in solr by following the step given in this url ( https://drupal.stackexchange.com/questions/95897/apache-solr-4-6-0-insta... ) and then select your collection from your solr which is running on localhost or live site (http://localhost:8983/solr/) and go to schema tab. Click schema tab and then you can see you schema file attach in apachesolr module.
You now just need to your schema url which just look like this http://localhost:8983/solr/your_core_name/. Now add this url in apachesolr module.
Then it will show that your site has contacted apache solr server.
Comment #9
xadim CreditAttribution: xadim as a volunteer and commentedThis can also occur on AWS and here's how to fix it:
After installing SolR, you need to add your collection in solr by running : sudo su - solr -c "/opt/solr/bin/solr create -c mynewsolrcollection -n data_driven_schema_configs"
Your Solr collection link should look like:
-> http://your_domain_or_ip:8983/solr/mysolrcollection
Your SolR AWS Security Group should allow ip from your Drupal domain, then try to reconnect Drupal and SolR.
Hope that helps-
Cheers!!!