New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLR routing seems to be randomly connecting to other projects #1895
Comments
In your Drupal install, what hostname are you using to access the solr server? |
@rfay http://solr:8983/solr/#/dev in Drupal, but I've also found that I get inconsistent results when I access via the admin console using the http://project.ddev.site:8983 URL - though I have only seen that changing when I stop/start things, so perhaps that behaves consistently when it's up and running. |
Ah - I can confirm that switching to using project.ddev.site in Drupal does make it consistent! I think the issue I had with the admin UI was when I had actually stopped the project I was accessing, it looks like it may have fallen through to the other one. However - that looks like a workable solution. |
I think using project.ddev.site would work, and also using |
@rfay thanks for the super quick response and guiding me to a solution! Not sure I know docker enough to try and solve the issue with using |
I'm thinking it's a bug in the docker compose suggestion... Will try. |
Describe the bug
It appears that f you have two projects running at the same time, the SOLR connection (using the instructions and example
docker-compose.solr.yml
at https://ddev.readthedocs.io/en/latest/users/extend/additional-services/#apache-solr) will randomly switch between the two!To Reproduce
In my case, we have two Drupal 8 projects with Search API connecting to SOLR:
drush sapi-i
for example)./admin/config/search/search-api/server/SERVER_ID
)Expected behavior
Each project only ever accesses it's own SOLR container.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):
docker-compose.solr.yml
as per https://github.com/drud/ddev/blob/master/pkg/servicetest/testdata/services/docker-compose.solr.yamlThe text was updated successfully, but these errors were encountered: