-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Installation fails: Error executing action start
on resource 'service[elasticsearch]'
#96
Comments
This bug appears to be due to a regression in the 'ark' cookbook (http://tickets.opscode.com/browse/COOK-3053). We end up with /usr/local/bin/elasticsearch and /usr/local/bin/plugin being created as broken symlinks. |
I had the same problem. I worked around it by reverting the 'ark' cookbook to version 0.1.0. It's commit "084aef1". |
You did that using Berkshelf or Librarian? Or you simply copied the files inside the |
@leknarf thank you so much! It works for me. @liquid1982 I simply added version 0.1.0 into my Berksfile: cookbook 'ark', github: 'opscode-cookbooks/ark', ref: '0.1.0' |
Thanks a lot ! |
Cheers @av-ast! |
@liquid1982 @leknarf Can you provide more info here, if you're using any configuration different from the defaults? I'm looking into the issue right now, and using bryanwb/chef-ark@991613e, the installation in Vagrant is fine:
|
@karmi, You're correct, the installation runs successfully using the bryanwb/chef-ark cookbook. But it fails if you try to use https://github.com/opscode-cookbooks/ark, which is the default.
|
@leknarf Aaargh, sure, I always had Bryan's version in the Berksfile. Seems like opscode-cookbooks/ark superseded that original repository. I think they have fixed the issue in sous-chefs/ark@0ddcd48, will try it out. |
@leknarf This is weird, just tried it out in a fresh Vagrant with:
and the Chef run goes fine, and the bin seems to be fine:
Can you maybe try it once again with ark 0.2.4 from opscode-cookbooks? |
@karmi I also tried with Vagrant and everything is ok. I had this issue launching a |
@liquid1982 Ah, OK, how does |
cookbook 'ark', git: 'git://github.com/opscode-cookbooks/ark.git', ref: '0.1.0' |
This is my complete site 'http://community.opscode.com/api/v1'
cookbook 'apt'
cookbook 'rbenv', git: 'git://github.com/fnichol/chef-rbenv.git', ref: 'v0.7.2'
cookbook 'ruby_build'
cookbook 'nginx'
cookbook 'xml'
cookbook 'nodejs'
cookbook 'memcached'
cookbook 'imagemagick'
cookbook 'redisio'
cookbook 'database'
cookbook 'java'
cookbook 'ssh_known_hosts'
cookbook 'application'
cookbook 'application_ruby'
# Vecchia versione di `ark` per bug
# https://github.com/elasticsearch/cookbook-elasticsearch/issues/96#issuecomment-18604638
cookbook 'ark', git: 'git://github.com/opscode-cookbooks/ark.git', ref: '0.1.0'
cookbook 'elasticsearch' and this is my SITE
remote: http://community.opscode.com/api/v1
specs:
apache2 (1.6.2)
application (2.0.4)
application_ruby (1.1.4)
apache2 (>= 0.0.0)
application (>= 0.0.0)
passenger_apache2 (>= 0.0.0)
runit (~> 1.0)
unicorn (>= 0.0.0)
apt (1.10.0)
aws (0.101.0)
build-essential (1.4.0)
chef_handler (1.1.4)
database (1.4.0)
aws (>= 0.0.0)
mysql (>= 1.3.0)
postgresql (>= 1.0.0)
xfs (>= 0.0.0)
elasticsearch (0.2.7)
ark (>= 0.0.0)
imagemagick (0.2.2)
java (1.11.4)
windows (>= 0.0.0)
memcached (1.4.0)
runit (~> 1.0)
yum (>= 0.0.0)
mysql (3.0.0)
build-essential (>= 0.0.0)
openssl (>= 0.0.0)
nginx (1.6.0)
apt (>= 0.0.0)
build-essential (>= 0.0.0)
ohai (>= 1.1.4)
runit (>= 0.0.0)
yum (>= 0.0.0)
nodejs (1.1.2)
apt (>= 0.0.0)
build-essential (>= 0.0.0)
ohai (1.1.8)
openssl (1.0.2)
partial_search (1.0.0)
passenger_apache2 (2.0.0)
apache2 (>= 1.0.4)
build-essential (>= 0.0.0)
postgresql (3.0.0)
apt (>= 0.0.0)
build-essential (>= 0.0.0)
openssl (>= 0.0.0)
redisio (1.4.1)
ulimit (>= 0.1.2)
ruby_build (0.8.0)
runit (1.1.4)
build-essential (>= 0.0.0)
yum (>= 0.0.0)
ssh_known_hosts (1.0.0)
partial_search (>= 0.0.0)
ulimit (0.2.0)
unicorn (1.2.2)
windows (1.9.0)
chef_handler (>= 0.0.0)
xfs (1.1.0)
xml (1.1.2)
build-essential (>= 0.0.0)
yum (2.2.2)
GIT
remote: git://github.com/fnichol/chef-rbenv.git
ref: v0.7.2
sha: f2b53292e810dd2b43f6121f9958f5f29979dcb1
specs:
rbenv (0.7.2)
GIT
remote: git://github.com/opscode-cookbooks/ark.git
ref: 0.1.0
sha: 084aef10c0797d6f9ac13de668804cf78d6353dc
specs:
ark (0.1.0)
DEPENDENCIES
application (>= 0)
application_ruby (>= 0)
apt (>= 0)
ark (>= 0)
database (>= 0)
elasticsearch (>= 0)
imagemagick (>= 0)
java (>= 0)
memcached (>= 0)
nginx (>= 0)
nodejs (>= 0)
rbenv (>= 0)
redisio (>= 0)
ruby_build (>= 0)
ssh_known_hosts (>= 0)
xml (>= 0) |
So when you specify the |
I'm setting up a new VM. I'll let you know soon. |
Yeah, it seems that the last commit in Thank you very much! PS: At the end of the provisioning process, if I login in the vm and issue the service 'elasticsearch' do
action :start
end in my recipe. It is a very strange behaviour. I also notice from the Chef log the following records:
Can anyone figure out what's going on? Should I open a new ticket? |
Hmm, it should be definitely running, but a) it needs couple of seconds to be up, b) notice the fixes in #91 |
Still seeing:
on the current master and latest Ark. |
More info: on each Chef run,
impossible. EDIT: This is actually the |
Should be solved on the current master, closing -- please feel free to reopen or ping me if you still have problems. |
I am seeing similar error w.r.t logstash
|
I'm trying to install the elasticsearch cookbook using Chef Solo (Ubuntu 12.04 LTS 64bit) and it is failing during the execution this resource declaration (in the
default
recipe):because the path to the binary is wrong.
I'm stuck. Any ideas?
Thanks,
Vincenzo
The text was updated successfully, but these errors were encountered: