Comments (17)
A got the same error...
from elasticsearch.
Seems weird, it should be looking in ES directory for the file -- will check the Monit cooknook for changes and fix.
(BTW, the Monit integration needs to be split, so it's pluggable, not based on introspection in default.rb
, giving you more control.)
from elasticsearch.
When I run time bundle exec vagrant provision precise64
Monit is properly configured for ES and running. Any idea what would cause this?
(Runs on Chef 0.10.10 and 10.14.4)
from elasticsearch.
@cmer What kind of Monit cookbook are you using?
from elasticsearch.
Hi Karel,
Sorry for the delay.. Just now I started to test again.
In a clean ubuntu environment I added 3 cookbooks:
clicksign-initial, monit, elasticsearch
clicksign-initial
The clicksign-initial just run apt and add some packages:
include_recipe "apt"
%w{ git openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf ncurses-dev automake libtool bison redis-server }.each do |pkg|
#openjdk-6-jre-headless
package pkg do
action :install
end
end
monit
The monit cookbook is from:
https://github.com/apsoto/monit
elasticsearch
The elasticsearch cookbook is from your, with no argument and no data-bag.
Here is the problem:
ubuntu@ip-10-203-47-76:~$ sudo chef-client
[2012-10-14T15:04:34+00:00] INFO: *** Chef 10.14.4 ***
[2012-10-14T15:04:35+00:00] INFO: Run List is [role[elasticsearch]]
[2012-10-14T15:04:35+00:00] INFO: Run List expands to [clicksign-initial, monit, elasticsearch]
[2012-10-14T15:04:35+00:00] INFO: Starting Chef Run for chef1
[2012-10-14T15:04:35+00:00] INFO: Running start handlers
[2012-10-14T15:04:35+00:00] INFO: Start handlers complete.
[2012-10-14T15:04:35+00:00] INFO: Loading cookbooks [apt, ark, clicksign-initial, elasticsearch, monit]
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/clicksign-initial/recipes/default.rb in the cache.
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/clicksign-initial/metadata.rb in the cache.
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/clicksign-initial/README.md in the cache.
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/apt/resources/repository.rb in the cache.
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/apt/resources/preference.rb in the cache.
[2012-10-14T15:04:35+00:00] INFO: Storing updated cookbooks/apt/providers/repository.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/providers/preference.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/recipes/cacher-client.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/recipes/default.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/recipes/cacher-ng.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/Gemfile in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/.git in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/metadata.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/.gitignore in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/LICENSE in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/CHANGELOG.md in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/README.md in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/apt/CONTRIBUTING in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/recipes/ubuntu12fix.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/recipes/default.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/recipes/postfix.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/recipes/ssh.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/definitions/monitrc.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/attributes/default.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/README.rdoc in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/.git in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/metadata.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/LICENSE in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/monit/README.md in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/recipes/curl.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/recipes/plugin_aws.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/recipes/default.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/recipes/proxy_nginx.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/definitions/install_plugin.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/attributes/plugin_aws.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/attributes/default.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/attributes/proxy_nginx.rb in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/Gemfile in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/.git in the cache.
[2012-10-14T15:04:36+00:00] INFO: Storing updated cookbooks/elasticsearch/Berksfile in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/elasticsearch/Vagrantfile in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/elasticsearch/README.markdown in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/elasticsearch/metadata.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/elasticsearch/.gitignore in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/elasticsearch/chefignore in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/recipes/default.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/recipes/test.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/libraries/resource_ark.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/libraries/provider_ark.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/attributes/default.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/.vagrant in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/Rakefile in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/.git in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/Vagrantfile in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/metadata.rb in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/.gitignore in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/README.md in the cache.
[2012-10-14T15:04:37+00:00] INFO: Storing updated cookbooks/ark/Toftfile in the cache.
[2012-10-14T15:04:37+00:00] INFO: HTTP Request Returned 404 Not Found: Cannot load data bag elasticsearch
[2012-10-14T15:04:37+00:00] INFO: HTTP Request Returned 404 Not Found: Cannot load data bag elasticsearch
[2012-10-14T15:04:37+00:00] INFO: HTTP Request Returned 404 Not Found: Cannot load data bag elasticsearch
[2012-10-14T15:04:37+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2012-10-14T15:04:37+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[2012-10-14T15:04:37+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36)
[2012-10-14T15:04:37+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42)
[2012-10-14T15:04:37+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48)
[2012-10-14T15:04:39+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52)
Ign http://us-east-1.ec2.archive.ubuntu.com precise InRelease
Ign http://us-east-1.ec2.archive.ubuntu.com precise-updates InRelease
Get:1 http://us-east-1.ec2.archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://us-east-1.ec2.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://us-east-1.ec2.archive.ubuntu.com precise Release [49.6 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://security.ubuntu.com precise-security InRelease
Get:5 http://us-east-1.ec2.archive.ubuntu.com precise/main Sources [934 kB]
Get:6 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:7 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com precise/universe Sources [5019 kB]
Get:9 http://security.ubuntu.com precise-security/main Sources [49.7 kB]
Get:10 http://security.ubuntu.com precise-security/universe Sources [14.5 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com precise/main amd64 Packages [1273 kB]
Get:12 http://security.ubuntu.com precise-security/main amd64 Packages [177 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com precise/universe amd64 Packages [4786 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:16 http://security.ubuntu.com precise-security/universe amd64 Packages [48.6 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:18 http://us-east-1.ec2.archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:19 http://security.ubuntu.com precise-security/main i386 Packages [183 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Sources [174 kB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Sources [59.2 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main amd64 Packages [401 kB]
Get:23 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe amd64 Packages [145 kB]
Get:24 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main i386 Packages [407 kB]
Get:25 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe i386 Packages [145 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:27 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:28 http://us-east-1.ec2.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:29 http://security.ubuntu.com precise-security/universe i386 Packages [48.7 kB]
Get:30 http://us-east-1.ec2.archive.ubuntu.com precise/universe Translation-en [3341 kB]
Get:31 http://security.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:32 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:33 http://security.ubuntu.com precise-security/main Translation-en [86.3 kB]
Get:34 http://us-east-1.ec2.archive.ubuntu.com precise-updates/main Translation-en [199 kB]
Get:35 http://us-east-1.ec2.archive.ubuntu.com precise-updates/universe Translation-en [85.0 kB]
Get:36 http://security.ubuntu.com precise-security/universe Translation-en [30.3 kB]
Fetched 24.6 MB in 14s (1647 kB/s)
Reading package lists...
[2012-10-14T15:05:00+00:00] INFO: execute[apt-get-update-periodic] ran successfully
[2012-10-14T15:05:00+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62)
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local] group changed to 0
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local] mode changed to 644
[2012-10-14T15:05:00+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local/preseeding] owner changed to 0
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local/preseeding] group changed to 0
[2012-10-14T15:05:00+00:00] INFO: directory[/var/cache/local/preseeding] mode changed to 644
[2012-10-14T15:05:00+00:00] INFO: Processing package[git] action install (clicksign-initial::default line 20)
[2012-10-14T15:05:09+00:00] INFO: Processing package[openssl] action install (clicksign-initial::default line 20)
[2012-10-14T15:05:09+00:00] INFO: Processing package[libreadline6] action install (clicksign-initial::default line 20)
[2012-10-14T15:05:10+00:00] INFO: Processing package[libreadline6-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:05:16+00:00] INFO: Processing package[zlib1g] action install (clicksign-initial::default line 20)
[2012-10-14T15:05:18+00:00] INFO: Processing package[zlib1g-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:06:42+00:00] INFO: Processing package[libssl-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:07:54+00:00] INFO: Processing package[libyaml-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:07:58+00:00] INFO: Processing package[libxml2-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:08:14+00:00] INFO: Processing package[libxslt-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:08:14+00:00] INFO: package[libxslt-dev] is a virtual package, actually acting on package[libxslt1-dev]
[2012-10-14T15:08:22+00:00] INFO: Processing package[autoconf] action install (clicksign-initial::default line 20)
[2012-10-14T15:08:36+00:00] INFO: Processing package[ncurses-dev] action install (clicksign-initial::default line 20)
[2012-10-14T15:08:39+00:00] INFO: package[ncurses-dev] is a virtual package, actually acting on package[libncurses5-dev]
ssh[2012-10-14T15:09:34+00:00] INFO: Processing package[automake] action install (clicksign-initial::default line 20)
[2012-10-14T15:09:34+00:00] INFO: Processing package[libtool] action install (clicksign-initial::default line 20)
[2012-10-14T15:09:40+00:00] INFO: Processing package[bison] action install (clicksign-initial::default line 20)
[2012-10-14T15:09:45+00:00] INFO: Processing package[redis-server] action install (clicksign-initial::default line 20)
[2012-10-14T15:09:49+00:00] INFO: Processing package[monit] action install (monit::default line 1)
[2012-10-14T15:09:54+00:00] INFO: Processing cookbook_file[/etc/default/monit] action create (monit::default line 4)
[2012-10-14T15:09:54+00:00] INFO: cookbook_file[/etc/default/monit] backed up to /var/chef/backup/etc/default/monit.chef-20121014150954
[2012-10-14T15:09:54+00:00] INFO: cookbook_file[/etc/default/monit] owner changed to 0
[2012-10-14T15:09:54+00:00] INFO: cookbook_file[/etc/default/monit] group changed to 0
[2012-10-14T15:09:54+00:00] INFO: cookbook_file[/etc/default/monit] mode changed to 644
[2012-10-14T15:09:54+00:00] INFO: cookbook_file[/etc/default/monit] created file /etc/default/monit
[2012-10-14T15:09:54+00:00] INFO: Processing service[monit] action enable (monit::default line 12)
[2012-10-14T15:09:54+00:00] INFO: Processing service[monit] action start (monit::default line 12)
[2012-10-14T15:09:55+00:00] INFO: Processing template[/etc/monit/monitrc] action create (monit::default line 18)
[2012-10-14T15:09:55+00:00] INFO: template[/etc/monit/monitrc] backed up to /var/chef/backup/etc/monit/monitrc.chef-20121014150955
[2012-10-14T15:09:55+00:00] INFO: template[/etc/monit/monitrc] updated content
[2012-10-14T15:09:55+00:00] INFO: template[/etc/monit/monitrc] owner changed to 0
[2012-10-14T15:09:55+00:00] INFO: template[/etc/monit/monitrc] group changed to 0
[2012-10-14T15:09:55+00:00] INFO: template[/etc/monit/monitrc] mode changed to 700
[2012-10-14T15:09:55+00:00] INFO: Processing directory[/etc/monit/conf.d/] action create (monit::default line 26)
[2012-10-14T15:09:55+00:00] INFO: Processing package[curl] action install (elasticsearch::curl line 1)
[2012-10-14T15:09:55+00:00] INFO: Processing package[unzip] action install (ark::default line 22)
[2012-10-14T15:09:59+00:00] INFO: Processing group[elasticsearch] action create (elasticsearch::default line 8)
[2012-10-14T15:09:59+00:00] INFO: group[elasticsearch] created
[2012-10-14T15:09:59+00:00] INFO: Processing user[elasticsearch] action create (elasticsearch::default line 12)
[2012-10-14T15:09:59+00:00] INFO: user[elasticsearch] created
[2012-10-14T15:09:59+00:00] INFO: Processing bash[remove the elasticsearch user home] action run (elasticsearch::default line 22)
[2012-10-14T15:09:59+00:00] INFO: Processing directory[/usr/local/etc/elasticsearch] action create (elasticsearch::default line 31)
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/etc/elasticsearch] created directory /usr/local/etc/elasticsearch
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/etc/elasticsearch] owner changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/etc/elasticsearch] group changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/etc/elasticsearch] mode changed to 755
[2012-10-14T15:09:59+00:00] INFO: Processing directory[/usr/local/var/data/elasticsearch] action create (elasticsearch::default line 31)
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/data/elasticsearch] created directory /usr/local/var/data/elasticsearch
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/data/elasticsearch] owner changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/data/elasticsearch] group changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/data/elasticsearch] mode changed to 755
[2012-10-14T15:09:59+00:00] INFO: Processing directory[/usr/local/var/log/elasticsearch] action create (elasticsearch::default line 31)
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/log/elasticsearch] created directory /usr/local/var/log/elasticsearch
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/log/elasticsearch] owner changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/log/elasticsearch] group changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/log/elasticsearch] mode changed to 755
[2012-10-14T15:09:59+00:00] INFO: Processing directory[/usr/local/var/run/elasticsearch] action create (elasticsearch::default line 31)
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/run/elasticsearch] created directory /usr/local/var/run/elasticsearch
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/run/elasticsearch] owner changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/run/elasticsearch] group changed to 1001
[2012-10-14T15:09:59+00:00] INFO: directory[/usr/local/var/run/elasticsearch] mode changed to 755
[2012-10-14T15:09:59+00:00] INFO: Processing template[/etc/init.d/elasticsearch] action create (elasticsearch::default line 40)
[2012-10-14T15:10:00+00:00] INFO: template[/etc/init.d/elasticsearch] updated content
[2012-10-14T15:10:00+00:00] INFO: template[/etc/init.d/elasticsearch] owner changed to 0
[2012-10-14T15:10:00+00:00] INFO: template[/etc/init.d/elasticsearch] mode changed to 755
[2012-10-14T15:10:00+00:00] INFO: Processing service[elasticsearch] action enable (elasticsearch::default line 45)
[2012-10-14T15:10:00+00:00] INFO: service[elasticsearch] enabled
[2012-10-14T15:10:00+00:00] INFO: Processing ark[elasticsearch] action install (elasticsearch::default line 52)
[2012-10-14T15:10:00+00:00] INFO: Processing remote_file[/var/chef/cache/elasticsearch.tar.gz] action create (dynamically defined)
[2012-10-14T15:10:01+00:00] INFO: remote_file[/var/chef/cache/elasticsearch.tar.gz] updated
[2012-10-14T15:10:01+00:00] INFO: Processing directory[/usr/local/elasticsearch-0.19.8] action create (dynamically defined)
[2012-10-14T15:10:01+00:00] INFO: directory[/usr/local/elasticsearch-0.19.8] created directory /usr/local/elasticsearch-0.19.8
[2012-10-14T15:10:01+00:00] INFO: directory[/usr/local/elasticsearch-0.19.8] mode changed to 755
[2012-10-14T15:10:01+00:00] INFO: Processing bash[elasticsearch] action run (dynamically defined)
[2012-10-14T15:10:02+00:00] INFO: bash[elasticsearch] ran successfully
[2012-10-14T15:10:02+00:00] INFO: Processing link[/usr/local/bin/elasticsearch] action create (dynamically defined)
[2012-10-14T15:10:02+00:00] INFO: link[/usr/local/bin/elasticsearch] created
[2012-10-14T15:10:02+00:00] INFO: Processing link[/usr/local/bin/plugin] action create (dynamically defined)
[2012-10-14T15:10:02+00:00] INFO: link[/usr/local/bin/plugin] created
[2012-10-14T15:10:02+00:00] INFO: Processing link[/usr/local/elasticsearch] action create (dynamically defined)
[2012-10-14T15:10:02+00:00] INFO: link[/usr/local/elasticsearch] created
[2012-10-14T15:10:02+00:00] INFO: Processing bash[enable user limits] action run (elasticsearch::default line 65)
[2012-10-14T15:10:02+00:00] INFO: bash[enable user limits] ran successfully
[2012-10-14T15:10:02+00:00] INFO: Processing bash[increase limits for the elasticsearch user] action run (elasticsearch::default line 75)
[2012-10-14T15:10:02+00:00] INFO: bash[increase limits for the elasticsearch user] ran successfully
[2012-10-14T15:10:02+00:00] INFO: Processing template[elasticsearch-env.sh] action create (elasticsearch::default line 89)
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch-env.sh] updated content
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch-env.sh] owner changed to 1001
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch-env.sh] group changed to 1001
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch-env.sh] mode changed to 755
[2012-10-14T15:10:02+00:00] INFO: Processing template[elasticsearch.yml] action create (elasticsearch::default line 99)
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch.yml] updated content
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch.yml] owner changed to 1001
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch.yml] group changed to 1001
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch.yml] mode changed to 755
[2012-10-14T15:10:02+00:00] INFO: template[elasticsearch.yml] not queuing delayed action restart on service[elasticsearch] (delayed), as it's already been queued
[2012-10-14T15:10:02+00:00] INFO: Processing template[/etc/monit/conf.d/elasticsearch.conf] action create (elasticsearch::default line 9)
================================================================================
Error executing action `create` on resource 'template[/etc/monit/conf.d/elasticsearch.conf]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'monit' (0.7.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/elasticsearch.conf.erb
templates/ubuntu/elasticsearch.conf.erb
templates/default/elasticsearch.conf.erb
This cookbook _does_ contain: ['postfix.conf.erb','ssh.conf.erb','monitrc.erb']
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/monit/definitions/monitrc.rb
9: template "/etc/monit/conf.d/#{params[:name]}.conf" do
10: owner "root"
11: group "root"
12: mode 0644
13: source params[:template_source]
14: cookbook params[:template_cookbook]
15: variables params[:variables]
16: notifies :restart, resources(:service => "monit"), params[:reload]
17: action :create
18: end
19: else
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/monit/definitions/monitrc.rb:9:in `block in from_file'
template("/etc/monit/conf.d/elasticsearch.conf") do
params {:action=>:enable, :reload=>:delayed, :variables=>{}, :template_cookbook=>"monit", :template_source=>"elasticsearch.conf.erb", :name=>"elasticsearch"}
provider Chef::Provider::Template
action [:create]
retries 0
retry_delay 2
path "/etc/monit/conf.d/elasticsearch.conf"
backup 5
source "elasticsearch.conf.erb"
cookbook "monit"
cookbook_name "elasticsearch"
recipe_name "default"
owner "root"
group "root"
mode 420
end
[2012-10-14T15:10:02+00:00] ERROR: Running exception handlers
[2012-10-14T15:10:02+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2012-10-14T15:10:02+00:00] ERROR: Exception handlers complete
[2012-10-14T15:10:02+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2012-10-14T15:10:02+00:00] FATAL: Chef::Exceptions::FileNotFound: template[/etc/monit/conf.d/elasticsearch.conf] (elasticsearch::default line 9) had an error: Chef::Exceptions::FileNotFound: Cookbook 'monit' (0.7.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/elasticsearch.conf.erb
templates/ubuntu/elasticsearch.conf.erb
templates/default/elasticsearch.conf.erb
This cookbook _does_ contain: ['postfix.conf.erb','ssh.conf.erb','monitrc.erb']
from elasticsearch.
I also installed the "java::openjdk".
from elasticsearch.
Hey, I think the problem will be in the monitrc
definition -- will check it with Vagrant.
from elasticsearch.
@mbbernstein @cmer So, don't know what's up with the monitrc
definition, but it works just fine for me:
-
Changed the
monit
cookbook inside Bersfile tocookbook 'monit', git: 'git://github.com/apsoto/monit.git'
-
Run
bundle exec vagrant up precise64
, everything works fine:
[Mon, 15 Oct 2012 07:11:42 +0000] INFO: Making monitrc for: elasticsearch [Mon, 15 Oct 2012 07:11:42 +0000] INFO: Processing template[/etc/monit/conf.d/elasticsearch.conf] action create (elasticsearch::default line 8) [Mon, 15 Oct 2012 07:11:42 +0000] DEBUG: Current content's checksum: [Mon, 15 Oct 2012 07:11:42 +0000] DEBUG: Rendered content's checksum: 0ae1235b94fe2cc02c507273b1dd62ea8741ed338aa2917b48cd272e7e2a3749 [Mon, 15 Oct 2012 07:11:42 +0000] INFO: template[/etc/monit/conf.d/elasticsearch.conf] mode changed to 644 [Mon, 15 Oct 2012 07:11:42 +0000] INFO: template[/etc/monit/conf.d/elasticsearch.conf] updated content
from elasticsearch.
@mbbernstein @cmer Please check out current master and report any issues -- really should work. Would like to close this issue.
from elasticsearch.
Hi,
I put this aside for now. I'll try it again in the coming weeks. Thanks for looking into it!
from elasticsearch.
Cool, I was running through the http://www.elasticsearch.org/tutorials/2012/03/21/deploying-elasticsearch-with-chef-solo.html tutorial as well, and couldn't reproduce the issue -- will close it for now, please re-open if you bump into it again, all right?
from elasticsearch.
I'm having the same issue with latest from master, getting the following error:
2013-01-05T14:40:28+00:00] INFO: Processing template[/etc/monit/conf.d/elasticsearch.conf] action create (elasticsearch::monit line 9)
================================================================================
Error executing action `create` on resource 'template[/etc/monit/conf.d/elasticsearch.conf]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'monit' (0.7.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/elasticsearch.conf.erb
templates/ubuntu/elasticsearch.conf.erb
templates/default/elasticsearch.conf.erb
This cookbook _does_ contain: ['/tmp/vagrant-chef-1/chef-solo-1/cookbooks/monit/templates/default/monitrc.erb','/tmp/vagrant-chef-1/chef-solo-1/cookbooks/monit/templates/default/ssh.conf.erb','/tmp/vagrant-chef-1/chef-solo-1/cookbooks/monit/templates/default/postfix.conf.erb']
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/monit/definitions/monitrc.rb
8: if params[:action] == :enable
9: template "/etc/monit/conf.d/#{params[:name]}.conf" do
10: owner "root"
11: group "root"
12: mode 0644
13: source params[:template_source]
14: cookbook params[:template_cookbook]
15: variables params[:variables]
16: notifies :restart, resources(:service => "monit"), params[:reload]
17: action :create
18: end
19: else
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/monit/definitions/monitrc.rb:9:in `from_file'
template("/etc/monit/conf.d/elasticsearch.conf") do
cookbook "monit"
params {:action=>:enable, :variables=>{}, :template_cookbook=>"monit", :template_source=>"elasticsearch.conf.erb", :name=>"elasticsearch", :reload=>:delayed}
mode 420
retry_delay 2
path "/etc/monit/conf.d/elasticsearch.conf"
retries 0
recipe_name "monit"
owner "root"
source "elasticsearch.conf.erb"
action [:create]
cookbook_name :elasticsearch
group "root"
backup 5
provider Chef::Provider::Template
end
Looks like it's looking for the elasticsearch.conf.erb in the monit cookbook rather than elasticsearch, does it need to specific a template_source
parameter?
from elasticsearch.
This is really annoying -- I'd very much love to debug and fix this, but the problem is that I just can't reproduce it. I have tried just now and succesfully build a Vagrant box (bundle exec vagrant up precise64
in the cookbook directory):
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: Processing log[Making monitrc for: elasticsearch] action write (elasticsearch::monit line 7)
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: Making monitrc for: elasticsearch
[Sat, 05 Jan 2013 20:48:54 +0000] DEBUG: Processing template[/etc/monit/conf.d/elasticsearch.conf] on precise64
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: Processing template[/etc/monit/conf.d/elasticsearch.conf] action create (elasticsearch::monit line 8)
[Sat, 05 Jan 2013 20:48:54 +0000] DEBUG: Current content's checksum:
[Sat, 05 Jan 2013 20:48:54 +0000] DEBUG: Rendered content's checksum: 0ae1235b94fe2cc02c507273b1dd62ea8741ed338aa2917b48cd272e7e2a3749
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: template[/etc/monit/conf.d/elasticsearch.conf] mode changed to 644
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: template[/etc/monit/conf.d/elasticsearch.conf] updated content
[Sat, 05 Jan 2013 20:48:54 +0000] INFO: template[/etc/monit/conf.d/elasticsearch.conf] not queuing delayed action restart on service[monit] (delayed), as it's already been queued
The location of the elasticsearch.conf.erb
is correct -- it should be in the Elasticsearch cookbook, that has always been the case.
The cookbook relies on the monitrc
definition from the Monit cookbook; the last change is suspicious: apsoto/monit@ed83113, but it shouldn't break things.
1/ I'm wondering if relying on the monitrc
definition is a good idea and whether it would be more robust to just create the file in the elasticsearch::monit
recipe.
2/ I'm also wondering about the error, because the elasticsearch::monit
recipe should print its own error message (see source).
3/ Is it possible you'd try to change the Elasticsearch cookbook to pass the :template_cookbook => 'elasticsearch'
and :template_source => 'elasticsearch.conf.erb'
to the monitrc
method in recipes/monit.rb
?
from elasticsearch.
I've just run bundle exec vagrant up precise64
from a clone of this repository and it worked fine (or didn't produce any errors at least). I'll try to come up with an isolated test example this week some time.
from elasticsearch.
I'm very new to chef (and Ruby) so I could be completely off the mark, but it appears the problem occurred when the elasticsearch cookbook was not the primary recipe being executed (is there such a thing? Like I said, I'm very new to this!). In my app I used it as a git submodule specified using cookbooks_path
in my Vagrantfile. As you suggested, correctly passing template_cookbook
solved the issue, although I had to change the execution of monitrc
to get it to work (don't know why, I was just following chef examples).
from elasticsearch.
Huh, so after making this change yesterday, tonight I converted my project to use Berkshelf rather than git submodules and it provisions correctly without my changes.
No idea what that suggests...
from elasticsearch.
While investigating Monit issues, pushed 42db58c -- the Monit integration actually has been relying on default template location/filename. Should work now -- added a test to Vagrant as well.
from elasticsearch.
Related Issues (20)
- Switch from Foodcritic to Cookstyle
- Systemd does not start elasticsearch with Type=notify HOT 5
- Log4j ESJsonLayout not available in ES 6.x
- Support for 6.8.10
- elasticsearch_install don't converge in idempotency state HOT 2
- cluster.initial_master_nodes HOT 3
- deprecated options jvm.options file HOT 3
- Provide support for elasticsearch-oss and custom package name install
- node.roles attribute cannot be set through configuration HOT 1
- allow package to manage it's own init.d/systemd scripts HOT 1
- plugin install fails cause of input dialog/tty
- trigger plugin remove/install when upgrading HOT 2
- Is this cookbook still maintained? HOT 2
- Entire cookbook stopped working with HOT 2
- Stop using Travis CI
- [Ubuntu 20.04] ElasticSearch_install 7.5.1 HOT 1
- Any way to override yum repo in attributes?
- support for ES 8.x? HOT 2
- Dependency Dashboard
- Allow configuration of systemd service Restart directive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch.