Dextro
(Bert)
April 23, 2017, 8:49pm
1
Ansible is stuck at "Wait for elasticsearch to startup" and just times out.
Setup is Ubuntu 16.04.02
Playbook:
- name: Install and configure elasticsearch
hosts: localhost
remote_user: 'deploy'
become: True
roles:
- role: elastic.elasticsearch
With just a single variable:
es_instance_name: "node1"
I can't figure out what goes wrong.
warkolm
(Mark Walkom)
April 24, 2017, 1:30am
2
Have you looked at the ES logs?
Dextro
(Bert)
April 24, 2017, 7:01am
3
There are no logs. /var/log/elasticsearch is complete empty (no files yet).
Dextro
(Bert)
April 24, 2017, 7:18am
4
# systemctl enable elasticsearch
Failed to execute operation: No such file or directory
Something wrong with systemd.
runtman
(Anthony Cleaves)
May 11, 2017, 12:50pm
5
I believe it;'s the same problem as:
Found the issue here. The ansible role does not seem to enable the elasticsearch startp service in systemd. I added an ansible bloc to do this in the role definition.
Nothing is installed into system d, I am running into the same problem. I see no task that will take care of that either. It may be worth just adding to the playbook to do this?
Is there a workaround for this that someone could share to enable the service in systemd? I'm having the same issue and it is blocking me currently.
runtman
(Anthony Cleaves)
May 19, 2017, 9:58am
7
Add this to the task in /role/tasks/main.yml above "Wait for elasticsearch to startup"
- name: Debian - Ensure it's enabled on startup
lineinfile:
path: /etc/default/{{ es_instance_name }}_elasticsearch
regexp: '^START_DAEMON='
line: 'START_DAEMON=true'
notify: restart elasticsearch
1 Like
even with adding this block, still an issue.
has elastic guys tested this?
runtman
(Anthony Cleaves)
May 22, 2017, 7:01am
9
What error are you getting?
No this code wasn't tested by Elastic.
Fixed it. basically it didn't know which init script to execute. systemd or init.d
Hi
Could you post here the fix you made?
I have the same probl.
Tnx.
uschtwill
(Wilhelm Uschtrin)
June 13, 2017, 2:54pm
12
I agree, it would be neat to have this fixed.
system
(system)
Closed
July 11, 2017, 2:54pm
13
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.