Closed (fixed)
Project:
Barracuda
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2012 at 02:16 UTC
Updated:
2 Dec 2012 at 18:50 UTC
Tested the following locally in Aegir on OSX with solr installed via homebrew and the exact same config works, but I'm unable to connect to the search instance on the staging server when using the following settings.
Solr host: 127.0.0.1
Solr port 8080
Solr path /solr/unique001
Module using to access with:
http://drupal.org/project/search_api_solr
Configurations copied from "search_api_solr" module directory as directed in it's INSTALL.txt
Solr config setup on server applied as per http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/SOLR.txt
Solr was added to config after initial Barracuda install, but I can see it's running by doing the following:
netstat -alnp |grep 8080
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 12819/java
and
ps ax | grep tomcat*
12819 ? Sl 0:03 /usr/lib/jvm/java-6-openjdk/jre/bin/java -Djava.util.logging.config.file=/opt/tomcat6/conf/logging.properties -Dsolr.solr.home=/opt/solr -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms64m -Xmx256m -Djava.endorsed.dirs=/opt/tomcat6/endorsed -classpath /opt/tomcat6/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat6 -Dcatalina.home=/opt/tomcat6 -Djava.io.tmpdir=/opt/tomcat6/temp org.apache.catalina.startup.Bootstrap start
Comments
Comment #1
omega8cc commentedWait, what you mean by "but I'm unable to connect to the search instance on the staging server" - what is the "the staging server" and where from are you trying to connect? Tomcat is available only for localhost.
Comment #2
realityloop commentedthis server is a staging server.. it is all on localhost of the machine in question.
Comment #3
omega8cc commentedNow I'm confused. Why do you mention OSX if this is for some standard BOA install? Or is it in the VirtualBox VM on OSX maybe? Please submit all required install logs/files.
Comment #4
realityloop commentedI first tested locally on OS X using Solr installed via homebrew, and applying the d7 config as per the search_api_solr instructions.
Then I ran BOA update on barracuda stable to add solr support.
I then edited the solr config on the barracuda server to copy the settings as per search_api_solr, I'm using the same config on both my mac and the barracuda server, but I'm unable to connect to the barracuda instance from the site that is on the barracuda server
Comment #5
omega8cc commentedCould you please attach required logs? Thanks.
Comment #6
realityloop commentedComment #7
omega8cc commentedDid you follow this part? http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/SOLR.txt#l10
I don't see any reason why it wouldn't work. There must be something wrong in this site settings.
If you did follow http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/SOLR.txt#l10 and then restarted tomcat, it must work.
Also, if this is D6 site, the Solr path in its settings should be
solr/unique001, not/solr/unique001Comment #8
realityloop commentedYes I've followed the instructions listed in the SOLR.txt file you linked to, however I'm using the search_api_solr module instead of apachesolr, and it seems the search_api_solr modules config files are trying to access files in directories that are's in the same place in relation to the site config's.. eg:
http://drupalcode.org/project/search_api_solr.git/blob_plain/refs/heads/...
I haven't been able to find these directories either to update the config with the aim of getting it working
Comment #9
omega8cc commentedThis explains everything. BOA supports both
apachesolrandsearch_api_solr, but it comes with Solr 1.4, not 3.x, so you are using wrong config files. You should use those from http://drupalcode.org/project/search_api_solr.git/tree/HEAD:/solr-conf/1.4If you are curious why we don't use Solr 3.x, here is the explanation: http://www.koumbit.org/en/articles/version-compatibility-chart-tomcat-ap...
Comment #10
omega8cc commentedWe should make it clear that BOA provides Apache Solr 1.4 with Tomcat 6 and there should be a better how-to.
Comment #11
omega8cc commentedCommitted in http://drupalcode.org/project/barracuda.git/commit/1ad4292
Thanks!
Comment #12.0
(not verified) commentedfixed typos