Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 22 18:26
    sidddrupal commented #1106
  • Aug 22 17:23
    lmakarov edited #1124
  • Aug 22 17:22
    lmakarov edited #1124
  • Aug 22 17:21
    lmakarov edited #1124
  • Aug 22 17:21
    achekulaev labeled #1110
  • Aug 22 17:21
    achekulaev labeled #1110
  • Aug 22 17:21
    lmakarov commented #1099
  • Aug 22 17:21
    lmakarov commented #1099
  • Aug 22 17:13
    lmakarov labeled #1115
  • Aug 22 17:13
    lmakarov assigned #1115
  • Aug 22 17:09
    lmakarov edited #1114
  • Aug 22 17:06
    lmakarov commented #939
  • Aug 22 17:06
    lmakarov labeled #1124
  • Aug 22 17:06
    lmakarov assigned #1124
  • Aug 22 17:06
    lmakarov opened #1124
  • Aug 22 17:00
    andrnimch commented #1123
  • Aug 22 16:48
    andrnimch closed #1123
  • Aug 22 16:48
    andrnimch commented #1123
  • Aug 22 16:35
    lmakarov commented #939
  • Aug 22 16:27
    lmakarov commented #939
James Marks
@jamesmarks
@frederickjh Ok, well, it was after that change that fin ps showed solr as 'healthy'.
@frederickjh which seems like progress.
@frederickjh But I don't want to keep you up. Hopefully, I can get it from here. Really appreciate your patience.
Frederick Henderson
@frederickjh
Maybe @lmakarov will chime in when he see this chat with some helpful advice. I am guessing he is not around right now.
James Marks
@jamesmarks
@frederickjh Sounds good. Thanks again!
Frederick Henderson
@frederickjh
He is one of the developer and tries to answer questions in this chat regularly.
No problem.
James Marks
@jamesmarks
@shelane Hello Shelane, are you familiar with troubleshooting Solr configuration under Docksal?
Leonid Makarov
@lmakarov
@/all Issues with WSL in the latest Windows 10 v1903 have been addressed.
https://github.com/docksal/docksal/issues/1103#issuecomment-522166585
James Marks
@jamesmarks
@lmakarov Wondering if you can help. Using Docksal with search_api_solr and Solr as an addon. I can get the site to connect with the Solr server but I can't seem to get a functional core.
Followed the instructions here https://docs.docksal.io/tools/apache-solr/#drupal-configuration explicitly.
Leonid Makarov
@lmakarov
@jamesmarks Drupal 8 + search_api_solr? Do you have any hard requirements around Solr version (e.g. both Acquia and Pantheon stick with ancient versions)?
James Marks
@jamesmarks
@lmakarov Drupal 8 + search_api_solr. No hard requirements. Using Solr 7.5.
Solr server accessible but can't figure out how to configure a core that works.
(New to Docksal)
(And Docker)
@lmakarov I think my problem is figuring out where to create the Solr core.
It appears to be running under '/opt/solr/server/solr' but that doesn't appear to exist in either the regular shell or fin bash shell
Thought maybe .docksal/etc/solr mapped to '/opt/solr/server/solr' but that doesn't seem to work.
Downloaded the proper configs and put them into .docksal/etc/solr/conf/ but I think I'm still lacking a functional core.
Leonid Makarov
@lmakarov
Which search_api_solr module version are you using?
James Marks
@jamesmarks
8.x-3.3
I think the part I'm not getting is this bit:

First you have to create a Solr core for Drupal. Therefore you have to create
two directories (replace $SOLR and $CORE according to your needs):

mkdir $SOLR/server/solr/$CORE
mkdir $SOLR/server/solr/$CORE/conf

Afterwards, you have to tell SOLR about the new core by creating a
core.properties file:

echo "name=$CORE" > $SOLR/server/solr/$CORE/core.properties
But I don't know where '$SOLR' is.
James Marks
@jamesmarks
That should be the solr package and I'd think that would be .docksal/etc/solr
But putting the core relative to that location doesn't end up with the core being found.
Or... is the solr package at .docksal/addons/solr ?
Leonid Makarov
@lmakarov
Give me 10 minutes. I will try this myself on a Drupal 8 site
James Marks
@jamesmarks
Thank you. Sorry to bother you. Have been banging my head up against the wall for a day on this...
James Marks
@jamesmarks
FWIW, in https://docs.docksal.io/tools/apache-solr/#drupal-configuration, setting 'Solr path' to '/solr' doesn't work but setting it to '/' does.
Leonid Makarov
@lmakarov
ok, I was not able to to get it to work either. Will need to take another look later
Take a look at the docksal/solr image docs here
https://github.com/docksal/service-solr
James Marks
@jamesmarks
Ok. Thanks for taking a look at that. Maybe it's not just me. :)
Will do.
Leonid Makarov
@lmakarov
Something like this should work, but the image complains about the config set not being supported...
$ cat .docksal/docksal.yml
version: "2.1"

services:
  # Solr
  solr:
    extends:
      file: ${HOME}/.docksal/stacks/services.yml
      service: solr
    image: docksal/solr:7.5-2.0
    environment:
      # Set Solr config
      # See https://github.com/docksal/service-solr#config-sets
      - SOLR_DEFAULT_CONFIG_SET=search_api_solr_8.x-3.0
may give you some clues
James Marks
@jamesmarks
OK. I'll try that and see how far I get.
Thanks again and have a good weekend!
James Marks
@jamesmarks
I apologize for not being able to get this but I am still unable, under Docksal, to get Solr to find the core no matter where I put it.
The search_api_solr INSTALL.md includes the following:

First you have to create a Solr core for Drupal. Therefore you have to create
two directories (replace $SOLR and $CORE according to your needs):

mkdir $SOLR/server/solr/$CORE
mkdir $SOLR/server/solr/$CORE/conf

Afterwards, you have to tell SOLR about the new core by creating a
core.properties file:

echo "name=$CORE" > $SOLR/server/solr/$CORE/core.properties
Assuming the value for $CORE is 'my_core', what is the value for $SOLR?

The INSTALL.md file says "unpack the archive somewhere outside of your web server's document tree. The unpacked Solr directory is named $SOLR in these instructions"

If Docksal is responsible for installing the "unpacked Solr directory" (which is my current understanding) then I'd think it would be in .docksal/etc/solr but that doesn't appear to be the case.

I've tried these configurations with no success:

.docksal/etc/solr/my_core
.docksal/etc/solr/my_core/conf
.docksal/etc/solr/my_core/core.properties

.docksal/etc/solr/server/solr/my_core
.docksal/etc/solr/server/solr/my_core/conf
.docksal/etc/solr/server/solr/my_core/core.properties

Drupal 8, Solr 7.5, Search API Solr 8.x-3.3
James Marks
@jamesmarks
The site can reach the server, it just can't access the core. The log includes a variety of 404 responses so it doesn't appear to be an access issue.
Anyone have any experience with this?
James Marks
@jamesmarks
This does not appear to work for my instance -> https://docs.docksal.io/tools/apache-solr/#drupal-configuration
James Marks
@jamesmarks
Finally got this working.