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

Nick_vh’s picture

Are you running all these services locally? You might have a firewall?

Nick_vh’s picture

Status: Active » Postponed (maintainer needs more info)
Louis Bob’s picture

I 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?

Louis Bob’s picture

It works for me now!
I added the "www" in front of my domain name, forgot them...

Nick_vh’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Weird.. Closing this thread. Not specific enough :)

Denise_0523’s picture

I got the same issue, Site running on centos6.3 (64bits). any helps?

sjhuskey’s picture

Issue summary: View changes

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

Dhruv Panchal’s picture

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

xadim’s picture

This 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!!!