Skip to content

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

Description

@muthuridennis

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions