Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running default.rb recipe #157

Closed
rackerbenoit opened this issue Mar 31, 2015 · 12 comments
Closed

Running default.rb recipe #157

rackerbenoit opened this issue Mar 31, 2015 · 12 comments
Assignees
Milestone

Comments

@rackerbenoit
Copy link

file[/etc/consul.d/default.json] action create (up to date)

  • template[/etc/sysconfig/consul] action create (up to date)

  • template[/etc/init.d/consul] action create (up to date)

  • service[consul] action enable (up to date)

  • service[consul] action start

    Error executing action start on resource 'service[consul]'

    Mixlib::ShellOut::ShellCommandFailed

    Expected process to exit with [0], but received '1'

@rackerbenoit
Copy link
Author

I should be able to just run this and have everything installed, yes?: chef-client -o "recipe[consul::install_source]"

@johnbellone johnbellone added the bug label Apr 2, 2015
@johnbellone
Copy link
Contributor

What operating system and version are you using?

@johnbellone johnbellone added this to the Road to 1.0.0 milestone Apr 2, 2015
@rackerbenoit
Copy link
Author

I am using CentOS 6.6 on an AWS EC2 node.

@kszarek
Copy link

kszarek commented Apr 3, 2015

I have the same issue on CentOS 6.6 on AWS.

@johnbellone johnbellone self-assigned this Apr 3, 2015
@rackerbenoit
Copy link
Author

Interesting....I haven't had a lot of time to look through the Cookbook but I feel like it should be a simple fix. Hopefully anyways

@rackerbenoit
Copy link
Author

@johnbellone, any progress on this?

@agperson
Copy link

Isn't this just #150?

@rackerbenoit
Copy link
Author

@agperson
Not quite. When I run this command: chef-client -o "recipe[consul::install_source]"
The installation never happens and the error listed above is thrown.

@GonZo
Copy link

GonZo commented Apr 24, 2015

Hi,
I'm having the same problem running "CentOS release 6.6 (Final)"
👍

Cheers

@rojomisin
Copy link

I have the same issue on aws and vagrant instances, I have tried using vagrant boxes 'chef/centos-6.6' and 'chef/centos-7.0'. (I prefer centos66)
looks to be related to the go install

==> default: [2015-05-04T21:27:17+00:00] INFO: directory[/opt/go/src/github.com/hashicorp] mode changed to 755
==> default: [2015-05-04T21:27:23+00:00] INFO: git[/opt/go/src/github.com/hashicorp/consul] cloning repo https://github.com/hashicorp/consul.git to /opt/go/src/github.com/hashicorp/consul
==> default: [2015-05-04T21:27:40+00:00] INFO: git[/opt/go/src/github.com/hashicorp/consul] checked out branch: master onto: deploy reference: 2af630987024eb097644efd30fd24d6a4a1a48c0
==> default: 
==> default: ================================================================================
==> default: Error executing action `run` on resource 'bash[/usr/local/go/bin/go get -v github.com/hashicorp/consul 2> >(grep -v '(download)$' > /var/chef/cache/jackfan.us.kg-hashicorp-consul)]'
==> default: ================================================================================
==> default: 
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '2'
==> default: ---- Begin output of "bash"  "/tmp/chef-script20150504-11930-ge5dvn" ----
==> default: STDOUT: 
==> default: STDERR: 
==> default: ---- End output of "bash"  "/tmp/chef-script20150504-11930-ge5dvn" ----
==> default: Ran "bash"  "/tmp/chef-script20150504-11930-ge5dvn" returned 2
==> default: 
==> default: Cookbook Trace:
==> default: ---------------
==> default: /tmp/vagrant-chef/8a58051761101d963b0e19a4a6162591/cookbooks/golang/providers/package.rb:14:in `block in class_from_file'
==> default: 

here's the full error output in a gist
https://gist.github.com/rojomisin/bffd4417019dbb30681d

@johnbellone
Copy link
Contributor

I am closing this out because of impeding #126 landing on master. This is converging cleanly on EL6.6.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants