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
Init script can't start #390
Comments
This is on the 1.2.0 release from supermarket |
Hello! We have a branch going that we're about to release -- named |
Thanks, I tried the 2.0.0_wip branch with the same results. ---
driver:
name: vagrant
network:
- ["forwarded_port", { guest: 9200, host: 9200 }]
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt]
suites:
- name: default
run_list:
- recipe[java]
- recipe[nd-elasticsearch::default]
attributes:
java:
install_flavor: "oracle"
jdk_version: "8"
oracle:
accept_oracle_download_terms: true elasticsearch_user 'elasticsearch' do
username 'elasticsearch'
groupname 'elasticsearch'
shell '/bin/sh'
comment 'Elasticsearch User'
action :create
end
elasticsearch_install 'nd-elasticsearch' do
type :package
version "2.0.0"
action :install
end
elasticsearch_configure 'nd-elasticsearch' do
allocated_memory '123m'
thread_stack_size '512k'
gc_settings <<-CONFIG
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails
CONFIG
configuration ({
'cluster.name' => node['nd-elasticsearch']['config']['cluster_name']
})
action :manage
end
elasticsearch_service 'elasticsearch' do
service_actions [:enable, :start]
end #Berksfile
source "https://supermarket.getchef.com"
metadata
cookbook 'elasticsearch', github: "elastic/cookbook-elasticsearch", branch: "2.0.0_wip"
cookbook 'apt'
cookbook 'java' It gives the same error
If I skip the
You can tell if using the package init script vs the cookbook init script by the colors they show. Cookbook init script: (not working) |
Thank you for that thorough documentation; it's weird, since we took the init scripts from the packages. I'll have to look and see if they've been updated and also run our test suite and see if it fails (it was working last I checked). |
@spuder So just running through the test suite for ubuntu-1404 on |
I've copied both init scripts here. https://gist.github.com/spuder/6e7a69f7f9d98c0548c7 To reproduce you can setup test kitchen. Run a converge with the following commented out in the recipe.
Then elasticsearch service will have the purple colors and will work. Then uncomment those lines and converge again, thew new script will be created with the yellow coloring and won't start properly. I'm 90% sure that I'm using the 2.0.0_wip branch. |
@spuder That's definitely the old/master branch's init script. |
😐 User error. Apparently adding to the Berksfile isn't enough. I had to delete the Berksfile.lock and then Thanks for the help. |
The init script provided in the cookbook appears to be different than the one in the repo.
Adding this to the cookbook causes elasticsearch to not start
This is based off of the examples in the tests directory and the readme
The text was updated successfully, but these errors were encountered: