Skip to content

Instantly share code, notes, and snippets.

@seizadi
Created February 14, 2015 21:12
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 seizadi/3d92efce020814f6a10b to your computer and use it in GitHub Desktop.
Save seizadi/3d92efce020814f6a10b to your computer and use it in GitHub Desktop.
Recipe: crowbar-bootstrap::goiardi-build
* bash[Install sqitch for database management] action run[2015-02-14T05:03:34-08:00] INFO: Processing bash[Install sqitch for database management] action run (crowbar-bootstrap::goiardi-build line 22)
================================================================================
Error executing action `run` on resource 'bash[Install sqitch for database management]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20150214-19478-115ne70" ----
STDOUT: --> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7027.tar.gz ... OK
Configuring App-cpanminus-1.7027 ... OK
==> Found dependencies: ExtUtils::MakeMaker, Module::Build
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.04 ... OK
Building and testing ExtUtils-MakeMaker-7.04 ... OK
Successfully installed ExtUtils-MakeMaker-7.04 (upgraded from 6.55_02)
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4211.tar.gz ... OK
==> Found dependencies: Module::Metadata, version, CPAN::Meta, Perl::OSType
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000026.tar.gz ... OK
Configuring Module-Metadata-1.000026 ... OK
==> Found dependencies: version
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9912.tar.gz ... OK
Configuring version-0.9912 ... OK
Building and testing version-0.9912 ... OK
Successfully installed version-0.9912 (upgraded from 0.77)
Building and testing Module-Metadata-1.000026 ... OK
Successfully installed Module-Metadata-1.000026
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.143240.tar.gz ... OK
Configuring CPAN-Meta-2.143240 ... OK
==> Found dependencies: Parse::CPAN::Meta
--> Working on Parse::CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4414.tar.gz ... OK
Configuring Parse-CPAN-Meta-1.4414 ... OK
==> Found dependencies: CPAN::Meta::YAML
--> Working on CPAN::Meta::YAML
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-0.012.tar.gz ... OK
Configuring CPAN-Meta-YAML-0.012 ... OK
==> Found dependencies: Test::More
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.001014.tar.gz ... OK
Configuring Test-Simple-1.001014 ... OK
Building and testing Test-Simple-1.001014 ... OK
Successfully installed Test-Simple-1.001014 (upgraded from 0.92)
Building and testing CPAN-Meta-YAML-0.012 ... OK
Successfully installed CPAN-Meta-YAML-0.012 (upgraded from 0.008)
Building and testing Parse-CPAN-Meta-1.4414 ... OK
Successfully installed Parse-CPAN-Meta-1.4414 (upgraded from 1.4405)
Building and testing CPAN-Meta-2.143240 ... OK
Successfully installed CPAN-Meta-2.143240 (upgraded from 2.120351)
--> Working on Perl::OSType
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Perl-OSType-1.008.tar.gz ... OK
Configuring Perl-OSType-1.008 ... OK
Building and testing Perl-OSType-1.008 ... OK
Successfully installed Perl-OSType-1.008
Configuring Module-Build-0.4211 ... OK
Building and testing Module-Build-0.4211 ... OK
Successfully installed Module-Build-0.4211 (upgraded from 0.35)
Building and testing App-cpanminus-1.7027 ... FAIL
9 distributions installed
STDERR: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 294k 100 294k 0 0 179k 0 0:00:01 0:00:01 --:--:-- 3168k
/bin/tar: App-cpanminus-1.7027/bin: time stamp 2015-02-14 12:14:19 is 25841.502221882 s in the future
/bin/tar: App-cpanminus-1.7027/Changes: time stamp 2015-02-14 12:14:19 is 25841.501990494 s in the future
/bin/tar: App-cpanminus-1.7027/cpanfile: time stamp 2015-02-14 12:14:19 is 25841.501889743 s in the future
/bin/tar: App-cpanminus-1.7027/lib: time stamp 2015-02-14 12:14:19 is 25841.50177116 s in the future
/bin/tar: App-cpanminus-1.7027/LICENSE: time stamp 2015-02-14 12:14:19 is 25841.501634886 s in the future
/bin/tar: App-cpanminus-1.7027/Makefile.PL: time stamp 2015-02-14 12:14:19 is 25841.501528601 s in the future
/bin/tar: App-cpanminus-1.7027/MANIFEST: time stamp 2015-02-14 12:14:19 is 25841.501382317 s in the future
/bin/tar: App-cpanminus-1.7027/MANIFEST.SKIP: time stamp 2015-02-14 12:14:19 is 25841.501242955 s in the future
/bin/tar: App-cpanminus-1.7027/META.json: time stamp 2015-02-14 12:14:19 is 25841.501080176 s in the future
/bin/tar: App-cpanminus-1.7027/META.yml: time stamp 2015-02-14 12:14:19 is 25841.500941316 s in the future
/bin/tar: App-cpanminus-1.7027/README: time stamp 2015-02-14 12:14:19 is 25841.500787082 s in the future
/bin/tar: App-cpanminus-1.7027/t/happy_cpantesters.t: time stamp 2015-02-14 12:14:19 is 25841.500530683 s in the future
/bin/tar: App-cpanminus-1.7027/t: time stamp 2015-02-14 12:14:19 is 25841.500460298 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus: time stamp 2015-02-14 12:14:19 is 25841.500195342 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus.pm: time stamp 2015-02-14 12:14:19 is 25841.500052277 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus/fatscript.pm: time stamp 2015-02-14 12:14:19 is 25841.489262459 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App: time stamp 2015-02-14 12:14:19 is 25841.489200121 s in the future
/bin/tar: App-cpanminus-1.7027/bin/cpanm: time stamp 2015-02-14 12:14:19 is 25841.484447713 s in the future
/bin/tar: App-cpanminus-1.7027: time stamp 2015-02-14 12:14:19 is 25841.484358953 s in the future
! Installing App::cpanminus failed. See /root/.cpanm/work/1423919016.19852/build.log for details. Retry with --force to force install it.
/tmp/chef-script20150214-19478-115ne70: line 2: cpanm: command not found
---- End output of "bash" "/tmp/chef-script20150214-19478-115ne70" ----
Ran "bash" "/tmp/chef-script20150214-19478-115ne70" returned 127
Resource Declaration:
---------------------
# In /opt/opencrowbar/core/chef/cookbooks/crowbar-bootstrap/recipes/goiardi-build.rb
22: bash "Install sqitch for database management" do
23: code <<EOC
24: curl -L http://cpanmin.us | perl - --sudo App::cpanminus
25: cpanm --quiet --notest App::Sqitch
26: EOC
27: not_if "which sqitch"
28: end
29:
Compiled Resource:
------------------
# Declared in /opt/opencrowbar/core/chef/cookbooks/crowbar-bootstrap/recipes/goiardi-build.rb:22:in `from_file'
bash("Install sqitch for database management") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "\"bash\" \"/tmp/chef-script20150214-19478-115ne70\""
backup 5
returns 0
code "curl -L http://cpanmin.us | perl - --sudo App::cpanminus\ncpanm --quiet --notest App::Sqitch\n"
interpreter "bash"
cookbook_name :"crowbar-bootstrap"
recipe_name "goiardi-build"
not_if "which sqitch"
end
[2015-02-14T05:05:40-08:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2015-02-14T05:05:40-08:00] ERROR: Running exception handlers
Running handlers complete
[2015-02-14T05:05:40-08:00] ERROR: Exception handlers complete
[2015-02-14T05:05:40-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 12 resources updated in 148.724788177 seconds
[2015-02-14T05:05:40-08:00] ERROR: bash[Install sqitch for database management] (crowbar-bootstrap::goiardi-build line 22) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20150214-19478-115ne70" ----
STDOUT: --> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7027.tar.gz ... OK
Configuring App-cpanminus-1.7027 ... OK
==> Found dependencies: ExtUtils::MakeMaker, Module::Build
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.04.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.04 ... OK
Building and testing ExtUtils-MakeMaker-7.04 ... OK
Successfully installed ExtUtils-MakeMaker-7.04 (upgraded from 6.55_02)
--> Working on Module::Build
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-0.4211.tar.gz ... OK
==> Found dependencies: Module::Metadata, version, CPAN::Meta, Perl::OSType
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000026.tar.gz ... OK
Configuring Module-Metadata-1.000026 ... OK
==> Found dependencies: version
--> Working on version
Fetching http://www.cpan.org/authors/id/J/JP/JPEACOCK/version-0.9912.tar.gz ... OK
Configuring version-0.9912 ... OK
Building and testing version-0.9912 ... OK
Successfully installed version-0.9912 (upgraded from 0.77)
Building and testing Module-Metadata-1.000026 ... OK
Successfully installed Module-Metadata-1.000026
--> Working on CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-2.143240.tar.gz ... OK
Configuring CPAN-Meta-2.143240 ... OK
==> Found dependencies: Parse::CPAN::Meta
--> Working on Parse::CPAN::Meta
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4414.tar.gz ... OK
Configuring Parse-CPAN-Meta-1.4414 ... OK
==> Found dependencies: CPAN::Meta::YAML
--> Working on CPAN::Meta::YAML
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-0.012.tar.gz ... OK
Configuring CPAN-Meta-YAML-0.012 ... OK
==> Found dependencies: Test::More
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.001014.tar.gz ... OK
Configuring Test-Simple-1.001014 ... OK
Building and testing Test-Simple-1.001014 ... OK
Successfully installed Test-Simple-1.001014 (upgraded from 0.92)
Building and testing CPAN-Meta-YAML-0.012 ... OK
Successfully installed CPAN-Meta-YAML-0.012 (upgraded from 0.008)
Building and testing Parse-CPAN-Meta-1.4414 ... OK
Successfully installed Parse-CPAN-Meta-1.4414 (upgraded from 1.4405)
Building and testing CPAN-Meta-2.143240 ... OK
Successfully installed CPAN-Meta-2.143240 (upgraded from 2.120351)
--> Working on Perl::OSType
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Perl-OSType-1.008.tar.gz ... OK
Configuring Perl-OSType-1.008 ... OK
Building and testing Perl-OSType-1.008 ... OK
Successfully installed Perl-OSType-1.008
Configuring Module-Build-0.4211 ... OK
Building and testing Module-Build-0.4211 ... OK
Successfully installed Module-Build-0.4211 (upgraded from 0.35)
Building and testing App-cpanminus-1.7027 ... FAIL
9 distributions installed
STDERR: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 294k 100 294k 0 0 179k 0 0:00:01 0:00:01 --:--:-- 3168k
/bin/tar: App-cpanminus-1.7027/bin: time stamp 2015-02-14 12:14:19 is 25841.502221882 s in the future
/bin/tar: App-cpanminus-1.7027/Changes: time stamp 2015-02-14 12:14:19 is 25841.501990494 s in the future
/bin/tar: App-cpanminus-1.7027/cpanfile: time stamp 2015-02-14 12:14:19 is 25841.501889743 s in the future
/bin/tar: App-cpanminus-1.7027/lib: time stamp 2015-02-14 12:14:19 is 25841.50177116 s in the future
/bin/tar: App-cpanminus-1.7027/LICENSE: time stamp 2015-02-14 12:14:19 is 25841.501634886 s in the future
/bin/tar: App-cpanminus-1.7027/Makefile.PL: time stamp 2015-02-14 12:14:19 is 25841.501528601 s in the future
/bin/tar: App-cpanminus-1.7027/MANIFEST: time stamp 2015-02-14 12:14:19 is 25841.501382317 s in the future
/bin/tar: App-cpanminus-1.7027/MANIFEST.SKIP: time stamp 2015-02-14 12:14:19 is 25841.501242955 s in the future
/bin/tar: App-cpanminus-1.7027/META.json: time stamp 2015-02-14 12:14:19 is 25841.501080176 s in the future
/bin/tar: App-cpanminus-1.7027/META.yml: time stamp 2015-02-14 12:14:19 is 25841.500941316 s in the future
/bin/tar: App-cpanminus-1.7027/README: time stamp 2015-02-14 12:14:19 is 25841.500787082 s in the future
/bin/tar: App-cpanminus-1.7027/t/happy_cpantesters.t: time stamp 2015-02-14 12:14:19 is 25841.500530683 s in the future
/bin/tar: App-cpanminus-1.7027/t: time stamp 2015-02-14 12:14:19 is 25841.500460298 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus: time stamp 2015-02-14 12:14:19 is 25841.500195342 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus.pm: time stamp 2015-02-14 12:14:19 is 25841.500052277 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App/cpanminus/fatscript.pm: time stamp 2015-02-14 12:14:19 is 25841.489262459 s in the future
/bin/tar: App-cpanminus-1.7027/lib/App: time stamp 2015-02-14 12:14:19 is 25841.489200121 s in the future
/bin/tar: App-cpanminus-1.7027/bin/cpanm: time stamp 2015-02-14 12:14:19 is 25841.484447713 s in the future
/bin/tar: App-cpanminus-1.7027: time stamp 2015-02-14 12:14:19 is 25841.484358953 s in the future
! Installing App::cpanminus failed. See /root/.cpanm/work/1423919016.19852/build.log for details. Retry with --force to force install it.
/tmp/chef-script20150214-19478-115ne70: line 2: cpanm: command not found
---- End output of "bash" "/tmp/chef-script20150214-19478-115ne70" ----
Ran "bash" "/tmp/chef-script20150214-19478-115ne70" returned 127
[2015-02-14T05:05:40-08:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment