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

Installation doesnt work #66

Closed
YannickFricke opened this Issue Jan 19, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@YannickFricke

YannickFricke commented Jan 19, 2015

Hey guys,

awesome work :D

Currently I cant install this nice cookbook.

I've done all the stuff which was in TUTORIAL.md

/usr/local/rvm/gems/ruby-2.2.0/gems/chef-12.0.3/lib/chef/data_bag_item.rb:161: warning: circular argument reference - data_bag
Starting Chef Client, version 12.0.3
Compiling Cookbooks...

Running handlers:
[2015-01-19T20:13:58+01:00] ERROR: Running exception handlers
Running handlers complete
[2015-01-19T20:13:58+01:00] ERROR: Exception handlers complete
[2015-01-19T20:13:58+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.342882106 seconds
[2015-01-19T20:13:58+01:00] ERROR: Cookbook os-hardening not found. If you're loading os-hardening from another cookbook, make sure you configure the dependency in your metadata
[2015-01-19T20:13:58+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Ruby version:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]

Debian 7 x64

Könnt auch auf Deutsch antworten! :)

@chris-rock

This comment has been minimized.

Show comment
Hide comment
@chris-rock

chris-rock Jan 19, 2015

Member

@FrickX Thanks for reporting this.

Difficult to say what went wrong. As far as I can see from the logs, chef could not find the cookbook. Could you post the solo.rb? Please ensure the solo.rb is located relative to the cookbooks folder.

If I am not wrong, it looks like you installed chef via gem install (not recommend anymore, but mentioned in our guideline, good catch). For dev environments I recommend ChefDK. Otherwise you could install chef quickly via curl -L https://www.chef.io/chef/install.sh | sudo bash. This has the advantage, that you will have no conflict with ruby versions.

Track update of tutorial.md in #67

Member

chris-rock commented Jan 19, 2015

@FrickX Thanks for reporting this.

Difficult to say what went wrong. As far as I can see from the logs, chef could not find the cookbook. Could you post the solo.rb? Please ensure the solo.rb is located relative to the cookbooks folder.

If I am not wrong, it looks like you installed chef via gem install (not recommend anymore, but mentioned in our guideline, good catch). For dev environments I recommend ChefDK. Otherwise you could install chef quickly via curl -L https://www.chef.io/chef/install.sh | sudo bash. This has the advantage, that you will have no conflict with ruby versions.

Track update of tutorial.md in #67

@YannickFricke

This comment has been minimized.

Show comment
Hide comment
@YannickFricke

YannickFricke Jan 19, 2015

Hey Chris,

thx for ur fast response

I've installed at first Chef via the link but it didnt worked too.

After that ive installed it via the gem Command and as you can see didnt worked too.

My directory structure:

cookbooks (the directory)
solo.json
solo.rb

solo.rb:

root@debian:~# head solo.rb
cookbook_path "cookbooks"

YannickFricke commented Jan 19, 2015

Hey Chris,

thx for ur fast response

I've installed at first Chef via the link but it didnt worked too.

After that ive installed it via the gem Command and as you can see didnt worked too.

My directory structure:

cookbooks (the directory)
solo.json
solo.rb

solo.rb:

root@debian:~# head solo.rb
cookbook_path "cookbooks"

@chris-rock

This comment has been minimized.

Show comment
Hide comment
@chris-rock

chris-rock Jan 19, 2015

Member

@FrickX I updated the tutorial. Please have a look here: https://github.com/TelekomLabs/chef-os-hardening/pull/68/files?diff=unified&short_path=81a7b83 Let me know if that worked. We will add some more information for production deployments over the next weeks

Member

chris-rock commented Jan 19, 2015

@FrickX I updated the tutorial. Please have a look here: https://github.com/TelekomLabs/chef-os-hardening/pull/68/files?diff=unified&short_path=81a7b83 Let me know if that worked. We will add some more information for production deployments over the next weeks

@YannickFricke

This comment has been minimized.

Show comment
Hide comment
@YannickFricke

YannickFricke Jan 20, 2015

@chris-rock The new tutorial works like a charm. Thx for your help :) 👍

YannickFricke commented Jan 20, 2015

@chris-rock The new tutorial works like a charm. Thx for your help :) 👍

@chris-rock

This comment has been minimized.

Show comment
Hide comment
@chris-rock

chris-rock Jan 20, 2015

Member

great to hear that worked. Please let us know, if you have any questions

Member

chris-rock commented Jan 20, 2015

great to hear that worked. Please let us know, if you have any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment