Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Error when checking for Solr cores. #1960

Closed
jnettik opened this issue Aug 19, 2019 · 11 comments
Closed

Error when checking for Solr cores. #1960

jnettik opened this issue Aug 19, 2019 · 11 comments
Labels

Comments

@jnettik
Copy link

jnettik commented Aug 19, 2019

Issue Type

  • Bug Report / Support Request

Your Environment

Vagrant 2.2.5
VirtualBox 5.2.18r124319
ansible 2.8.4
  config file = None
  configured module search path = ['/Users/jnettik/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.8.4/libexec/lib/python3.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.7.4 (default, Jul  9 2019, 18:13:23) [Clang 10.0.1 (clang-1001.0.46.4)]

Your OS

  • macOS (version)

Full console output

Some of the output was cut off, but here's the part that relates to Solr: https://gist.github.com/jnettik/2e86c24fde6ee530b4724356351112e6

Summary

After updating to the latest version of the DrupalVM box (2.0.3), any new provision errors out at the same step:

TASK [geerlingguy.solr : Check current list of Solr cores.] ********************
fatal: [dvm-50]: FAILED! => {"changed": false, "content": "", "elapsed": 0, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://localhost:8983/solr/admin/cores"}
@attheshow
Copy link

I'm running into the same issue today when trying to update.

@attheshow
Copy link

I was able to get around this by switching it to install:
solr_version: "4.10.4"

Maybe it has to do with the Java 8+ note in the documentation here?:
http://docs.drupalvm.com/en/latest/extras/solr/

@n00b21337
Copy link

n00b21337 commented Oct 14, 2019

having very similar problem out of the box, get the

FAILED! => {"changed": false, "content": "", "elapsed": 0, "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://localhost:8983/solr/admin/cores"}

using
solr_version: "5.5.5"

java -version
openjdk version "11.0.4" 2019-07-16

@denisciglaric
Copy link

Same with me. Anybody has any idea how to fix this?

@joestewart
Copy link
Contributor

joestewart commented Nov 18, 2019

Does it help to destroy and add this java version to config.yml?

java_packages:
  - openjdk-8-jdk

@krinajoshi
Copy link

@joestewart - It spent 2 days trying different solutions to fix this issue. Adding java_packages worked for me. Thank you so much.

@chrissnyder2337
Copy link

@joestewart - Adding java_packages worked for me too!

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@geerlingguy
Copy link
Owner

This issue is not stale. Adding java_packages to the default config, along with updating the Solr version variable, should be done to make sure Solr is installable and usable out of the box with Drupal VM.

@stale
Copy link

stale bot commented Mar 10, 2020

This issue is no longer marked for closure.

@geerlingguy
Copy link
Owner

Waiting on the above build to complete; it specifies a Java 8 version on both Debian/Ubuntu and Red Hat/CentOS. Note that for Debian 10, I haven't tested it (it's hard to get Java 8 on Debian 10) but the number of users of Drupal VM on Debian 10 is small enough that I'll worry about that at some other time. Hopefully when Solr 10 or 11 is out and finally supports a newer Java version :D

kentr added a commit to kentr/drupal-vm that referenced this issue Apr 4, 2020
* tag '5.2.0': (80 commits)
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  Update php role to latest version.
  Add probot/stale configuration.
  ...
kentr added a commit to kentr/drupal-vm that referenced this issue Apr 12, 2020
* merge-upstream: (82 commits)
  Use `auto_legacy` for `ansible_python_interpreter`
  Use `/usr/bin/python` for `ansible_python_interpreter`
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  ...
kentr added a commit to kentr/drupal-vm that referenced this issue Apr 15, 2020
* merge-upstream: (82 commits)
  Use `auto_legacy` for `ansible_python_interpreter`
  Use `/usr/bin/python` for `ansible_python_interpreter`
  Issue geerlingguy#2025: Update Changelog for 5.2.0 release.
  Issue geerlingguy#2025: Mention new var to override for older linux versions.
  Issue geerlingguy#1675: Use custom drush bin.
  Issue geerlingguy#1675: Test postgresql configuration again.
  Fixed structure for python interpreter override.
  Finally get some python sanity.
  Pesky quoting.
  Pesky semicolons.
  More test follow-ups for python interpreter.
  Issue geerlingguy#2024 extra test fixes.
  Follow-up to geerlingguy#2024: Fix failing tests due to python interpreter.
  Fixes geerlingguy#2024: Fix chicken-and-egg ordering of postgresql database and user.
  Issue geerlingguy#2024: Update postgresql role to latest version.
  Update mysql role to latest version.
  Update php role to latest version.
  Fixes geerlingguy#1960: Use newer Solr version and make sure correct Java package is installed.
  Fix docs for composer-dependency use concerning drupal_enable_modules.
  Update php role to latest version.
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants