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 service not installing with solr version < 5 #53

Closed
Rade333 opened this issue Jan 11, 2017 · 6 comments
Closed

Solr service not installing with solr version < 5 #53

Rade333 opened this issue Jan 11, 2017 · 6 comments

Comments

@Rade333
Copy link
Contributor

Rade333 commented Jan 11, 2017

Hey,

My playbook:

---
- hosts: all
  become: yes
  roles:
    - { role: geerlingguy.java }
    - { role: geerlingguy.solr, solr_version: "4.10.4" }

Fails on this task:

TASK [geerlingguy.solr : Ensure solr is started and enabled on boot.] **********
fatal: [192.168.104.11]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service \"'solr'\": "}

See full output here: http://pastebin.com/w3CSYCSa

I'm using your geerlingguy/ubuntu1604 vagrant box, ansible 2.2.0.0 and release 3.4.1 of this role.

I was able to work around the issue if I run this command in the vagrant machine:

sudo update-rc.d solr defaults

Any thoughts?

@kporras07
Copy link

kporras07 commented Jan 17, 2017

+1 here. Is this something similar to arknoll/ansible-role-selenium#20 ?

I also noticed it works when you run vagrant provision again

@Rade333
Copy link
Contributor Author

Rade333 commented Jan 19, 2017

Indeed it seems like the same problem. I created a similar fix to this one geerlingguy/ansible-role-mailhog@44b88cc and a PR #55

geerlingguy added a commit that referenced this issue Jan 19, 2017
Fixes #53: systemd service usage failing with Ansible 2.2 and Solr < 5.
@geerlingguy
Copy link
Owner

Fix is contained in bugfix release 3.4.2.

Rade333 pushed a commit to Rade333/ansible-role-solr that referenced this issue Jan 20, 2017
Rade333 pushed a commit to Rade333/ansible-role-solr that referenced this issue Jan 20, 2017
@Rade333
Copy link
Contributor Author

Rade333 commented Jan 20, 2017

There was still an issue with the service, it wasn't starting and restarting properly and didn't read the cores properly. With the new changes in #56 it now seems to work again!

@geerlingguy
Copy link
Owner

@Rade333 - Can you open a new issue for any new errors you're encountering? I need to see what's causing issues for you after the changes in the latest version before I can make sure the further changes (which seem to affect Solr 5+) are necessary and correct.

Rade333 pushed a commit to Rade333/ansible-role-solr that referenced this issue Jan 24, 2017
…ep as it is not used in systemd"."

This reverts commit a9254d6.
@Rade333
Copy link
Contributor Author

Rade333 commented Jan 24, 2017

Sure, created issue #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants