Giter Club home page Giter Club logo

Comments (9)

sealabcore avatar sealabcore commented on August 16, 2024

The only way I was able to get around this was:

source "https://supermarket.getchef.com"

metadata

cookbook "cron"
cookbook 'postgresql', '~> 3.4.2'
# dependencies,scm_helper,mod_php5_apache2,ssh_users,opsworks_agent_monit,opsworks_java,opsworks_nodejs
# gem_support,opsworks_commons,opsworks_initial_setup
cookbook "gem_support", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'gem_support'
cookbook "opsworks_commons", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'opsworks_commons'
cookbook "opsworks_initial_setup", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'opsworks_initial_setup'
cookbook "dependencies", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'dependencies'
cookbook "scm_helper", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'scm_helper'
cookbook "mod_php5_apache2", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'mod_php5_apache2'
cookbook "ssh_users", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'ssh_users'
cookbook "opsworks_agent_monit", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'opsworks_agent_monit'
cookbook "opsworks_java", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'opsworks_java'
cookbook "opsworks_nodejs", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'opsworks_nodejs'
cookbook "deploy", github: "aws/opsworks-cookbooks", branch: "release-chef-11.10", rel: 'deploy'

cookbook "papertrail", github: "firstbanco/chef-papertrail"
cookbook "opsworks_delayed_job", github: "joeyAghion/opsworks_delayed_job"

But it seems to cause other issues...

from opsworks_delayed_job.

rposborne avatar rposborne commented on August 16, 2024

So I took this a step further and imported all cooks books in the opswork repo, but sadly it still fails to build new instances.

source 'https://supermarket.getchef.com'

cookbook 'gem_support', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'gem_support'
cookbook 'opsworks_commons', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_commons'
cookbook 'opsworks_initial_setup', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_initial_setup'
cookbook 'dependencies', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'dependencies'
cookbook 'scm_helper', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'scm_helper'
cookbook 'mod_php5_apache2', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'mod_php5_apache2'
cookbook 'ssh_users', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'ssh_users'
cookbook 'opsworks_agent_monit', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_agent_monit'
cookbook 'opsworks_java', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_java'
cookbook 'opsworks_nodejs', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_nodejs'
cookbook 'deploy', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'deploy'
cookbook 'opsworks_aws_flow_ruby', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_aws_flow_ruby'
cookbook 'packages', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'packages'
cookbook 'mysql', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'mysql'
cookbook 'nginx', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'nginx'
cookbook 'php', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'php'
cookbook 'unicorn', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'unicorn'
cookbook 'memcached', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'memcached'
cookbook 'ruby', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'ruby'
cookbook 'opsworks_bundler', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_bundler'
cookbook 'opsworks_rubygems', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'opsworks_rubygems'
cookbook 'rails', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'rails'
cookbook 'apache2', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'apache2'
cookbook 'passenger_apache2', github: 'aws/opsworks-cookbooks', branch: 'release-chef-11.10', rel: 'passenger_apache2'

cookbook 'opsworks_delayed_job', github: 'joeyAghion/opsworks_delayed_job'

The error

================================================================================
Recipe Compile Error in /var/lib/aws/opsworks/cache.stage2/cookbooks/packages/attributes/packages.rb
================================================================================


TypeError
---------
no implicit conversion of Symbol into Integer


Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/packages/attributes/packages.rb:19:in `from_file'


Relevant File Content:
----------------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/packages/attributes/packages.rb:

12:  # would completely override this file and might cause upgrade issues.
13:  #
14:  # See also: http://docs.aws.amazon.com/opsworks/latest/userguide/customizing.html
15:  ###
16:  
17:  # Toggle for recipes to determine if we should rely on distribution packages
18:  # or gems.
19>> default[:packages][:dist_only] = false
20:  
21:  include_attribute "packages::customize"
22:  

from opsworks_delayed_job.

sealabcore avatar sealabcore commented on August 16, 2024

@rposborne The work around for this was to just fork and remove the dependencies in this repo:

https://github.com/sealabcore/opsworks_delayed_job

from opsworks_delayed_job.

rposborne avatar rposborne commented on August 16, 2024

Actually the above code runs successfully no need to fork. The bug I was running into was due to cookbooks caching. Just hadn't had a chance to chime back on this thread.

from opsworks_delayed_job.

erupenkman avatar erupenkman commented on August 16, 2024

this was killing me but have a workaround. first add opsworks-cookbooks as a submodule (using chef 11.10)

 git submodule add -b release-chef-11.10  https://github.com/aws/opsworks-cookbooks.git opsworks/cookbooks

then in Berksfile add all of their dependencies

source "https://supermarket.getchef.com"
cookbook "deploy", path: 'opsworks/cookbooks/deploy'
cookbook "opsworks_commons", path: 'opsworks/cookbooks/opsworks_commons'
cookbook "scm_helper", path: 'opsworks/cookbooks/scm_helper'
cookbook "mod_php5_apache2", path: 'opsworks/cookbooks/mod_php5_apache2'
cookbook "ssh_users", path: 'opsworks/cookbooks/ssh_users'
cookbook "opsworks_agent_monit", path: 'opsworks/cookbooks/opsworks_agent_monit'
cookbook "opsworks_java", path: 'opsworks/cookbooks/opsworks_java'
cookbook "opsworks_aws_flow_ruby", path: 'opsworks/cookbooks/opsworks_aws_flow_ruby'
cookbook "gem_support", path: 'opsworks/cookbooks/gem_support'
cookbook "opsworks_nodejs", path: 'opsworks/cookbooks/opsworks_nodejs'
cookbook "opsworks_initial_setup", path: 'opsworks/cookbooks/opsworks_initial_setup'
cookbook "mysql", path: 'opsworks/cookbooks/mysql'
cookbook "dependencies", path: 'opsworks/cookbooks/dependencies'
cookbook "opsworks_ganglia", path: 'opsworks/cookbooks/opsworks_ganglia'

from opsworks_delayed_job.

joe1chen avatar joe1chen commented on August 16, 2024

We are also seeing the same errors

================================================================================
Recipe Compile Error in /var/lib/aws/opsworks/cache.stage2/cookbooks/packages/attributes/packages.rb
================================================================================


TypeError
---------
no implicit conversion of Symbol into Integer


Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage2/cookbooks/packages/attributes/packages.rb:19:in `from_file'

@rposborne Can you describe how you resolved the issue and what it had to do with caching?

from opsworks_delayed_job.

aadamson avatar aadamson commented on August 16, 2024

@rposborne I'm seeing the same issue that you ran into. Can you elaborate on how you solved it?

from opsworks_delayed_job.

aadamson avatar aadamson commented on August 16, 2024

I was referring to the issue with "default[:packages][:dist_only] = false"
causing an implicit conversion error. Is there a workaround for that?

On Thu, Aug 6, 2015 at 12:49 PM dogomedia [email protected] wrote:

@aadamson https://github.com/aadamson The underlying issue is that the
metadata.rb contains this line depends 'deploy'. Instead of depending on
the AWS Opworks deploy cookbook, it pulls in the deploy cookbook from the
Chef supermarket. Forking and removing the dependency might work.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from opsworks_delayed_job.

joeyAghion avatar joeyAghion commented on August 16, 2024

Sorry to come back to this only after so long.

The dependency on Opsworks' deploy cookbook was necessary because, without it, the custom cookbook would fail when it tried to include_recipe 'deploy'. However that seems to no longer be the case, at least on Chef 11.10.

The latest version of this cookbook (v0.7) removes the dependency (14829c9).

from opsworks_delayed_job.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.