[neon-notifications] Build failed in Jenkins: mgmt_digital-ocean #2337

Neon CI noreply at kde.org
Sat May 13 21:42:40 BST 2023


See <https://build.neon.kde.org/job/mgmt_digital-ocean/2337/display/redirect>

Changes:


------------------------------------------
[...truncated 38.40 KB...]
Using swap_tuning (0.1.1)
Using swap (2.1.0)
Using system (0.11.3)
Using sysctl (0.8.1)
Using systemd (3.2.5)
Using user (0.7.0)
Using yum-repoforge (3.0.0)
Using yum-epel (4.5.0)
Vendoring apache2 (3.3.1) to /tmp/kitchen/berks-cookbooks/apache2
Vendoring apt (7.5.5) to /tmp/kitchen/berks-cookbooks/apt
Vendoring apt-cacher-ng (0.1.0) to /tmp/kitchen/berks-cookbooks/apt-cacher-ng
Vendoring aptly (3.1.3) to /tmp/kitchen/berks-cookbooks/aptly
Vendoring ark (6.0.15) to /tmp/kitchen/berks-cookbooks/ark
Vendoring bsw_gpg (0.2.4) to /tmp/kitchen/berks-cookbooks/bsw_gpg
Vendoring chef-unattended-upgrades (1.0.1) to /tmp/kitchen/berks-cookbooks/chef-unattended-upgrades
Vendoring chef_gem (0.1.0) to /tmp/kitchen/berks-cookbooks/chef_gem
Vendoring compat_resource (12.19.1) to /tmp/kitchen/berks-cookbooks/compat_resource
Vendoring cron (1.7.6) to /tmp/kitchen/berks-cookbooks/cron
Vendoring docker (10.3.0) to /tmp/kitchen/berks-cookbooks/docker
Vendoring dpkg_autostart (0.4.6) to /tmp/kitchen/berks-cookbooks/dpkg_autostart
Vendoring fail2ban (7.0.11) to /tmp/kitchen/berks-cookbooks/fail2ban
Vendoring filesystem (0.10.6) to /tmp/kitchen/berks-cookbooks/filesystem
Vendoring git (11.2.2) to /tmp/kitchen/berks-cookbooks/git
Vendoring hostsfile (3.0.1) to /tmp/kitchen/berks-cookbooks/hostsfile
Vendoring htop (2.0.0) to /tmp/kitchen/berks-cookbooks/htop
Vendoring iptables (8.0.0) to /tmp/kitchen/berks-cookbooks/iptables
Vendoring java (11.1.6) to /tmp/kitchen/berks-cookbooks/java
Vendoring jenkins (9.5.10) to /tmp/kitchen/berks-cookbooks/jenkins
Vendoring kernel_module (1.0.1) to /tmp/kitchen/berks-cookbooks/kernel_module
Vendoring line (4.5.7) to /tmp/kitchen/berks-cookbooks/line
Vendoring lvm (1.6.1) to /tmp/kitchen/berks-cookbooks/lvm
Vendoring ohai (5.3.1) to /tmp/kitchen/berks-cookbooks/ohai
Vendoring openssh (2.10.9) to /tmp/kitchen/berks-cookbooks/openssh
Vendoring resolvconf (0.4.0) to /tmp/kitchen/berks-cookbooks/resolvconf
Vendoring ruby_build (1.1.0) to /tmp/kitchen/berks-cookbooks/ruby_build
Vendoring rvm (0.9.4) to /tmp/kitchen/berks-cookbooks/rvm
Vendoring seven_zip (4.2.6) to /tmp/kitchen/berks-cookbooks/seven_zip
Vendoring swap (2.1.0) to /tmp/kitchen/berks-cookbooks/swap
Vendoring swap_tuning (0.1.1) to /tmp/kitchen/berks-cookbooks/swap_tuning
Vendoring sysctl (0.8.1) to /tmp/kitchen/berks-cookbooks/sysctl
Vendoring system (0.11.3) to /tmp/kitchen/berks-cookbooks/system
Vendoring systemd (3.2.5) to /tmp/kitchen/berks-cookbooks/systemd
Vendoring user (0.7.0) to /tmp/kitchen/berks-cookbooks/user
Vendoring yum-epel (4.5.0) to /tmp/kitchen/berks-cookbooks/yum-epel
Vendoring yum-repoforge (3.0.0) to /tmp/kitchen/berks-cookbooks/yum-repoforge
+ chef-client --local-mode --enable-reporting --chef-license accept-silent
Chef Infra Client, version 18.2.7
Patents: https://www.chef.io/patents
Infra Phase starting
Resolving cookbooks for run list: ["server-common", "system::timezone", "fail2ban", "htop", "openssh", "jenkins-java", "jenkins-slave", "pangea-ruby::install", "pangea-ruby::user_home_gems"]
Synchronizing cookbooks:
  - server-common (0.1.0)
  - jenkins-slave (0.1.0)
  - htop (2.0.0)
  - fail2ban (7.0.11)
  - openssh (2.10.9)
  - system (0.11.3)
  - jenkins-java (0.1.0)
  - pangea-ruby (0.1.0)
  - systemd (3.2.5)
  - apt (7.5.5)
  - hostsfile (3.0.1)
  - yum-repoforge (3.0.0)
  - cron (1.7.6)
  - yum-epel (4.5.0)
  - ruby_build (1.1.0)
  - iptables (8.0.0)
  - user (0.7.0)
  - docker (10.3.0)
  - kernel_module (1.0.1)
  - git (11.2.2)
  - ark (6.0.15)
  - seven_zip (4.2.6)
