Problem with opscode community runit recipe 1.1.4

Hi all,
Trying to run the latest version of runit (1.1.4) on a centos 6.4 box and
it fails with:

[2013-05-20T13:38:43-07:00] INFO: Processing
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] action create
(runit::default line 57)
[2013-05-20T13:38:44-07:00] INFO:
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] created file
/var/chef/cache/runit-2.1.1.tar.gz
[2013-05-20T13:38:44-07:00] INFO:
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] sending run action to
bash[rhel_build_install] (immediate)
[2013-05-20T13:38:44-07:00] INFO: Processing bash[rhel_build_install]
action run (runit::default line 63)

================================================================================
Error executing action run on resource ‘bash[rhel_build_install]’

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20130520-2225-1pfj4wz” ----
STDOUT:
STDERR: cp: cannot create regular file /root/rpmbuild/SPECS/': No such file or directory cp: target/root/rpmbuild/SOURCES/’ is not a directory
–2013-05-20 13:38:44-- http://smarden.org/runit/runit-2.1.1.tar.gz
Resolving smarden.org… 176.74.58.109
Connecting to smarden.org|176.74.58.109|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 109661 (107K) [application/octet-stream]
Saving to: `/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz’

 0K .......... .......... .......... .......... .......... 46% 96.7K 1s
50K .......... .......... .......... .......... .......... 93%  481K 0s

100K … 100%
13525G=0.6s

2013-05-20 13:38:45 (173 KB/s) -
`/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz’ saved [109661/109661]

error: failed to stat /root/rpmbuild/SPECS/runit.spec: No such file or
directory
---- End output of “bash” “/tmp/chef-script20130520-2225-1pfj4wz” ----
Ran “bash” “/tmp/chef-script20130520-2225-1pfj4wz” returned 1

Resource Declaration:

In /var/chef/cache/cookbooks/runit/recipes/default.rb

63: bash “rhel_build_install” do
64: user "root"
65: cwd Chef::Config[:file_cache_path]
66: code <<-EOH
67: tar xzf runit-2.1.1.tar.gz
68: cd runit-2.1.1
69: ./build.sh
70: EOH
71: notifies :install, “rpm_package[runit-211]”, :immediately
72: action :nothing
73: end
74:

Compiled Resource:

Declared in /var/chef/cache/cookbooks/runit/recipes/default.rb:63:in

`from_file’

bash(“rhel_build_install”) do
action [:nothing]
retries 0
retry_delay 2
command "“bash” “/tmp/chef-script20130520-2225-1pfj4wz”"
backup 5
cwd "/var/chef/cache"
returns 0
user "root"
code " tar xzf runit-2.1.1.tar.gz\n cd runit-2.1.1\n
./build.sh\n"
interpreter "bash"
cookbook_name "runit"
recipe_name "default"
end

[2013-05-20T13:38:45-07:00] ERROR: Running exception handlers
[2013-05-20T13:38:45-07:00] FATAL: Saving node information to
/var/chef/cache/failed-run-data.json
[2013-05-20T13:38:45-07:00] ERROR: Exception handlers complete
[2013-05-20T13:38:45-07:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-05-20T13:38:45-07:00] FATAL: Mixlib::ShellOut::ShellCommandFailed:
bash[rhel_build_install] (runit::default line 63) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0],
but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20130520-2225-1pfj4wz” ----
STDOUT:
STDERR: cp: cannot create regular file /root/rpmbuild/SPECS/': No such file or directory cp: target/root/rpmbuild/SOURCES/’ is not a directory
–2013-05-20 13:38:44-- http://smarden.org/runit/runit-2.1.1.tar.gz
Resolving smarden.org… 176.74.58.109
Connecting to smarden.org|176.74.58.109|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 109661 (107K) [application/octet-stream]
Saving to: `/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz’

 0K .......... .......... .......... .......... .......... 46% 96.7K 1s
50K .......... .......... .......... .......... .......... 93%  481K 0s

100K … 100%
13525G=0.6s

2013-05-20 13:38:45 (173 KB/s) -
`/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz’ saved [109661/109661]

error: failed to stat /root/rpmbuild/SPECS/runit.spec: No such file or
directory
---- End output of “bash” “/tmp/chef-script20130520-2225-1pfj4wz” ----
Ran “bash” “/tmp/chef-script20130520-2225-1pfj4wz” returned 1 :
: (’/usr/bin/chef-client’,)

Anyone else running into this, or have any idea what the issue is? I’m
still stepping through it now, but no luck in spotting the issue after
several hours of staring at it…

Thanks


Jeremy Koerber
Director - Tech Ops
branchout.com/jeremy.koerber

Found the fix regarding my last message:
Do not hardcode rpmbuild location - could cause problems during OS init phase http://tickets.opscode.com/browse/COOK-3182 by gansbrest · Pull Request #32 · chef-cookbooks/runit · GitHub
This is apparently a problem for EC2 users because the rpmbuild was
hardcoded in the recipe and doesn't match up with where the real rpmbuild
dir is. Problem solved. Hopefully that commit gets merged soon.

On Mon, May 20, 2013 at 2:32 PM, Jeremy Koerber jkoerber@branchout.comwrote:

Hi all,
Trying to run the latest version of runit (1.1.4) on a centos 6.4 box and
it fails with:

[2013-05-20T13:38:43-07:00] INFO: Processing
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] action create
(runit::default line 57)
[2013-05-20T13:38:44-07:00] INFO:
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] created file
/var/chef/cache/runit-2.1.1.tar.gz
[2013-05-20T13:38:44-07:00] INFO:
cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] sending run action to
bash[rhel_build_install] (immediate)
[2013-05-20T13:38:44-07:00] INFO: Processing bash[rhel_build_install]
action run (runit::default line 63)

================================================================================
Error executing action run on resource 'bash[rhel_build_install]'

================================================================================

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20130520-2225-1pfj4wz" ----
STDOUT:
STDERR: cp: cannot create regular file /root/rpmbuild/SPECS/': No such file or directory cp: target /root/rpmbuild/SOURCES/' is not a directory
--2013-05-20 13:38:44-- http://smarden.org/runit/runit-2.1.1.tar.gz
Resolving smarden.org... 176.74.58.109
Connecting to smarden.org|176.74.58.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 109661 (107K) [application/octet-stream]
Saving to: `/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz'

 0K .......... .......... .......... .......... .......... 46% 96.7K 1s
50K .......... .......... .......... .......... .......... 93%  481K 0s

100K ....... 100%
13525G=0.6s

2013-05-20 13:38:45 (173 KB/s) -
`/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz' saved [109661/109661]

error: failed to stat /root/rpmbuild/SPECS/runit.spec: No such file or
directory
---- End output of "bash" "/tmp/chef-script20130520-2225-1pfj4wz" ----
Ran "bash" "/tmp/chef-script20130520-2225-1pfj4wz" returned 1

Resource Declaration:

In /var/chef/cache/cookbooks/runit/recipes/default.rb

63: bash "rhel_build_install" do
64: user "root"
65: cwd Chef::Config[:file_cache_path]
66: code <<-EOH
67: tar xzf runit-2.1.1.tar.gz
68: cd runit-2.1.1
69: ./build.sh
70: EOH
71: notifies :install, "rpm_package[runit-211]", :immediately
72: action :nothing
73: end
74:

Compiled Resource:

Declared in /var/chef/cache/cookbooks/runit/recipes/default.rb:63:in

`from_file'

bash("rhel_build_install") do
action [:nothing]
retries 0
retry_delay 2
command ""bash" "/tmp/chef-script20130520-2225-1pfj4wz""
backup 5
cwd "/var/chef/cache"
returns 0
user "root"
code " tar xzf runit-2.1.1.tar.gz\n cd runit-2.1.1\n
./build.sh\n"
interpreter "bash"
cookbook_name "runit"
recipe_name "default"
end

[2013-05-20T13:38:45-07:00] ERROR: Running exception handlers
[2013-05-20T13:38:45-07:00] FATAL: Saving node information to
/var/chef/cache/failed-run-data.json
[2013-05-20T13:38:45-07:00] ERROR: Exception handlers complete
[2013-05-20T13:38:45-07:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-05-20T13:38:45-07:00] FATAL: Mixlib::ShellOut::ShellCommandFailed:
bash[rhel_build_install] (runit::default line 63) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0],
but received '1'
---- Begin output of "bash" "/tmp/chef-script20130520-2225-1pfj4wz" ----
STDOUT:
STDERR: cp: cannot create regular file /root/rpmbuild/SPECS/': No such file or directory cp: target /root/rpmbuild/SOURCES/' is not a directory
--2013-05-20 13:38:44-- http://smarden.org/runit/runit-2.1.1.tar.gz
Resolving smarden.org... 176.74.58.109
Connecting to smarden.org|176.74.58.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 109661 (107K) [application/octet-stream]
Saving to: `/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz'

 0K .......... .......... .......... .......... .......... 46% 96.7K 1s
50K .......... .......... .......... .......... .......... 93%  481K 0s

100K ....... 100%
13525G=0.6s

2013-05-20 13:38:45 (173 KB/s) -
`/root/rpmbuild/SOURCES/runit-2.1.1.tar.gz' saved [109661/109661]

error: failed to stat /root/rpmbuild/SPECS/runit.spec: No such file or
directory
---- End output of "bash" "/tmp/chef-script20130520-2225-1pfj4wz" ----
Ran "bash" "/tmp/chef-script20130520-2225-1pfj4wz" returned 1 :
: ('/usr/bin/chef-client',)

Anyone else running into this, or have any idea what the issue is? I'm
still stepping through it now, but no luck in spotting the issue after
several hours of staring at it..

Thanks

--
Jeremy Koerber
Director - Tech Ops
branchout.com/jeremy.koerber

--
Jeremy Koerber
Director - Tech Ops
branchout.com/jeremy.koerber