Giter Club home page Giter Club logo

opsworks_cookbook's People

Contributors

moayyadfaris avatar

Watchers

 avatar  avatar

opsworks_cookbook's Issues

I am getting ERROR: undefined method `[]' for nil:NilClass

================================================================================
Recipe Compile Error in /var/chef/runs/4443b430-dc67-45e1-a301-edce9819902e/local-mode-cache/cache/cookbooks/OpsWorks/recipes/default.rb

NoMethodError

undefined method `[]' for nil:NilClass

Cookbook Trace:

/var/chef/runs/4443b430-dc67-45e1-a301-edce9819902e/local-mode-cache/cache/cookbooks/OpsWorks/recipes/default.rb:12:in `from_file'

Relevant File Content:

/var/chef/runs/4443b430-dc67-45e1-a301-edce9819902e/local-mode-cache/cache/cookbooks/OpsWorks/recipes/default.rb:

5: # Copyright:: 2018, Moayyad Faris, All Rights Reserved.
6:
7: execute "update-upgrade" do
8: command "sudo apt-get update && sudo apt-get upgrade -y"
9: action :run
10: end
11:
12>> release_user = node[:deployer]["name"]
13: release_group = node[:deployer]["group"]
14: group release_group
15: home = "/home/#{release_user}"
16:
17: user release_user do
18: action :create
19: comment "deploy user"
20: gid release_group
21: home home

Platform:

x86_64-linux

[2021-07-22T13:20:21+00:00] ERROR: Running exception handlers
[2021-07-22T13:20:21+00:00] ERROR: Exception handlers complete
[2021-07-22T13:20:21+00:00] FATAL: Stacktrace dumped to /var/chef/runs/4443b430-dc67-45e1-a301-edce9819902e/local-mode-cache/cache/chef-stacktrace.out
[2021-07-22T13:20:21+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-07-22T13:20:21+00:00] ERROR: undefined method `[]' for nil:NilClass
[2021-07-22T13:20:21+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

For haproxy

================================================================================
Recipe Compile Error in /var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/cookbooks/OpsWorks/recipes/haproxy.rb

NoMethodError

undefined method `+' for nil:NilClass

Cookbook Trace:

/var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/cookbooks/OpsWorks/recipes/haproxy.rb:69:in block in from_file' /var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/cookbooks/OpsWorks/recipes/haproxy.rb:39:in each'
/var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/cookbooks/OpsWorks/recipes/haproxy.rb:39:in `from_file'

Relevant File Content:

/var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/cookbooks/OpsWorks/recipes/haproxy.rb:

62: only_if do
63: app[:enable_ssl] && app[:ssl_configuration][:chain]
64: end
65: end
66:
67: Chef::Log.info("debugging haproxy recipe...")
68:
69>> ssl_pem = app[:ssl_configuration][:private_key] + "\n" + app[:ssl_configuration][:certificate] + "\n" + app[:ssl_configuration][:chain]
70:
71: template "#{node[:haproxy][:dir]}/ssl/#{node[:haproxy][:cert]}.pem" do
72: mode 0600
73: source 'haproxy/ssl.key.erb'
74: variables :key => ssl_pem
75: only_if do
76: app[:enable_ssl] && app[:ssl_configuration][:certificate] && app[:ssl_configuration][:private_key] && app[:ssl_configuration][:chain]
77: end
78: end

Platform:

x86_64-linux

[2021-07-23T11:36:53+00:00] ERROR: Running exception handlers
[2021-07-23T11:36:53+00:00] ERROR: Exception handlers complete
[2021-07-23T11:36:53+00:00] FATAL: Stacktrace dumped to /var/chef/runs/65a4a4a8-86a2-4302-adce-9af29b12e49b/local-mode-cache/cache/chef-stacktrace.out
[2021-07-23T11:36:53+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-07-23T11:36:53+00:00] ERROR: undefined method `+' for nil:NilClass
[2021-07-23T11:36:53+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

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.