Skip to content
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 fails to install: #229

Open
KatiRG opened this issue Aug 19, 2022 · 2 comments
Open

Solr fails to install: #229

KatiRG opened this issue Aug 19, 2022 · 2 comments
Assignees
Labels
bug Something isn't working upgrade2.9

Comments

@KatiRG
Copy link
Collaborator

KatiRG commented Aug 19, 2022

Script setup_solr.sh giving the following error in status_out.txt:

Solr requires java, please install or set JAVA_HOME properly
@KatiRG KatiRG self-assigned this Aug 19, 2022
@KatiRG KatiRG added bug Something isn't working upgrade2.9 labels Aug 19, 2022
@KatiRG
Copy link
Collaborator Author

KatiRG commented Aug 19, 2022

Reason: java is not installed:

$ java -version

Command 'java' not found, but can be installed with:

sudo apt install openjdk-11-jre-headless  # version 11.0.16+8-0ubuntu1~20.04, or
sudo apt install default-jre              # version 2:1.11-72
sudo apt install openjdk-13-jre-headless  # version 13.0.7+5-0ubuntu1~20.04
sudo apt install openjdk-16-jre-headless  # version 16.0.1+9-1~20.04
sudo apt install openjdk-17-jre-headless  # version 17.0.4+8-1~20.04
sudo apt install openjdk-8-jre-headless   # version 8u342-b07-0ubuntu1~20.04

Installing java via sudo apt install openjdk-11-jre-headless allows setup_solr.sh to complete successfully.

@KatiRG
Copy link
Collaborator Author

KatiRG commented Aug 19, 2022

Modifying setup_solr.sh to install openjdk-11-jre-headless instead of openjdk-11-jre=11.0.15+10-0ubuntu0.20.04.1 successfully installs Solr and java:

Created new core 'ckan'
ckan core created.

$ java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upgrade2.9
Projects
None yet
Development

No branches or pull requests

1 participant