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

Sinatra deployment fails with: ERROR: Error loading cookbook sinatra: wrong number of arguments (1 for 2) #2

Open
muthuridennis opened this issue Sep 21, 2014 · 0 comments

Comments

@muthuridennis
Copy link

Anytime I ran the sinatra::configure command on opsworks. The chef configuration failed with the following error(I've only pasted part of the stack trace):

ERROR: Error loading cookbook sinatra: wrong number of arguments (1 for 2)
/opt/aws/opsworks/current/merged-cookbooks/sinatra/metadata.rb:9:in `metadata_from'

To fix this I updated the recipe lines in the metadata.rb to read as follows:

recipe            "sinatra::configure", "one time, makes all the deploy folders"
recipe            "sinatra::deploy", "uses scm to update the codebase, bundle installs, and restarts the server"

Kindly merge these changes into your master branch to avoid this issue.

@muthuridennis muthuridennis changed the title SInatra deployment fails with: ERROR: Error loading cookbook sinatra: wrong number of arguments (1 for 2) Sinatra deployment fails with: ERROR: Error loading cookbook sinatra: wrong number of arguments (1 for 2) Sep 21, 2014
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