Installing cookbook gem dependencies:
Compiling cookbooks...
Loading Chef InSpec profile files:
Loading Chef InSpec input files:
Loading Chef InSpec waiver files:
[2023-05-13T20:42:18+00:00] WARN: Resource cron_d built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2023-05-13T20:42:19+00:00] WARN: Resource kernel_module built into Chef Infra Client is being overridden by the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
Converging 52 resources
Recipe: server-common::default
  * file[/etc/apt/apt.conf.d/99translations] action create (up to date)
  * service[systemd-journald-enable-peristence] action nothing (skipped due to action :nothing)
  * systemd_journald[enable-peristence-without-syslog] action create
    * directory[/etc/systemd/journald.conf.d] action create (up to date)
    * systemd_unit[journald-enable-peristence-without-syslog] action nothing (skipped due to action :nothing)
    * file[/etc/systemd/journald.conf.d/enable-peristence-without-syslog.conf] action create (up to date)
     (up to date)
  * apt_package[ubuntu-advantage-tools] action purge
    - purge  package ubuntu-advantage-tools
  * file[/etc/update-motd.d/10-help-text] action delete (up to date)
  * file[/etc/update-motd.d/50-landscape-sysinfo] action delete (up to date)
  * file[/etc/update-motd.d/50-motd-news] action delete (up to date)
  * file[/etc/update-motd.d/51-cloudguest] action delete (up to date)
  * execute[disable-man-db-auto-update] action run
    - execute echo "man-db man-db/auto-update boolean false" | debconf-set-selections
  * file[/var/lib/man-db/auto-update] action delete (up to date)
  * apt_package[crap purge] action purge (up to date)
  * apt_update[update_for_tzdata] action periodic (up to date)
  * apt_package[tzdata, gnupg2, update-notifier-common, systemd-container] action install
    - install version 3.192.30.17 of package update-notifier-common
Recipe: cron::default
  * apt_package[cron] action install
    - install version 3.0pl1-136ubuntu1 of package cron
  * service[cron] action enable (up to date)
  * service[cron] action start (up to date)
Recipe: system::timezone
  * system_timezone[Etc/UTC] action set
    * apt_package[cron] action install (up to date)
    * service[cron] action enable (up to date)
    * service[cron] action start (up to date)
    * log[tz-info (before set): +0000 UTC] action write (skipped due to only_if)
    * apt_package[tzdata] action install (up to date)
    * bash[dpkg-reconfigure tzdata] action nothing (skipped due to action :nothing)
    * file[/etc/timezone] action create (up to date)
    * execute[timedatectl set-timezone Etc/UTC] action run (skipped due to not_if)
    * link[/etc/localtime] action create (skipped due to not_if)
    * ruby_block[verify newly-linked timezone] action nothing (skipped due to action :nothing)
     (up to date)
Recipe: fail2ban::default
  * apt_package[fail2ban] action install (up to date)
  * ohai[reload package list] action nothing (skipped due to action :nothing)
  * template[/etc/fail2ban/fail2ban.conf] action create (up to date)
  * template[/etc/fail2ban/jail.local] action create (up to date)
  * file[/etc/fail2ban/jail.d/defaults-debian.conf] action delete (up to date)
  * file[/etc/fail2ban/jail.d/00-firewalld.conf] action delete (skipped due to only_if)
  * service[fail2ban] action enable (up to date)
Recipe: htop::default
  * apt_package[htop] action install (up to date)
Recipe: openssh::default
  * apt_package[openssh-client, openssh-server] action install (up to date)
  * template[/etc/ssh/ssh_config] action create (up to date)
  * template[sshd_ca_keys_file] action create (up to date)
  * template[sshd_revoked_keys_file] action create (up to date)
  * directory[/run/sshd] action create (up to date)
  * template[/etc/ssh/sshd_config] action create (up to date)
  * service[ssh] action enable (up to date)
  * service[ssh] action start (up to date)
Recipe: jenkins-java::default
  * apt_package[jenkins-java purge] action purge (up to date)
  * apt_package[jenkins-java install] action install (up to date)
