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

omega8cc’s picture

Wait, 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.

realityloop’s picture

this server is a staging server.. it is all on localhost of the machine in question.

omega8cc’s picture

Status: Active » Postponed (maintainer needs more info)

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

realityloop’s picture

Status: Postponed (maintainer needs more info) » Active

I 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

omega8cc’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please attach required logs? Thanks.

realityloop’s picture

Status: Postponed (maintainer needs more info) » Active
aegir@h01:~$ tail /var/aegir/config/includes/barracuda_log.txt
Tue Aug 14 10:55:26 EST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.3 / Barracuda BOA-2.0.3 / Nginx 1.3.0 / PHP 5.2.17 and 5.3.13 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.25 localhost / Wildcard YES
Sun Sep 23 15:39:18 EST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.3 / Barracuda BOA-2.0.3 / Nginx 1.3.0 / PHP 5.2.17 and 5.3.13 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.27 localhost / Wildcard YES
Wed Nov 14 15:17:09 EST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.4 / Barracuda BOA-2.0.4 / Nginx 1.3.8 / PHP 5.2.17 and 5.3.18 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.28 localhost / Wildcard YES
==> MySQL is listening on 223.27.17.56.
==> This script makes the following assumptions:
 * you have read INSTALL.txt and prepared the platform accordingly
 * you are running as your "aegir" user
==> Aegir will now generate a mysql super user password for you:
  Username : aegir_root
  Password : redacted
  Hostname : h01.drupal.vla-dev.com (223.27.17.56)
==> Installing drush in /var/aegir
==> Drush seems to be functioning properly
==> Installing provision backend in /var/aegir/.drush
==> Installing the frontend
Aegir BOA-2.0.3 automated install script
==============================================================================
Some settings have not been provided and will now be prompted.
Don't worry: you will get to review those settings after the final install

This script will operate the following changes in your system:

1. Create server-level configuration directories
2. Download drush_make
3. Create the Hostmaster frontend platform
4. Install the frontend site
5. Setup the dispatcher (a user cron job)

We are making the following assumptions:
 * you have read and are following the install instructions at:
    http://community.aegirproject.org/installing
 * the FQDN of this machine is valid and resolves
 * you are executing this script as your "aegir" user

The following settings will be used:
 Aegir frontend URL: a01.drupal.vla-dev.com
 Master server FQDN: h01.drupal.vla-dev.com
 Aegir root: /var/aegir
 Aegir user: aegir
 Web group: www-data
 Web server: nginx
 Aegir DB host: localhost
 Aegir DB user: aegir_root
 Aegir DB password: <previously set>
 Drush make version: 6.x-2.3
 Aegir version: BOA-2.0.3
 Aegir platform path: /var/aegir/hostmaster-BOA-2.0.3
 Aegir makefile: /var/aegir/.drush/provision/aegir.make
 Admin email: developers@domain.com

