Trouble installing 2.4.2

#1

Hey Folks,

Ran into an issue during installation and the file that is supposed to be in /home/admin (~/KIBANA_CREDS.README) is not being created.

Ran into the same problem on 2.2.0.

Completely new to ROCK and am looking to test it and its capabilities. I need a solution either most stable version and/or what am I doing wrong?

Thanks for your help.

#2

@john.pugh I think the issue may be that ROCK is looking for the home directory of the user with UID 1000, so if that isn’t you, that’s likely where the KIBANA_CREDS.README file is being written to.

Try running sudo find / -name KIBANA_CREDS.README and see if it has been dropped somewhere else.

#3

thanks Andy, However that did not yield any results. Any other ideas? I appreciate the help. Do you want me to post any logs?

#4

@john.pugh, did you install on a single node or multi-node? That file is dropped on the same host that is serving Kibana. When you finished running the deploy, it should have created a log in /var/log/rocknsm/deploy-${timestamp}.log. Let’s check that to see if the build successfully completed.

#5

2019-05-10 16:31:29,598 p=9247 u=root | PLAY [all] *********************************************************************************************************************
2019-05-10 16:31:29,618 p=9247 u=root | TASK [Gathering Facts] *********************************************************************************************************
2019-05-10 16:31:30,385 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:30,408 p=9247 u=root | TASK [Include user-override vars] **********************************************************************************************
2019-05-10 16:31:30,433 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:30,455 p=9247 u=root | TASK [common : include_tasks] **************************************************************************************************
2019-05-10 16:31:30,541 p=9247 u=root | included: /usr/share/rock/roles/common/tasks/deploy.yml for simplerockbuild.simplerock.lan
2019-05-10 16:31:30,586 p=9247 u=root | TASK [common : Create RockNSM data directory] **********************************************************************************
2019-05-10 16:31:30,860 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:30,883 p=9247 u=root | TASK [common : Create RockSNM conf directory] **********************************************************************************
2019-05-10 16:31:31,040 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,063 p=9247 u=root | TASK [common : Create RockNSM directory] ***************************************************************************************
2019-05-10 16:31:31,203 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,226 p=9247 u=root | TASK [common : Create RockNSM cache dir] ***************************************************************************************
2019-05-10 16:31:31,371 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,394 p=9247 u=root | TASK [common : Download RockNSM elastic configs] *******************************************************************************
2019-05-10 16:31:31,410 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,433 p=9247 u=root | TASK [common : Extract RockNSM elastic configs] ********************************************************************************
2019-05-10 16:31:31,497 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,520 p=9247 u=root | TASK [common : Disable IPv6 for all interfaces] ********************************************************************************
2019-05-10 16:31:31,769 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,793 p=9247 u=root | TASK [common : Disable IPv6 for default interfaces] ****************************************************************************
2019-05-10 16:31:31,946 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:31,969 p=9247 u=root | TASK [common : Disable IPv6 in sshd] *******************************************************************************************
2019-05-10 16:31:32,224 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:32,249 p=9247 u=root | TASK [common : Add the inventory into /etc/hosts] ******************************************************************************
2019-05-10 16:31:32,441 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=simplerockbuild.simplerock.lan)
2019-05-10 16:31:32,469 p=9247 u=root | TASK [common : Set system hostname] ********************************************************************************************
2019-05-10 16:31:33,080 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:33,103 p=9247 u=root | TASK [common : Re-run Setup to populate changes] *******************************************************************************
2019-05-10 16:31:33,558 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:33,581 p=9247 u=root | TASK [common : Setup EPEL repository] ******************************************************************************************
2019-05-10 16:31:33,601 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:33,628 p=9247 u=root | TASK [common : Manually trust CentOS GPG key] **********************************************************************************
2019-05-10 16:31:33,646 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:33,673 p=9247 u=root | TASK [common : Setup elastic repository] ***************************************************************************************
2019-05-10 16:31:33,691 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:33,718 p=9247 u=root | TASK [common : Configure RockNSM online repos] *********************************************************************************
2019-05-10 16:31:34,013 p=9247 u=root | changed: [simplerockbuild.simplerock.lan] => (item={u’gpgcheck’: True, u’name’: u’rocknsm_2_4’, u’baseurl’: u’https://packagecloud.io/rocknsm/2_4/el/7/$basearch’})
2019-05-10 16:31:34,162 p=9247 u=root | changed: [simplerockbuild.simplerock.lan] => (item={u’gpgcheck’: False, u’name’: u’rocknsm_2_4-source’, u’baseurl’: u’https://packagecloud.io/rocknsm/2_4/el/7/SRPMS’})
2019-05-10 16:31:34,188 p=9247 u=root | TASK [common : Configure RockNSM online testing repos] *************************************************************************
2019-05-10 16:31:34,331 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:34,355 p=9247 u=root | TASK [common : Setup local offline repo] ***************************************************************************************
2019-05-10 16:31:34,371 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:34,394 p=9247 u=root | TASK [common : Install RockNSM GPG keys] ***************************************************************************************
2019-05-10 16:31:34,746 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=RPM-GPG-KEY-RockNSM-2)
2019-05-10 16:31:34,969 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=RPM-GPG-KEY-RockNSM-Testing)
2019-05-10 16:31:35,186 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=RPM-GPG-KEY-RockNSM-pkgcloud-2_4)
2019-05-10 16:31:35,210 p=9247 u=root | TASK [common : Trust RockNSM GPG keys for RPMs] ********************************************************************************
2019-05-10 16:31:35,235 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm_2_4’})
2019-05-10 16:31:35,241 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-pkgcloud-2_4’, u’repoid’: u’rocknsm_2_4’})
2019-05-10 16:31:35,249 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-Testing’, u’repoid’: u’rocknsm-testing’})
2019-05-10 16:31:35,257 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={u’test’: False, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm-local’})
2019-05-10 16:31:35,280 p=9247 u=root | TASK [common : Trust RockNSM GPG keys in yum] **********************************************************************************
2019-05-10 16:31:35,309 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={‘skipped’: True, ‘_ansible_no_log’: False, ‘skip_reason’: u’Conditional result was False’, ‘_ansible_item_result’: True, ‘item’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm_2_4’}, ‘changed’: False, ‘_ansible_ignore_errors’: None, ‘_ansible_item_label’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm_2_4’}})
2019-05-10 16:31:35,315 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={‘skipped’: True, ‘_ansible_no_log’: False, ‘skip_reason’: u’Conditional result was False’, ‘_ansible_item_result’: True, ‘item’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-pkgcloud-2_4’, u’repoid’: u’rocknsm_2_4’}, ‘changed’: False, ‘_ansible_ignore_errors’: None, ‘_ansible_item_label’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-pkgcloud-2_4’, u’repoid’: u’rocknsm_2_4’}})
2019-05-10 16:31:35,322 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={‘skipped’: True, ‘_ansible_no_log’: False, ‘skip_reason’: u’Conditional result was False’, ‘_ansible_item_result’: True, ‘item’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-Testing’, u’repoid’: u’rocknsm-testing’}, ‘changed’: False, ‘_ansible_ignore_errors’: None, ‘_ansible_item_label’: {u’test’: u’false’, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-Testing’, u’repoid’: u’rocknsm-testing’}})
2019-05-10 16:31:35,330 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item={‘skipped’: True, ‘_ansible_no_log’: False, ‘skip_reason’: u’Conditional result was False’, ‘_ansible_item_result’: True, ‘item’: {u’test’: False, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm-local’}, ‘changed’: False, ‘_ansible_ignore_errors’: None, ‘_ansible_item_label’: {u’test’: False, u’path’: u’/etc/pki/rpm-gpg/RPM-GPG-KEY-RockNSM-2’, u’repoid’: u’rocknsm-local’}})
2019-05-10 16:31:35,354 p=9247 u=root | TASK [common : Configure default CentOS online repos] **************************************************************************
2019-05-10 16:31:35,609 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item={u’repo’: u’base’, u’path’: u’/etc/yum.repos.d/CentOS-Base.repo’})
2019-05-10 16:31:35,749 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item={u’repo’: u’updates’, u’path’: u’/etc/yum.repos.d/CentOS-Base.repo’})
2019-05-10 16:31:35,893 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item={u’repo’: u’extras’, u’path’: u’/etc/yum.repos.d/CentOS-Base.repo’})
2019-05-10 16:31:35,917 p=9247 u=root | TASK [common : Install pyopenssl package] **************************************************************************************
2019-05-10 16:31:36,435 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:36,463 p=9247 u=root | TASK [common : Install core packages] ******************************************************************************************
2019-05-10 16:31:42,390 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:42,419 p=9247 u=root | TASK [common : Enable and start firewalld] *************************************************************************************
2019-05-10 16:31:43,021 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:43,050 p=9247 u=root | TASK [common : Create internal firewall zone] **********************************************************************************
2019-05-10 16:31:43,883 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:43,910 p=9247 u=root | TASK [common : Reload firewalld to load zone] **********************************************************************************
2019-05-10 16:31:43,931 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:43,959 p=9247 u=root | TASK [common : Create work firewall zone] **************************************************************************************
2019-05-10 16:31:44,570 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:44,600 p=9247 u=root | TASK [common : Reload firewalld to load zone] **********************************************************************************
2019-05-10 16:31:44,621 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:44,649 p=9247 u=root | TASK [common : Configure firewall ports] ***************************************************************************************
2019-05-10 16:31:45,158 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=[u’0.0.0.0/0’, ‘22/tcp’])
2019-05-10 16:31:45,186 p=9247 u=root | TASK [common : Ensure cache directory exists] **********************************************************************************
2019-05-10 16:31:45,364 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:45,392 p=9247 u=root | TASK [common : Install RockNSM control script] *********************************************************************************
2019-05-10 16:31:45,687 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:45,713 p=9247 u=root | TASK [common : Create RockNSM control script symlink] **************************************************************************
2019-05-10 16:31:45,882 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:45,909 p=9247 u=root | TASK [common : Set RockNSM Version] ********************************************************************************************
2019-05-10 16:31:46,194 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:46,221 p=9247 u=root | TASK [common : Install RockNSM /etc/issue] *************************************************************************************
2019-05-10 16:31:46,464 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:46,487 p=9247 u=root | TASK [common : Add NetworkManager RockNSM hook] ********************************************************************************
2019-05-10 16:31:46,750 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:46,775 p=9247 u=root | TASK [common : Install chrony] *************************************************************************************************
2019-05-10 16:31:47,102 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,126 p=9247 u=root | TASK [common : Enable and start chrony] ****************************************************************************************
2019-05-10 16:31:47,359 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,384 p=9247 u=root | TASK [common : Set system timezone] ********************************************************************************************
2019-05-10 16:31:47,402 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,425 p=9247 u=root | TASK [common : Check if RTC set to UTC] ****************************************************************************************
2019-05-10 16:31:47,747 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,775 p=9247 u=root | TASK [common : Set system hardware clock to UTC] *******************************************************************************
2019-05-10 16:31:47,794 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,822 p=9247 u=root | TASK [common : Check if NTP is enabled] ****************************************************************************************
2019-05-10 16:31:47,967 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:47,994 p=9247 u=root | TASK [common : Set NTP enabled] ************************************************************************************************
2019-05-10 16:31:48,013 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:48,040 p=9247 u=root | TASK [common : Remove require tty] *********************************************************************************************
2019-05-10 16:31:48,180 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:48,191 p=9247 u=root | PLAY [zookeeper] ***************************************************************************************************************
2019-05-10 16:31:48,216 p=9247 u=root | TASK [Gathering Facts] *********************************************************************************************************
2019-05-10 16:31:48,648 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:48,671 p=9247 u=root | TASK [Include user-override vars] **********************************************************************************************
2019-05-10 16:31:48,698 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:48,720 p=9247 u=root | TASK [zookeeper : Install zookeeper packages] **********************************************************************************
2019-05-10 16:31:49,028 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:49,051 p=9247 u=root | TASK [zookeeper : Enable and Start zookeeper] **********************************************************************************
2019-05-10 16:31:49,309 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:49,319 p=9247 u=root | PLAY [kafka] *******************************************************************************************************************
2019-05-10 16:31:49,343 p=9247 u=root | TASK [Gathering Facts] *********************************************************************************************************
2019-05-10 16:31:49,788 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:49,811 p=9247 u=root | TASK [Include user-override vars] **********************************************************************************************
2019-05-10 16:31:49,846 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:49,871 p=9247 u=root | TASK [kafka : Install packages] ************************************************************************************************
2019-05-10 16:31:50,210 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:50,233 p=9247 u=root | TASK [kafka : Create kafka data directory] *************************************************************************************
2019-05-10 16:31:50,393 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:50,418 p=9247 u=root | TASK [kafka : Set kafka retention] *********************************************************************************************
2019-05-10 16:31:50,575 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:50,600 p=9247 u=root | TASK [kafka : Set kafka data directory] ****************************************************************************************
2019-05-10 16:31:50,754 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:50,779 p=9247 u=root | TASK [kafka : Enable and start kafka] ******************************************************************************************
2019-05-10 16:31:51,023 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:51,049 p=9247 u=root | TASK [kafka : Configure firewall ports] ****************************************************************************************
2019-05-10 16:31:51,072 p=9247 u=root | skipping: [simplerockbuild.simplerock.lan] => (item=9092)
2019-05-10 16:31:51,082 p=9247 u=root | PLAY [stenographer] ************************************************************************************************************
2019-05-10 16:31:51,109 p=9247 u=root | TASK [Gathering Facts] *********************************************************************************************************
2019-05-10 16:31:51,559 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:51,584 p=9247 u=root | TASK [Include user-override vars] **********************************************************************************************
2019-05-10 16:31:51,620 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:51,646 p=9247 u=root | TASK [stenographer : include_tasks] ********************************************************************************************
2019-05-10 16:31:51,713 p=9247 u=root | included: /usr/share/rock/roles/stenographer/tasks/deploy.yml for simplerockbuild.simplerock.lan
2019-05-10 16:31:51,742 p=9247 u=root | TASK [stenographer : Install packages] *****************************************************************************************
2019-05-10 16:31:52,087 p=9247 u=root | ok: [simplerockbuild.simplerock.lan]
2019-05-10 16:31:52,114 p=9247 u=root | TASK [stenographer : Set stenographer config] **********************************************************************************
2019-05-10 16:31:52,165 p=9247 u=root | TASK [stenographer : Create stenographer directories] **************************************************************************
2019-05-10 16:31:52,214 p=9247 u=root | TASK [stenographer : Install stenographer service files] ***********************************************************************
2019-05-10 16:31:52,484 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=stenographer.service)
2019-05-10 16:31:52,724 p=9247 u=root | ok: [simplerockbuild.simplerock.lan] => (item=stenographer@.service)
2019-05-10 16:31:52,750 p=9247 u=root | TASK [stenographer : Generate stenographer keys] *******************************************************************************
2019-05-10 16:31:52,782 p=9247 u=root | fatal: [simplerockbuild.simplerock.lan]: FAILED! => {“msg”: “The field ‘environment’ has an invalid value, which includes an undefined variable. The error was: list object has no element 0\n\nThe error appears to have been in ‘/usr/share/rock/roles/stenographer/tasks/config.yml’: line 35, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate stenographer keys\n ^ here\n”}
2019-05-10 16:31:52,785 p=9247 u=root | NO MORE HOSTS LEFT *************************************************************************************************************
2019-05-10 16:31:52,788 p=9247 u=root | to retry, use: --limit @/usr/share/rock/playbooks/deploy-rock.retry