Recipe: jenkins-slave::default
  * apt_repository[ubuntu-updates] action add (skipped due to only_if)
  * chef_gem[shadow] action install
    
    ================================================================================
    Error executing action `install` on resource 'chef_gem[shadow]'
    ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org ----
    STDOUT: Successfully installed gem_plugin-0.2.3
    Building native extensions. This could take a while...
    STDERR: WARNING:  You don't have /root/.chef/gem/ruby/3.1.0/bin in your PATH,
    	  gem executables will not run.
    ERROR:  Error installing shadow:
    	ERROR: Failed to build gem native extension.
    
        current directory: /root/.chef/gem/ruby/3.1.0/gems/fastthread-1.0.7/ext/fastthread
    /opt/chef-workstation/embedded/bin/ruby -I /opt/chef-workstation/embedded/lib/ruby/3.1.0 -r ./siteconf20230513-5033-qqgcwh.rb extconf.rb
    extconf.rb:13:in `block in <main>': uninitialized constant Config (NameError)
    
        Config::CONFIG.each do |key, value|
        ^^^^^^
    Did you mean?  RbConfig
    	from extconf.rb:12:in `open'
    	from extconf.rb:12:in `<main>'
    
    extconf failed, exit code 1
    
    Gem files will remain installed in /root/.chef/gem/ruby/3.1.0/gems/fastthread-1.0.7 for inspection.
    Results logged to /root/.chef/gem/ruby/3.1.0/extensions/x86_64-linux/3.1.0/fastthread-1.0.7/gem_make.out
    ---- End output of /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org ----
    Ran /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org returned 1
    
    Resource Declaration:
    ---------------------
    # In /tmp/kitchen/.chef/local-mode-cache/cache/cookbooks/jenkins-slave/recipes/default.rb
    
     21: chef_gem 'shadow'
     22: 
    
    Compiled Resource:
    ------------------
    # Declared in /tmp/kitchen/.chef/local-mode-cache/cache/cookbooks/jenkins-slave/recipes/default.rb:21:in `from_file'
    
    chef_gem("shadow") do
      package_name "shadow"
      action [:install]
      default_guard_interpreter :default
      declared_type :chef_gem
      cookbook_name "jenkins-slave"
      recipe_name "default"
      gem_binary "/opt/chef-workstation/embedded/bin/gem"
    end
    
    System Info:
    ------------
    chef_version=18.2.7
    platform=ubuntu
    platform_version=20.04
    ruby=ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
    program_name=/usr/bin/chef-client
    executable=/opt/chef-workstation/bin/chef-client
    

Running handlers:
[2023-05-13T20:42:40+00:00] ERROR: Running exception handlers
Running handlers complete
[2023-05-13T20:42:40+00:00] ERROR: Exception handlers complete
Infra Phase failed. 4 resources updated in 28 seconds
[2023-05-13T20:42:40+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/.chef/local-mode-cache/cache/chef-stacktrace.out
[2023-05-13T20:42:40+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-05-13T20:42:40+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-05-13T20:42:40+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-05-13T20:42:40+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: chef_gem[shadow] (jenkins-slave::default line 21) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org ----
STDOUT: Successfully installed gem_plugin-0.2.3
Building native extensions. This could take a while...
STDERR: WARNING:  You don't have /root/.chef/gem/ruby/3.1.0/bin in your PATH,
	  gem executables will not run.
ERROR:  Error installing shadow:
	ERROR: Failed to build gem native extension.

    current directory: /root/.chef/gem/ruby/3.1.0/gems/fastthread-1.0.7/ext/fastthread
/opt/chef-workstation/embedded/bin/ruby -I /opt/chef-workstation/embedded/lib/ruby/3.1.0 -r ./siteconf20230513-5033-qqgcwh.rb extconf.rb
extconf.rb:13:in `block in <main>': uninitialized constant Config (NameError)

    Config::CONFIG.each do |key, value|
    ^^^^^^
Did you mean?  RbConfig
	from extconf.rb:12:in `open'
	from extconf.rb:12:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /root/.chef/gem/ruby/3.1.0/gems/fastthread-1.0.7 for inspection.
Results logged to /root/.chef/gem/ruby/3.1.0/extensions/x86_64-linux/3.1.0/fastthread-1.0.7/gem_make.out
---- End output of /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org ----
Ran /opt/chef-workstation/embedded/bin/gem install shadow -q --no-document -v "1.1" --source=https://rubygems.org returned 1
W, [2023-05-13T20:42:40.278457 #172034]  WARN -- : deleting droplet
:delete
[]
{:id=>355210694}
/home/neonjenkins/tooling/mgmt/digital_ocean.rb:100:in `<main>': unhandled exception
Build step 'Execute shell' marked build as failure


More information about the neon-notifications mailing list