在AWS ec2实例中Docker上的Splunk安装失败

时间:2019-08-21 17:50:07

标签: docker amazon-ec2 ansible splunk

我正在尝试使用以下命令在AWS ec2实例中的Docker之上安装Splunk。

docker run -it -e DEBUG=true -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=<password> splunk/splunk:latest

我遇到以下错误。

TASK [splunk_common : Create .ui_login] ****************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "msg": "Source /var/tmp/ansible-tmp-1566408647.18-207818394602441/source not found"}

PLAY RECAP *********************************************************************
localhost                  : ok=18   changed=1    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0   

Wednesday 21 August 2019  17:30:47 +0000 (0:00:00.377)       0:00:04.605 ****** 
=============================================================================== 
splunk_common : Update Splunk directory owner --------------------------- 1.04s
Gathering Facts --------------------------------------------------------- 0.74s
splunk_common : Update /opt/splunk/etc ---------------------------------- 0.52s
splunk_common : Create .ui_login ---------------------------------------- 0.38s
splunk_common : Check for existing installation ------------------------- 0.30s
splunk_common : Find manifests ------------------------------------------ 0.29s
splunk_common : Check if /sbin/updateetc.sh exists ---------------------- 0.15s
splunk_common : Check for existing splunk secret ------------------------ 0.13s
Provision role ---------------------------------------------------------- 0.13s
splunk_common : Check if we are in a docker ----------------------------- 0.13s
splunk_common : include_tasks ------------------------------------------- 0.08s
splunk_common : include_tasks ------------------------------------------- 0.08s
splunk_common : include_tasks ------------------------------------------- 0.07s
splunk_common : include_tasks ------------------------------------------- 0.07s
splunk_common : Set current version fact -------------------------------- 0.04s
splunk_common : include_tasks ------------------------------------------- 0.04s
Determine captaincy ----------------------------------------------------- 0.04s
Execute pre-setup playbooks --------------------------------------------- 0.04s
splunk_common : Setting upgrade fact ------------------------------------ 0.04s
splunk_common : Set first run fact -------------------------------------- 0.04s
ERROR: Couldn't read "/opt/splunk/etc/splunk-launch.conf" -- maybe $SPLUNK_HOME or $SPLUNK_ETC is set wrong?

但是,相同的命令可以在我的笔记本电脑上的Ubuntu计算机上运行。我想念什么吗?

1 个答案:

答案 0 :(得分:1)

似乎与latest标记有关。已从splunk/splunk:latest降级为splunk/splunk:7.2.1,现在可以使用。