CloudifySource / cloudify-recipes

Application and service recipes for Cloudify
www.cloudifysource.org
Apache License 2.0
47 stars 67 forks source link

chef-server chef_apply issue #70

Closed josh-at-knoesis closed 11 years ago

josh-at-knoesis commented 11 years ago

Using current cloudify-recipes version of travel-chef on Ubuntu 12.04.1 LTS 64-bit on Openstack Folsom.

Edit 1: It seems that the reason for this error is chef-apply not being present (or at least not in the $PATH)... I am also guessing that this means an older version of chef is being installed, which would explain the new chef-apply command going missing).

[cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 INSTALL completed, duration: 22.0 seconds [OK] [cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 START invoked [cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 START failed. Reason: Launch of process from closure exited with an exception: Assertion failed:

assert !chef_apply.isEmpty() || | |"" true false [ERROR] . [cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 STOP invoked [cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 STOP completed, duration: 0.0 seconds [OK] .... [cloudify-agent-2-812.novalocal/172.31.0.24] chef-server-1 INSTALL invoked

josh-at-knoesis commented 11 years ago

More evidence that the version of Chef installed for my OS is not up to date in this recipe. It looks like the apt.opscode.com packaging method is deprecated.

"These install instructions are deprecated in favor of the Omnibus installers and Chef 11." from: http://wiki.opscode.com/display/chef/Installing+Chef+Server+on+Debian+or+Ubuntu+using+Packages

https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.8-1.ubuntu.12.04_amd64.deb

Instructions

Below are a few easy steps to get your server up and running.

Install the file using the correct method for your system (i.e. "dpkg -i chef-server.deb" for Debian)
sudo chef-server-ctl reconfigure

...................

I am going to try to hack the new method into my offline fork of this recipe, but I'm less than novice at Java / Groovy.

josh-at-knoesis commented 11 years ago

I decided to drop back to debugging the broken-for-me version built into 2.5.0 GA... Therefore, I'm closing this as I expect I had a gross misunderstanding of the install process earlier. I see now the gem, fatBinary, etc settings......though I still can't get fatBinary to work for me.