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

Opswork configure throwing error #3

Open
karthikbalu opened this issue Jun 5, 2017 · 0 comments
Open

Opswork configure throwing error #3

karthikbalu opened this issue Jun 5, 2017 · 0 comments

Comments

@karthikbalu
Copy link

Please help me to figure out why opswork is not running the mentioned configure event properly thanks

================================================================================
Recipe Compile Error in /var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/cookbooks/opsworks_rabbitmq/recipes/cluster.rb

NoMethodError

undefined method `[]' for nil:NilClass

Cookbook Trace:

/var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/cookbooks/opsworks_rabbitmq/recipes/cluster.rb:33:in `from_file'

Relevant File Content:

/var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/cookbooks/opsworks_rabbitmq/recipes/cluster.rb:

26: # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27: # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28: # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29:
30: # Configurable through stack's custom JSON
31: rabbitmq_layer = node['rabbitmq']['opsworks']['layer_name']
32:
33>> instances = node[:opsworks][:layers][rabbitmq_layer][:instances]
34: rabbitmq_cluster_nodes = instances.map{ |name, attrs| "rabbit@#{name}" }
35: node.set['rabbitmq']['cluster_disk_nodes'] = rabbitmq_cluster_nodes
36:

Platform:

x86_64-linux

[2017-06-05T11:53:55+00:00] ERROR: Running exception handlers
[2017-06-05T11:53:55+00:00] ERROR: Exception handlers complete
[2017-06-05T11:53:55+00:00] FATAL: Stacktrace dumped to /var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/chef-stacktrace.out
[2017-06-05T11:53:55+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-06-05T11:53:55+00:00] ERROR: undefined method `[]' for nil:NilClass
[2017-06-05T11:53:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

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