2019-05-10 16:31:52,791 p=9247 u=root | PLAY RECAP *********************************************************************************************************************
2019-05-10 16:31:52,793 p=9247 u=root | simplerockbuild.simplerock.lan : ok=50 changed=1 unreachable=0 failed=1

#6

Ok guys I downloaded the newest ISO .1905 and have had success installing it. This time I chose the custom install. My question now is documentation. Again I am new and not the strongest Linux guy either but the install guides weren’t as clear as I would have liked them. Though from my background I’m used to having to write guides at the lowest level so I may be expecting too much and will have to create my own once I actually understand the product more, which I will not mind sharing once I get there. However in the mean time, are there guides available to help me understand the what and why’s that I may want to implement within my network? Things to target etc? Or even another blog talking about it? Thanks

#7

@dcode @brad I’m having similar issues failing at the Stenographer config.
Version 2.4.2

Log:

#8

Hey I had the same thing in the first attempt with 2.2. Using the custom install seems to fix this issue? I believe that is where my success came from anyway :slight_smile:

#9

what do you think is different in the custom install<option 2>?
I selected “test this media & custom install of ROCK” <option 3>

#10

Actually, it appears this is as far as I can go testing this installation with only 1 NIC. Looks like the referenced stenographer config.yml is looking for the monitor interface.

#11

That’s how I did it also. Hmm unfortunately I am so new at this I am limited in being able to help much. However I did find that during install if I didn’t set up the interfaces, then the hard drive, then user, I would run into errors. Hope this is helpful??

Even though I got it running LOL using the tools aren’t no easy. But I’m trying…

1 Like
#12

Yes it needs 2 NICs.

1 Like