Question

Solr and Tomcat Connection Hangs Forever

  • Posted on November 17, 2014
  • seyhunAsked by seyhun

Hi

I’am trying to login Solr admin for “pointro” droplet. via :8080/solr but it hangs no response at all. So is any firewall setup present?

Because at first install, everything worked, but now suddenly stopped.

I follow this steps descibed in this document;

http://eemglobal.com/2014/07/setup-rails-4-with-sunspot-gem-and-solr-4-7-in-production-environment-on-ubuntu-14/

What is the workaround?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

That is a fairly common problem. By default, Tomcat will prefer the IPv6 address. You’ll need to force it to use IPv4 by setting -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true in your JAVA_OPTS

You can add those values to JAVA_OPTS in the file /etc/default/tomcat7 and the restart Tomcat with: sudo service tomcat7 restart