Do you really want to proceed with the install (y/n): y
Project drush_make (6.x-2.3) downloaded to /var/aegir/.drush/drush_make.                                ^[[1;32;40m^[[1m[success]^[[0m
Project drush_make contains 0 modules: .
pressflow downloaded from http://files.aegir.cc/dev/pressflow-6.26.2.tar.gz.                            ^[[1;32;40m^[[1m[ok]^[[0m
hostmaster downloaded from http://files.aegir.cc/versions/hostmaster-BOA-2.0.3.tar.gz.                  ^[[1;32;40m^[[1m[ok]^[[0m
Found makefile: hostmaster.make                                                                         ^[[1;32;40m^[[1m[ok]^[[0m
Project information for admin_menu retrieved.                                                           ^[[1;32;40m^[[1m[ok]^[[0m
Project information for openidadmin retrieved.                                                          ^[[1;32;40m^[[1m[ok]^[[0m
Project information for install_profile_api retrieved.                                                  ^[[1;32;40m^[[1m[ok]^[[0m
Project information for jquery_ui retrieved.                                                            ^[[1;32;40m^[[1m[ok]^[[0m
Project information for modalframe retrieved.                                                           ^[[1;32;40m^[[1m[ok]^[[0m
Project information for hosting_platform_pathauto retrieved.                                            ^[[1;32;40m^[[1m[ok]^[[0m
admin_menu downloaded from http://ftp.drupal.org/files/projects/admin_menu-6.x-1.8.tar.gz.              ^[[1;32;40m^[[1m[ok]^[[0m
openidadmin downloaded from http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.            ^[[1;32;40m^[[1m[ok]^[[0m
install_profile_api downloaded from                                                                     ^[[1;32;40m^[[1m[ok]^[[0m
http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.
jquery_ui downloaded from http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.4.tar.gz.                ^[[1;32;40m^[[1m[ok]^[[0m
modalframe downloaded from http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.              ^[[1;32;40m^[[1m[ok]^[[0m
hosting_platform_pathauto downloaded from                                                               ^[[1;32;40m^[[1m[ok]^[[0m
http://ftp.drupal.org/files/projects/hosting_platform_pathauto-6.x-2.0-beta1.tar.gz.
jquery_ui downloaded from http://files.aegir.cc/dev/jquery.ui-1.6.zip.                                  ^[[1;32;40m^[[1m[ok]^[[0m
Created a01drupalvladevc database                                                                       ^[[1;32;40m^[[1m[success]^[[0m
Creating master server node                                                                             ^[[1;32;40m^[[1m[status]^[[0m
Task verify was added to the queue. Next queue run is 00:55:00+0000, server time is 00:54:45+0000.      ^[[1;32;40m^[[1m[status]^[[0m
Creating db server node                                                                                 ^[[1;32;40m^[[1m[status]^[[0m
Task verify was added to the queue. Next queue run is 00:55:00+0000, server time is 00:54:45+0000.      ^[[1;32;40m^[[1m[status]^[[0m
Task verify was added to the queue. Next queue run is 00:55:00+0000, server time is 00:54:45+0000.      ^[[1;32;40m^[[1m[status]^[[0m
Task import was added to the queue. Next queue run is 00:55:00+0000, server time is 00:54:45+0000.      ^[[1;32;40m^[[1m[status]^[[0m
Configuring menu items                                                                                  ^[[1;32;40m^[[1m[status]^[[0m
Configuring Eldir theme                                                                                 ^[[1;32;40m^[[1m[status]^[[0m
Configuring default blocks                                                                              ^[[1;32;40m^[[1m[status]^[[0m
Configuring roles                                                                                       ^[[1;32;40m^[[1m[status]^[[0m
Content permissions have been rebuilt.                                                                  ^[[1;32;40m^[[1m[status]^[[0m
Initializing the hosting system
Dispatch command was run successfully                                                                   ^[[1;32;40m^[[1m[success]^[[0m
Installed hosting-dispatch cron entry to run every minute                                               ^[[1;32;40m^[[1m[success]^[[0m
This command will replace your crontab for this user. continue? (y/n): y
/var/aegir/drush/drush.php '@hostmaster' hosting-dispatch

==============================================================================


Congratulations, Aegir has now been installed.

You should now log in to the Aegir frontend by opening the following link in your web browser:

http://a01.drupal.vla-dev.com/user/reset/1/1344905686/683695aee76016cd2930fc6047159378


==============================================================================
###
### Configuration created on 120814-1044
### with Barracuda version BOA-2.0.3
###
### NOTE: the group of settings displayed bellow will *not* be overriden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
###
_HTTP_WILDCARD=YES
_MY_OWNIP="223.27.17.56"
_MY_HOSTN="h01.drupal.vla-dev.com"
_MY_FRONT="a01.drupal.vla-dev.com"
_THIS_DB_HOST=localhost
_SMTP_RELAY_TEST=YES
_SMTP_RELAY_HOST=""
_LOCAL_NETWORK_IP=""
_LOCAL_NETWORK_HN=""
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Barracuda script,
### both on initial install and upgrade.
###
_MY_EMAIL="sysadmin@domain.com"
_XTRAS_LIST="CSF SLR"
_AUTOPILOT=NO
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR="ftp.debian.org"
_LOCAL_UBUNTU_MIRROR="archive.ubuntu.com"
_FORCE_GIT_MIRROR=""
_DNS_SETUP_TEST=YES
_NGINX_EXTRA_CONF=""
_NGINX_WORKERS=AUTO
_PHP_FPM_WORKERS=AUTO
_BUILD_FROM_SRC=NO
_PHP_MODERN_ONLY=YES
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
_LOAD_LIMIT_ONE=1444
_LOAD_LIMIT_TWO=888
_CUSTOM_CONFIG_CSF=NO
_CUSTOM_CONFIG_SQL=NO
_CUSTOM_CONFIG_REDIS=NO
_CUSTOM_CONFIG_PHP_5_2=NO
_CUSTOM_CONFIG_PHP_5_3=NO
_SPEED_VALID_MAX=3600
_NGINX_DOS_LIMIT=300
_SYSTEM_UPGRADE_ONLY=NO
_USE_MEMCACHED=NO
###
### Configuration created on 120814-1044
### with Barracuda version BOA-2.0.3
### 
_USE_STOCK=NO
omega8cc’s picture

Did 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/unique001

realityloop’s picture

Yes 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/...

<!-- A dir option by itself adds any files found in the directory to
       the classpath, this is useful for including all jars in a
       directory.
    -->
  <lib dir="../../contrib/extraction/lib" />
  <lib dir="../../contrib/clustering/lib/" />

I haven't been able to find these directories either to update the config with the aim of getting it working

omega8cc’s picture

Status: Active » Closed (works as designed)

This explains everything. BOA supports both apachesolr and search_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.4

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

omega8cc’s picture

Component: Miscellaneous » Documentation
Category: support » task
Status: Closed (works as designed) » Needs work

We should make it clear that BOA provides Apache Solr 1.4 with Tomcat 6 and there should be a better how-to.

omega8cc’s picture

Title: Unable to connect to solr instance on localhost » Make it clear that BOA provides Apache Solr 1.4 with Tomcat 6 and update the SOLR how-to
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

fixed typos