Skip to content

Instantly share code, notes, and snippets.

@SmellyFish
Created August 3, 2018 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SmellyFish/0afd0fae778d0b57a5052400d9ec6461 to your computer and use it in GitHub Desktop.
Save SmellyFish/0afd0fae778d0b57a5052400d9ec6461 to your computer and use it in GitHub Desktop.
Alert logic boot log
�%Gcat: /proc/self/attr/current: Invalid argument
Welcome to CentOS
Starting udev: %G[ OK ]
Setting hostname ip-10-155-48-108.ec2.internal: [ OK ]
Setting up Logical Volume Management: 4 logical volume(s) in volume group "VolGroup" now active
[ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_root: clean, 95971/1303040 files, 676683/5242880 blocks
[/sbin/fsck.ext4 (1) -- /var/alertlogic/snort/log] fsck.ext4 -a /dev/mapper/VolGroup-snort_log
/dev/mapper/VolGroup-snort_log has gone 193 days without being checked, check forced.
/dev/mapper/VolGroup-snort_log: 11/589824 files (0.0% non-contiguous), 74975/2359296 blocks
[/sbin/fsck.ext4 (1) -- /var/log] fsck.ext4 -a /dev/mapper/VolGroup-var_log
/dev/mapper/VolGroup-var_log has gone 193 days without being checked, check forced.
/dev/mapper/VolGroup-var_log: 39/584064 files (7.7% non-contiguous), 74888/2333696 blocks
[/sbin/fsck.ext4 (1) -- /boot] fsck.ext4 -a /dev/nvme0n1p1
/dev/nvme0n1p1: clean, 51/128016 files, 96677/512000 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
%Gcat: /proc/self/attr/current: Invalid argument
Welcome to CentOS
Starting udev: %G[ OK ]
Setting hostname ip-10-155-48-108.ec2.internal: [ OK ]
Setting up Logical Volume Management: 4 logical volume(s) in volume group "VolGroup" now active
[ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_root: clean, 95971/1303040 files, 676683/5242880 blocks
[/sbin/fsck.ext4 (1) -- /var/alertlogic/snort/log] fsck.ext4 -a /dev/mapper/VolGroup-snort_log
/dev/mapper/VolGroup-snort_log has gone 193 days without being checked, check forced.
/dev/mapper/VolGroup-snort_log: 11/589824 files (0.0% non-contiguous), 74975/2359296 blocks
[/sbin/fsck.ext4 (1) -- /var/log] fsck.ext4 -a /dev/mapper/VolGroup-var_log
/dev/mapper/VolGroup-var_log has gone 193 days without being checked, check forced.
/dev/mapper/VolGroup-var_log: 39/584064 files (7.7% non-contiguous), 74888/2333696 blocks
[/sbin/fsck.ext4 (1) -- /boot] fsck.ext4 -a /dev/nvme0n1p1
/dev/nvme0n1p1: clean, 51/128016 files, 96677/512000 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
*** Warning -- SELinux targeted policy relabel is required.
*** Relabeling could take a very long time, depending on file
*** system size and speed of hard drives.
Unmounting file systems
Automatic reboot in progress.
Restarting system.
�%Gcat: /proc/self/attr/current: Invalid argument
Welcome to CentOS
Starting udev: %G[ OK ]
Setting hostname ip-10-155-48-108.ec2.internal: [ OK ]
Setting up Logical Volume Management: 4 logical volume(s) in volume group "VolGroup" now active
[ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -a /dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_root: clean, 95970/1303040 files, 676683/5242880 blocks
[/sbin/fsck.ext4 (1) -- /var/alertlogic/snort/log] fsck.ext4 -a /dev/mapper/VolGroup-snort_log
/dev/mapper/VolGroup-snort_log: clean, 11/589824 files, 74975/2359296 blocks
[/sbin/fsck.ext4 (1) -- /var/log] fsck.ext4 -a /dev/mapper/VolGroup-var_log
/dev/mapper/VolGroup-var_log: clean, 39/584064 files, 74888/2333696 blocks
[/sbin/fsck.ext4 (1) -- /boot] fsck.ext4 -a /dev/nvme0n1p1
/dev/nvme0n1p1: clean, 51/128016 files, 96677/512000 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
Enabling /etc/fstab swaps: [ OK ]
Entering non-interactive startup
Starting monitoring for VG VolGroup: 4 logical volume(s) in volume group "VolGroup" monitored
[ OK ]
ip6tables: Applying firewall rules: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
Starting auditd: [ OK ]
Starting portreserve: (not starting, no services registered)
Starting system logger: [ OK ]
Starting system message bus: [ OK ]
Mounting filesystems: [ OK ]
Retrigger failed udev events[ OK ]
Adding udev persistent rules[ OK ]
Starting sshd: [ OK ]
Running Alertlogic TM Firstboot
Current configured IP: 172.31.94.199
Loaded plugins: fastestmirror, presto
Cleaning repos: base extras updates
Cleaning up Everything
0 delta-package files removed, by presto
Starting Chef Client, version 13.1.31
[2018-08-04T04:22:36+09:00] WARN: Plugin Definition Error: </etc/chef/ohai/plugins/alertlogic.rb>: collect_data already defined on platform default
[2018-08-04T04:22:36+09:00] WARN: Plugin Definition Error: </etc/chef/ohai/plugins/alertlogic.rb>: collect_data already defined on platform default
resolving cookbooks for run list: ["al-core::default", "al-firstboot::default"]
Synchronizing Cookbooks:
- al-core (0.3.0)
- al-firstboot (0.1.0)
- ohai (5.1.0)
- chef_handler (2.0.0)
Installing Cookbook Gems:
Compiling Cookbooks...
copying /usr/share/zoneinfo/America/Chicago to /etc/localtime
undefined method `link' for AL::Helper:Class
Recipe: al-core::fb_config_yum
* template[/var/lib/yum/stunnel.crt] action create
- create new file /var/lib/yum/stunnel.crt
- update content in file /var/lib/yum/stunnel.crt from none to fae26f
- suppressed sensitive resource
- change mode from '' to '0644'
- change owner from '' to '0'
- change group from '' to '0'
 * template[/var/lib/yum/stunnel.key] action create
- create new file /var/lib/yum/stunnel.key
- update content in file /var/lib/yum/stunnel.key from none to ae322f
- suppressed sensitive resource
- change mode from '' to '0600'
- change owner from '' to '0'
- change group from '' to '0'
Recipe: al-core::fb_config_ohai_plugin
* directory[/etc/chef/ohai/plugins] action create
- change mode from '0755' to '0600'
 * template[/etc/chef/ohai/plugins/alertlogic.rb] action create
- update content in file /etc/chef/ohai/plugins/alertlogic.rb from b5eece to 824fde
- suppressed sensitive resource
 * ohai_plugin[alertlogic] action create[2018-08-03T14:23:03-05:00] WARN: The Ohai plugin_path does not include /etc/chef/ohai/plugins/. Ohai will reload on each chef-client run in order to add this directory to the path unless you modify your client.rb configuration to add this directory to plugin_path. The plugin_path can be set via the chef-client::config recipe. See 'Ohai Settings' at https://docs.chef.io/config_rb_client.html#ohai-settings for more details.
[2018-08-03T14:23:03-05:00] WARN: Adding /etc/chef/ohai/plugins/ to the Ohai plugin path for this chef-client run only
* directory[/etc/chef/ohai/plugins/] action create (skipped due to not_if)
* template[/etc/chef/ohai/plugins/alertlogic.rb] action create (up to date)
* ohai[alertlogic] action reload[2018-08-03T14:23:03-05:00] WARN: Plugin Definition Error: </etc/chef/ohai/plugins/alertlogic.rb>: collect_data already defined on platform default
[2018-08-03T14:23:03-05:00] WARN: Plugin Definition Error: </etc/chef/ohai/plugins/alertlogic.rb>: collect_data already defined on platform default
[2018-08-03T14:23:03-05:00] WARN: Plugin Definition Error: </etc/chef/ohai/plugins/alertlogic.rb>: collect_data already defined on platform default
- re-run ohai and merge results into node attributes

 Converging 77 resources
Rsc Info: al-core default START_RECIPE: al-core::default_users log [:write] al-core #rRecipe}
Rsc Info: al-core default END_RECIPE: al-core::default_users log [:write] al-core #rRecipe}
Rsc Info: al-core default START_RECIPE: al-core::default_settings log [:write] al-core #rRecipe}
Rsc Info: al-core default END_RECIPE: al-core::default_settings log [:write] al-core #rRecipe}
Rsc Info: al-firstboot default_settings START_RECIPE: al-firstboot::fb_repo_config log [:write] al-firstboot #rRecipe}
Rsc Info: al-firstboot default_settings END_RECIPE: al-firstboot::fb_repo_config log [:write] al-firstboot #rRecipe}
Rsc Info: al-firstboot default_settings START_RECIPE: al-firstboot::fb_repo_download log [:write] al-firstboot #rRecipe}
Rsc Info: al-firstboot default_settings END_RECIPE: al-firstboot::fb_repo_download log [:write] al-firstboot #rRecipe}
Rsc Info: al-firstboot default_settings START_RECIPE: al-firstboot::fb_repo_install log [:write] al-firstboot #rRecipe}
Rsc Info: al-firstboot default_settings END_RECIPE: al-firstboot::fb_repo_install log [:write] al-firstboot #rRecipe}
Recipe: al-core::default
* log[START_RECIPE: al-core::default_users] action writeSTART default_users
DEBUG: doing ui on START default_users START_RECIPE: al-core::default_users OK Completed
Recipe: al-core::fb_user_support_albert
* linux_user[albert] action create (skipped due to not_if)
* group[albert] action create (skipped due to not_if)
* directory[/var/alertlogic/] action create
- change owner from 'root' to 'albert'
- change group from 'root' to 'albert'
 * directory[/var/alertlogic/.ssh] action create
- change mode from '0755' to '0700'
 * template[/var/alertlogic/.ssh/authorized_keys2] action create
- change mode from '0644' to '0600'
 * directory[/var/alertlogic/etc] action create
- create new directory /var/alertlogic/etc
- change mode from '' to '0755'
- change owner from '' to 'albert'
- change group from '' to 'albert'
 * directory[/var/alertlogic/bin] action create (up to date)
Recipe: al-core::fb_user_support_root
* linux_user[root] action create
- alter user root
Recipe: al-core::fb_user_customer_access
* group[recovery] action create
- create group recovery
 * linux_user[setup] action create
- create user setup
 * linux_user[setupcli] action create
- create user setupcli
 * template[/var/alertlogic/bin/cli_mode.sh] action create
- create new file /var/alertlogic/bin/cli_mode.sh
- update content in file /var/alertlogic/bin/cli_mode.sh from none to 04f072
- suppressed sensitive resource
- change mode from '' to '0755'
- change owner from '' to 'setupcli'
- change group from '' to 'recovery'
 * template[/var/alertlogic/bin/sensor_setup.sh] action create
- create new file /var/alertlogic/bin/sensor_setup.sh
- update content in file /var/alertlogic/bin/sensor_setup.sh from none to 3b5fcb
- suppressed sensitive resource
- change mode from '' to '0755'
- change owner from '' to 'setup'
- change group from '' to 'recovery'
 * link[/var/alertlogic/bin/wrap_cli_mode.sh] action create
- create symlink at /var/alertlogic/bin/wrap_cli_mode.sh to /var/alertlogic/bin/cli_mode.sh
 * link[/var/alertlogic/bin/wrap_sensor_setup.sh] action create
- create symlink at /var/alertlogic/bin/wrap_sensor_setup.sh to /var/alertlogic/bin/sensor_setup.sh
Recipe: al-core::default
* log[END_RECIPE: al-core::default_users] action write
DEBUG: doing ui on END default_users END_RECIPE: al-core::default_users OK Completed
* log[START_RECIPE: al-core::default_settings] action writeSTART default_settings
DEBUG: doing ui on START default_settings START_RECIPE: al-core::default_settings OK Completed
Recipe: al-core::fb_config_selinux
* file[/etc/selinux/config] action create
- update content in file /etc/selinux/config from cb2621 to b45235
- suppressed sensitive resource
 * execute[selinux] action run
- execute sensitive resource
Recipe: al-core::fb_support_files
* directory[/var/alertlogic/al-firstboot/chef_helpers] action create
- change mode from '0755' to '0600'
- change owner from 'root' to 'albert'
- change group from 'root' to 'albert'
 * template[/var/alertlogic/al-firstboot/chef_helpers/check_resolvers.sh] action create
- change mode from '0755' to '0750'
- change owner from 'root' to 'albert'
- change group from 'root' to 'albert'
 * template[/var/alertlogic/al-firstboot/chef_helpers/check_repo.sh] action create
- change mode from '0755' to '0750'
- change owner from 'root' to 'albert'
- change group from 'root' to 'albert'
Recipe: al-core::fb_config_sshd
* service[sshd] action enable (up to date)
* service[sshd] action start (up to date)
* template[/etc/ssh/sshd_config] action create
- update content in file /etc/ssh/sshd_config from 77f92b to fb7300
- suppressed sensitive resource
- change mode from '0644' to '0600'
Recipe: al-core::fb_config_sudoers
* template[/etc/sudoers] action create
- update content in file /etc/sudoers from 21cec6 to c42703
- suppressed sensitive resource
 * template[/etc/sudoers.d/10_alertlogic] action create
- create new file /etc/sudoers.d/10_alertlogic
- update content in file /etc/sudoers.d/10_alertlogic from none to 3341fa
- suppressed sensitive resource
- change mode from '' to '0440'
- change owner from '' to '0'
- change group from '' to '0'
Recipe: al-core::fb_config_ui
* bash[expose_php] action run
- execute "bash" "/tmp/chef-script20180803-1327-1hkmjxw"
 * directory[/var/alertlogic/provisioning] action create
- create new directory /var/alertlogic/provisioning
- change mode from '' to '0755'
- change owner from '' to 'root'
- change group from '' to 'root'
 * template[/var/alertlogic/provisioning/fix_hostname.sh] action create
- create new file /var/alertlogic/provisioning/fix_hostname.sh
- update content in file /var/alertlogic/provisioning/fix_hostname.sh from none to 2745ba
- suppressed sensitive resource
- change mode from '' to '0755'
- change owner from '' to '0'
- change group from '' to '0'
 * template[/etc/httpd/conf/httpd.conf] action create
- update content in file /etc/httpd/conf/httpd.conf from 9c974a to b3af90
- suppressed sensitive resource
 * service[httpd] action start
- start service service[httpd]
 * service[httpd] action nothing (skipped due to action :nothing)
Recipe: al-core::fb_config_timezone
* file[/etc/sysconfig/clock] action create
- update content in file /etc/sysconfig/clock from 6f1a9d to 590822
- suppressed sensitive resource
Recipe: al-core::fb_config_yum
* template[/var/lib/yum/stunnel.crt] action create (up to date)
* template[/var/lib/yum/stunnel.key] action create (up to date)
Recipe: al-core::fb_config_ohai_plugin
* directory[/etc/chef/ohai/plugins] action create (up to date)
* template[/etc/chef/ohai/plugins/alertlogic.rb] action create (up to date)
* ohai_plugin[alertlogic] action create
* directory[/etc/chef/ohai/plugins/] action create (skipped due to not_if)
* template[/etc/chef/ohai/plugins/alertlogic.rb] action create (up to date)
* ohai[alertlogic] action nothing (skipped due to action :nothing)
(up to date)
Recipe: al-core::default
* log[END_RECIPE: al-core::default_settings] action write
DEBUG: doing ui on END default_settings END_RECIPE: al-core::default_settings OK Completed
Recipe: al-firstboot::default_settings
* log[START_RECIPE: al-firstboot::fb_repo_config] action writeSTART fb_repo_config
DEBUG: doing ui on START fb_repo_config START_RECIPE: al-firstboot::fb_repo_config OK Completed
Recipe: al-firstboot::fb_repo_config
* yum_repository[base] action delete
* execute[yum clean all base] action run
- execute yum clean all --disablerepo=* --enablerepo=base
 * file[/etc/yum.repos.d/base.repo] action delete (up to date)
* ruby_block[yum-cache-reload-base] action nothing (skipped due to action :nothing)
 * yum_repository[extras] action delete
* execute[yum clean all extras] action run
- execute yum clean all --disablerepo=* --enablerepo=extras
 * file[/etc/yum.repos.d/extras.repo] action delete (up to date)
* ruby_block[yum-cache-reload-extras] action nothing (skipped due to action :nothing)
 * yum_repository[updates] action delete
* execute[yum clean all updates] action run
- execute yum clean all --disablerepo=* --enablerepo=updates
 * file[/etc/yum.repos.d/updates.repo] action delete (up to date)
* ruby_block[yum-cache-reload-updates] action nothing (skipped due to action :nothing)
 * yum_repository[CentOS-Base] action delete
* execute[yum clean all CentOS-Base] action run (skipped due to only_if)
* file[/etc/yum.repos.d/CentOS-Base.repo] action delete
- delete file /etc/yum.repos.d/CentOS-Base.repo
 * ruby_block[yum-cache-reload-CentOS-Base] action create
- execute the ruby block yum-cache-reload-CentOS-Base
 * ruby_block[yum-cache-reload-CentOS-Base] action nothing (skipped due to action :nothing)
 * yum_repository[CentOS-Debuginfo] action delete
* execute[yum clean all CentOS-Debuginfo] action run (skipped due to only_if)
* file[/etc/yum.repos.d/CentOS-Debuginfo.repo] action delete
- delete file /etc/yum.repos.d/CentOS-Debuginfo.repo
 * ruby_block[yum-cache-reload-CentOS-Debuginfo] action create
- execute the ruby block yum-cache-reload-CentOS-Debuginfo
 * ruby_block[yum-cache-reload-CentOS-Debuginfo] action nothing (skipped due to action :nothing)
 * yum_repository[CentOS-fasttrack] action delete
* execute[yum clean all CentOS-fasttrack] action run (skipped due to only_if)
* file[/etc/yum.repos.d/CentOS-fasttrack.repo] action delete
- delete file /etc/yum.repos.d/CentOS-fasttrack.repo
 * ruby_block[yum-cache-reload-CentOS-fasttrack] action create
- execute the ruby block yum-cache-reload-CentOS-fasttrack
 * ruby_block[yum-cache-reload-CentOS-fasttrack] action nothing (skipped due to action :nothing)
 * yum_repository[CentOS-Media] action delete
* execute[yum clean all CentOS-Media] action run (skipped due to only_if)
* file[/etc/yum.repos.d/CentOS-Media.repo] action delete
- delete file /etc/yum.repos.d/CentOS-Media.repo
 * ruby_block[yum-cache-reload-CentOS-Media] action create
- execute the ruby block yum-cache-reload-CentOS-Media
 * ruby_block[yum-cache-reload-CentOS-Media] action nothing (skipped due to action :nothing)
 * yum_repository[CentOS-Vault] action delete
* execute[yum clean all CentOS-Vault] action run (skipped due to only_if)
* file[/etc/yum.repos.d/CentOS-Vault.repo] action delete
- delete file /etc/yum.repos.d/CentOS-Vault.repo
 * ruby_block[yum-cache-reload-CentOS-Vault] action create
- execute the ruby block yum-cache-reload-CentOS-Vault
 * ruby_block[yum-cache-reload-CentOS-Vault] action nothing (skipped due to action :nothing)
 * yum_repository[epel] action delete
* execute[yum clean all epel] action run (skipped due to only_if)
* file[/etc/yum.repos.d/epel.repo] action delete (up to date)
* ruby_block[yum-cache-reload-epel] action nothing (skipped due to action :nothing)
(up to date)
* yum_repository[epel-testing] action delete
* execute[yum clean all epel-testing] action run (skipped due to only_if)
* file[/etc/yum.repos.d/epel-testing.repo] action delete (up to date)
* ruby_block[yum-cache-reload-epel-testing] action nothing (skipped due to action :nothing)
(up to date)
* log[Configured available ['setup]['repo_config'] ["ashburn", "newport", "denver", "denver_vpn"]] action write
 * log[attaching server:ashburn to repo:alertlogic] action write
 * log[attaching server:newport to repo:alertlogic] action write
 * log[attaching server:denver to repo:alertlogic] action write
 * yum_repository[alertlogic] action create
* template[/etc/yum.repos.d/alertlogic.repo] action create
- create new file /etc/yum.repos.d/alertlogic.repo
- update content in file /etc/yum.repos.d/alertlogic.repo from none to 81ecff
- suppressed sensitive resource
- change mode from '' to '0644'
 * execute[yum clean metadata alertlogic] action run
- execute yum clean metadata --disablerepo=* --enablerepo=alertlogic
 * execute[yum-makecache-alertlogic] action run
- execute yum -q -y makecache --disablerepo=* --enablerepo=alertlogic
 * ruby_block[yum-cache-reload-alertlogic] action create
- execute the ruby block yum-cache-reload-alertlogic
 * execute[yum clean metadata alertlogic] action nothing (skipped due to action :nothing)
* execute[yum-makecache-alertlogic] action nothing (skipped due to action :nothing)
* ruby_block[yum-cache-reload-alertlogic] action nothing (skipped due to action :nothing)
 * log[Configured available ['setup]['repo_config'] ["ashburn", "newport", "denver", "denver_vpn"]] action write
 * log[attaching server:ashburn to repo:al-centos-base] action write
 * log[attaching server:newport to repo:al-centos-base] action write
 * log[attaching server:denver to repo:al-centos-base] action write
 * yum_repository[al-centos-base] action create
* template[/etc/yum.repos.d/al-centos-base.repo] action create
- create new file /etc/yum.repos.d/al-centos-base.repo
- update content in file /etc/yum.repos.d/al-centos-base.repo from none to 10133e
- suppressed sensitive resource
- change mode from '' to '0644'
 * execute[yum clean metadata al-centos-base] action run
- execute yum clean metadata --disablerepo=* --enablerepo=al-centos-base
 * execute[yum-makecache-al-centos-base] action run
- execute yum -q -y makecache --disablerepo=* --enablerepo=al-centos-base
 * ruby_block[yum-cache-reload-al-centos-base] action create
- execute the ruby block yum-cache-reload-al-centos-base
 * execute[yum clean metadata al-centos-base] action nothing (skipped due to action :nothing)
* execute[yum-makecache-al-centos-base] action nothing (skipped due to action :nothing)
* ruby_block[yum-cache-reload-al-centos-base] action nothing (skipped due to action :nothing)
 * log[Configured available ['setup]['repo_config'] ["ashburn", "newport", "denver", "denver_vpn"]] action write
 * log[attaching server:ashburn to repo:al-centos-updates] action write
 * log[attaching server:newport to repo:al-centos-updates] action write
 * log[attaching server:denver to repo:al-centos-updates] action write
 * yum_repository[al-centos-updates] action create
* template[/etc/yum.repos.d/al-centos-updates.repo] action create
- create new file /etc/yum.repos.d/al-centos-updates.repo
- update content in file /etc/yum.repos.d/al-centos-updates.repo from none to 66ba00
- suppressed sensitive resource
- change mode from '' to '0644'
 * execute[yum clean metadata al-centos-updates] action run
- execute yum clean metadata --disablerepo=* --enablerepo=al-centos-updates
 * execute[yum-makecache-al-centos-updates] action run

================================================================================
Error executing action `run` on resource 'execute[yum-makecache-al-centos-updates]'
================================================================================
 Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
 ---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
 STDOUT:
 STDERR: https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
 Trying other mirror.
 https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
 Trying other mirror.
 Error: failure: repodata/other.sqlite.bz2 from al-centos-updates: [Errno 256] No more mirrors to try.
 ---- End output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
 Ran yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates returned 1
 Resource Declaration:
---------------------
# In /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31/lib/chef/provider/yum_repository.rb

 62: declare_resource(:execute, "yum-makecache-#{new_resource.repositoryid}") do
 63: command "yum -q -y makecache --disablerepo=* --enablerepo=#{new_resource.repositoryid}"
 64: action :nothing
 65: only_if { new_resource.enabled }
 66: end
 67:

 Compiled Resource:
------------------
# Declared in /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31/lib/chef/provider/yum_repository.rb:62:in `block in <class:YumRepository>'

 execute("yum-makecache-al-centos-updates") do
 action [:nothing]
 default_guard_interpreter :execute
 command "yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates"
 backup 5
 returns 0
 user nil
 declared_type :execute
 cookbook_name "al-firstboot"
 domain nil
 only_if { #code block }
 end

 System Info:
------------
chef_version=13.1.31
 platform=centos
 platform_version=6.9
 ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
 program_name=chef-solo worker: ppid=1322;start=04:22:35;
 executable=/opt/chef/embedded/bin/chef-solo
 
================================================================================
Error executing action `create` on resource 'yum_repository[al-centos-updates]'
================================================================================
 Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[yum-makecache-al-centos-updates] (/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31/lib/chef/provider/yum_repository.rb line 62) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
 ---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
 STDOUT:
 STDERR: https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
 Trying other mirror.
 https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
 Trying other mirror.
 Error: failure: repodata/other.sqlite.bz2 from al-centos-updates: [Errno 256] No more mirrors to try.
 ---- End output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
 Ran yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates returned 1
 Resource Declaration:
---------------------
suppressed sensitive resource output
 Compiled Resource:
------------------
suppressed sensitive resource output
 System Info:
------------
chef_version=13.1.31
 platform=centos
 platform_version=6.9
 ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
 program_name=chef-solo worker: ppid=1322;start=04:22:35;
 executable=/opt/chef/embedded/bin/chef-solo
Recipe: al-core::fb_config_sshd
* service[sshd] action restart
- restart service service[sshd]

Running handlers:
[2018-08-03T14:24:41-05:00] ERROR: Running exception handlers
[2018-08-03T14:24:41-05:00] ERROR: Creating JSON exception report
- Chef::Handler::JsonFile
[2018-08-03T14:24:41-05:00] ERROR: Creating JSON exception report
- Chef::Handler::JsonFile
Running handlers complete
[2018-08-03T14:24:41-05:00] ERROR: Exception handlers complete
Chef Client failed. 83 resources updated in 02 minutes 06 seconds
[2018-08-03T14:24:41-05:00] FATAL: Stacktrace dumped to /var/alertlogic/al-firstboot/cache/chef-stacktrace.out
[2018-08-03T14:24:41-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-08-03T14:24:41-05:00] ERROR: yum_repository[al-centos-updates] (al-firstboot::fb_repo_config line 79) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[yum-makecache-al-centos-updates] (/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31/lib/chef/provider/yum_repository.rb line 62) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
STDOUT:
STDERR: https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
https://alphonso:atlsjima@185.54.124.97/repository/centos/centos-updates/prod/repodata/other.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/other.sqlite.bz2 from al-centos-updates: [Errno 256] No more mirrors to try.
---- End output of yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates ----
Ran yum -q -y makecache --disablerepo=* --enablerepo=al-centos-updates returned 1
[2018-08-03T14:24:41-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Starting postfix: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment