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

Installation to chef fails. #355

Open
rleibman opened this issue Nov 13, 2014 · 0 comments
Open

Installation to chef fails. #355

rleibman opened this issue Nov 13, 2014 · 0 comments

Comments

@rleibman
Copy link

Hi. is this the right repo for the chef-mongodb cookbook that's on the chef supermarket? it doesn't have the "view source" button, so I have no idea.

I'm using chef 11.12.2, which installed ruby 1.9.3p484
I think the problem lies with a default argument in the user.rb file, I know little about ruby, but if it's anything like other languages I know, default arguments have to be the last argument in the method.


Anyway, I get the following when attempting to do a berks install. I'm snipping a lot of stuff.

01:20:27.388 [QUIET] [system.out] Skipping maven (1.2.0) (frozen)
01:20:27.831 [ERROR] [system.err] There was an error connecting to the Chef Server
01:20:27.913 [QUIET] [system.out] E, [2014-11-13T01:20:27.822237 #32500] ERROR -- : Cookbook file providers/user.rb has a ruby syntax error:
01:20:27.913 [QUIET] [system.out] E, [2014-11-13T01:20:27.822513 #32500] ERROR -- : /var/lib/jenkins/.berkshelf/cookbooks/mongodb-0.16.2/providers/user.rb:5: syntax error, unexpected ')', expecting '='
01:20:27.913 [QUIET] [system.out] E, [2014-11-13T01:20:27.822653 #32500] ERROR -- : /var/lib/jenkins/.berkshelf/cookbooks/mongodb-0.16.2/providers/user.rb:36: syntax error, unexpected kEND, expecting $end
01:20:27.913 [QUIET] [system.out] E, [2014-11-13T01:20:27.824946 #32500] ERROR -- : Ridley::Errors::CookbookSyntaxError: Invalid ruby files in cookbook: mongodb (0.16.2).
01:20:27.913 [QUIET] [system.out] E, [2014-11-13T01:20:27.828664 #32500] ERROR -- :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant