splunk / splunk-ansible

Ansible playbooks for configuring and managing Splunk Enterprise and Universal Forwarder deployments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection refused error when trying to run docker exec to start the project

asoliman opened this issue · comments

[root@ip-172-31-94-48 splunk-ansible]# docker exec -it splcontainer bash -c 'cd /tmp/splunk-ansible; sudo ansible-playbook --inventory localhost, --connection local site.yml --extra-vars "@default.yml"'
[DEPRECATION WARNING]: ALLOW_WORLD_READABLE_TMPFILES option, moved to a per plugin approach that is more flexible, use mostly the same config will work, but now controlled from the
plugin itself and not using the general constant. instead. This feature will be removed from ansible-base in version 2.14. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

PLAY [Run default Splunk provisioning] ************************************************************************************************************************************************
Friday 01 April 2022 01:57:49 +0000 (0:00:00.122) 0:00:00.122 **********

TASK [Gathering Facts] ****************************************************************************************************************************************************************
ok: [localhost]
Friday 01 April 2022 01:57:50 +0000 (0:00:01.746) 0:00:01.869 **********
Friday 01 April 2022 01:57:50 +0000 (0:00:00.038) 0:00:01.908 **********
Friday 01 April 2022 01:57:51 +0000 (0:00:00.043) 0:00:01.952 **********
Friday 01 April 2022 01:57:51 +0000 (0:00:00.038) 0:00:01.990 **********
included: /tmp/splunk-ansible/roles/splunk_common/tasks/check_for_required_restarts.yml for localhost
Friday 01 April 2022 01:57:51 +0000 (0:00:00.051) 0:00:02.041 **********
FAILED - RETRYING: Check for required restarts (5 retries left).
FAILED - RETRYING: Check for required restarts (4 retries left).
FAILED - RETRYING: Check for required restarts (3 retries left).
FAILED - RETRYING: Check for required restarts (2 retries left).
FAILED - RETRYING: Check for required restarts (1 retries left).

TASK [Check for required restarts] ****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
"attempts": 5,
"changed": false,
"elapsed": 0,
"redirected": false,
"status": -1,
"url": "https://127.0.0.1:8089/services/messages/restart_required?output_mode=json"
}

MSG:

Status code was -1 and not [200, 404]: Request failed: <urlopen error [Errno 111] Connection refused>

PLAY RECAP ****************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0

Friday 01 April 2022 01:58:25 +0000 (0:00:34.040) 0:00:36.082 **********

Check for required restarts --------------------------------------------------------------------------------------------------------------------------------------------------- 34.04s
Gathering Facts ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.74s
Check all instances for required restarts -------------------------------------------------------------------------------------------------------------------------------------- 0.05s
Provision role ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.04s
Execute pre-setup playbooks ---------------------------------------------------------------------------------------------------------------------------------------------------- 0.04s
Execute post-setup playbooks --------------------------------------------------------------------------------------------------------------------------------------------------- 0.04s
[root@ip-172-31-94-48 splunk-ansible]#

Hi,
I have the same issue. Have you fixed it and how please?