Giter Site home page Giter Site logo

chef-kibana's Introduction

Description

Build Status

A cookbook that installs Kibana.

Kibana requires ElasticSearch index to be configured to work as per logstash requirements.

Requirements

  • Chef 11+

Platform:

  • Ubuntu 14.04, 16.04
  • CentOS 6, 7

Cookbooks:

  • build-essential
  • ark
  • apache2 (>= 2.0) (Suggested but not required)
  • authbind (Suggested but not required)
  • apt (Suggested but not required)
  • nginx (Suggested but not required)

Attributes

  • node['kibana']['version'] - Kibana major version used. Defaults to 5.
  • node['kibana']['kibana3_version'] - Kibana3 exact version.
  • node['kibana']['kibana4_version'] - Kibana4 exact version.
  • node['kibana']['kibana5_version'] - Kibana5 exact version.
  • node['kibana']['base_dir'] - The base directory of kibana. Defaults to /opt/kibana.
  • node['kibana']['user'] - The user under which Kibana is installed. Defaults to kibana.
  • node['kibana']['group'] - The group under which Kibana is installed. Defaults to kibana.
  • node['kibana']['install_method'] - Install method. Can be package or release. Defaults to release.
  • node['kibana']['url'] - Url of tarball. Defaults to https://download.elasticsearch.org/kibana/kibana/kibana-#{node['kibana']['kibana3_version']}.tar.gz.
  • node['kibana']['kibana3_checksum'] - Checksum of the tarball.
  • node['kibana']['kibana4_checksum'] - Checksum of the tarball.
  • node['kibana']['kibana5_checksum'] - Checksum of the tarball.
  • node['kibana']['git']['url'] - The URL to Kibana repository. Defaults to https://github.com/elasticsearch/kibana.git.
  • node['kibana']['git']['reference'] - The git reference in the Kibana repository. Defaults to 'v' + node['kibana']['kibana3_version'].
  • node['kibana']['rubyversion'] - The version of Ruby and Gems to use for Kibana. Defaults to 1.9.1.
  • node['kibana']['interface'] - The interface on which to bind. Defaults to 127.0.0.1.
  • node['kibana']['port'] - The port on which to bind. Defaults to 5601.
  • node['kibana']['elasticsearch']['hosts'] - An Array of the elasticsearch service hosts. Defaults to ['127.0.0.1'].
  • node['kibana']['elasticsearch']['port'] - The port of the elasticsearch http service. Defaults to 9200.
  • node['kibana']['default_fields'] - The which fields are shown by default. Defaults to ["@message"].
  • node['kibana']['default_operator'] - The operator used if no explicit operator is specified. Defaults to OR.
  • node['kibana']['config']['cookbook'] - The cookbook from which config.js template is taken. Defaults to nil.
  • node['kibana']['config']['source'] - The template from which config.js is generated from. Defaults to nil.
  • node['kibana']['highlighted_field'] - Fields specifiers which default to @message (may need to be changed for newer logstash). Defaults to @message.
  • node['kibana']['primary_field'] - Defaults to @message.
  • node['kibana']['default_index'] - Defaults to @message.
  • node['kibana']['apache']['host'] - The host to create apache vhost for. Defaults to node['fqdn'].
  • node['kibana']['apache']['interface'] - The interface on which to bind apache. Defaults to node['ipaddress'].
  • node['kibana']['apache']['basic_auth'] - Enable http auth for Apache. Defaults to off.
  • node['kibana']['apache']['basic_auth_username'] - Apache http auth username. Defaults to admin.
  • node['kibana']['apache']['basic_auth_password'] - Apache http auth password. Defaults to PLEASEchangeme.
  • node['kibana']['apache']['port'] - The port on which to bind apache. Defaults to 80.
  • node['kibana']['apache']['proxy'] - Boolean switch to enable apache search query proxy. Defaults to false.
  • node['kibana']['nginx']['port'] - The port on which to bind nginx. Defaults to 80.
  • node['kibana']['nginx']['listen_http'] - The port on which to bind nginx. Defaults to 80.
  • node['kibana']['nginx']['listen_https'] - The HTTPS port on which to bind nginx. Defaults to 443.
  • node['kibana']['nginx']['client_max_body'] - Defaults to 50M.
  • node['kibana']['nginx']['ssl'] - Boolean switch to enable SSL configuration. Defaults to false.
  • node['kibana']['nginx']['proxy'] - Boolean switch to enable nginx search query proxy. Defaults to false.
  • node['kibana']['nginx']['auth'] - Boolean switch to enable auth basic. Defaults to false.
  • node['kibana']['auth_file'] - The path to auth basic file. Defaults to /etc/nginx/htpasswd.users.
  • node['kibana']['nginx']['ssl_certificate'] - The path to the SSL certificate file. Defaults to nil.
  • node['kibana']['nginx']['ssl_certificate_key'] - The path to the SSL certificate key. Defaults to nil.
  • node['kibana']['nginx']['ssl_protocols'] - The SSL protocols. Defaults to TLSv1 TLSv1.1 TLSv1.2.
  • node['kibana']['nginx']['ssl_ciphers'] - The SSL ciphers. Defaults to ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:AES256-CGM-SHA256:ECDHE-RSA-AES256-SHA256:RC4:HIGH:!aNULL:!MD5:-LOW:-SSLv2:-EXP.
  • node['kibana']['nginx']['ssl_session_cache'] - The SSL session cache. Defaults to shared:SSL:10m.
  • node['kibana']['nginx']['ssl_session_timeout'] - The SSL session timeout. Defaults to 10m.
  • node['kibana']['nginx']['server_name'] - The virtualhost server name. Defaults to kibana.

Recipes

  • kibana::apache - Setup vhost for apache that rewrites to Kibana.
  • kibana::default - Install Kibana.
  • kibana::kibana3
  • kibana::kibana4
  • kibana::kibana5
  • kibana::nginx

kibana::apache

Setup vhost for apache that rewrites to Kibana.

kibana::default

Install Kibana.

Resources

kibana_plugin

Resource to manage plugins

Definition

resource_name :kibana_plugin

property :name, String, name_property: true
property :url, String
property :plugin_dir, String, default: ::File.join(node['kibana']['base_dir'],'current','installedPlugins')
property :kibana_home, String, default: ::File.join(node['kibana']['base_dir'],'current')
property :plugins_registry, String, default: ::File.join(node['kibana']['base_dir'],'installedPugins.json')

default_action :install

Actions

install

Install plugin if not installed

update

If plugin source changed, remove installed and install new version The resource keeps track of plugins in a json file plugins_registry in the form

{
  "foo": "http:\\path\to\foo-version.gz",
  "bar": "http:\\path\to\bar-version.gz"
}

remove

Remove plugin if already installed

Example

kibana_plugin 'foo' do
  action :update
  url 'http:\\url\to\foo-version.gz'
end

License and Maintainers

Maintainers:: Peter Donald ([email protected]), Dimitry Ryobryshkin (@cyberflow), Scott Nelson Windels ([email protected]), Michael Burns (@mburns)

License:: Apache 2.0

chef-kibana's People

Contributors

atward avatar cyberflow avatar doublerr avatar drenalin23 avatar dvinograd avatar ihorbilovus avatar informatiq avatar jolcese avatar josephholsten avatar kamaradclimber avatar kevit avatar mburns avatar milosgajdos avatar neilschelly avatar niku avatar odolbeau avatar rafaelmagu avatar realityforge avatar spajus avatar st331h0rs3 avatar vvanholl avatar wdauchy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chef-kibana's Issues

apache2 cookbook support needs to be updated

We are dependent on the apache2 cookbook for installs with apache. The supermarket cookbook has deprecated some attributes that we reference as of version 3.1 of their cookbook. We need to refactor and update to be able to take advantage of the latest version of the cookbook.

owner not correct for file tree

When installing kibana4.4.2 with this cookbook the file permissions on /opt/kibana/current/* are not set correctly. The release tarball is extracted after the recursive directory permissions are set. This can be fixed by adding "user" and "group" properties to the ark provider within recipes/kibana4.rb like this:

 version node['kibana']['kibana4_version']
 checksum node['kibana']['kibana4_checksum']
 path node['kibana']['base_dir']
  • owner node['kibana']['user']
  • group node['kibana']['group']
    home_dir File.join(node['kibana']['base_dir'], 'current')
    end
    config_path = 'current/config/kibana.yml'

Thank you,
-Terry

no build-essential

Doesn't work. require g++

[2013-05-08T12:51:18+00:00] INFO: Processing bash[kibana bundle install] action run (kibana::default line 37)

Error executing action run on resource 'bash[kibana bundle install]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '5'
---- Begin output of "bash" "/tmp/chef-script20130508-1984-16bzoy9" ----
STDOUT: Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing rake (10.0.4)
Installing daemons (1.1.9)
Installing diff-lcs (1.1.3)
Installing eventmachine (1.0.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb 

checking for main() in -lssl... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile

make
compiling cmain.cpp
make: g++: Command not found
make: *** [cmain.o] Error 127

Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-1.0.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/eventmachine-1.0.0/ext/gem_make.out
An error occurred while installing eventmachine (1.0.0), and Bundler cannot
continue.
Make sure that gem install eventmachine -v '1.0.0' succeeds before bundling.
STDERR:
---- End output of "bash" "/tmp/chef-script20130508-1984-16bzoy9" ----
Ran "bash" "/tmp/chef-script20130508-1984-16bzoy9" returned 5

Resource Declaration:

In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/kibana/recipes/default.rb

37: bash 'kibana bundle install' do
38: cwd node['kibana']['base_dir']
39: code 'bundle install'
40: end
41:

Compiled Resource:

Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/kibana/recipes/default.rb:37:in `from_file'

bash("kibana bundle install") do
action "run"
retries 0
retry_delay 2
command ""bash" "/tmp/chef-script20130508-1984-16bzoy9""
backup 5
cwd "/opt/kibana"
returns 0
code "bundle install"
interpreter "bash"
cookbook_name :kibana
recipe_name "default"
end

support Kibana 5.x

Trying to deploy Kibana 5.x using this cookbook; so far not succesfull...

What would be the best approach? Create a wrapper cookbook? cp + modify the whole? fork/add/PR?

Undefined node attribute or method 'crypt' when using kibana::apache

Trying to call kibana::apache (after changing node['kibana']['version'] to '3') results in the aforementioned error from Chef.

Full trace:

Recipe: kibana::apache
  * template[/etc/apache2/htpasswd] action create
    - create new file /etc/apache2/htpasswd
================================================================================
Error executing action `create` on resource 'template[/etc/apache2/htpasswd]'
================================================================================


Chef::Mixin::Template::TemplateError
------------------------------------
Undefined node attribute or method `crypt' on `node'


Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/kibana/recipes/apache.rb

 13: template "#{node['apache']['dir']}/htpasswd" do
 14:   variables(username: node['kibana']['apache']['basic_auth_username'],
 15:             password: node['kibana']['apache']['basic_auth_password'])
 16:   owner node['apache']['user']
 17:   group node['apache']['group']
 18:   mode 00644
 19: end
 20: 



Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/kibana/recipes/apache.rb:13:in `from_file'

template("/etc/apache2/htpasswd") do
  provider Chef::Provider::Template
  action "create"
  retries 0
  retry_delay 2
  path "/etc/apache2/htpasswd"
  backup 5
  atomic_update true
  source "htpasswd.erb"
  variables {:username=>{}, :password=>{}}
  cookbook_name "kibana"
  recipe_name "apache"
  owner "www-data"
  group "www-data"
  mode 420
end



Template Context:
-----------------
on line #1
  1: <%= @username -%>:<%= @password.crypt("Zz") %>


_service.rb not compatible with rhel

The directory '/etc/init/' where this recipe tries to put the kibana.conf does not exist in RHEL/CentOS etc. Services are configured differently in RHEL land.

kibana4 in 0.1.8

Hi,

is there are reason why the kibana4 recipe is not included in version 0.1.8?
Can you release a newer version with the kibana4 recipe included?

regards
alex

Please tag your cookbook releases.

Hi,

I use a git only cookbook workflow that depends on cookbook authors tagging the releases they make to the community site in git.

I believe the revision id that matches the community release is
cf9b988

Thanks

multi versions install

it could be useful to be able to install multiple versions on the same node (kibana3 and kibana4 currently) (maybe through custom resources ?)

nginx "default" prevents forwarding to kibana4 port

Observed behavior: kibana4 is not being served from port 80, even after running recipe kibana::nginx

Analysis:

  • kibana is listening at port 5601
  • The default install of nginx includes the file "/etc/nginx/sites-enabled/default", which is a link to "/etc/nginx/sites-available/default"
  • this file specifies configuration to port 80
  • however we want the file "/etc/nginx/sites-available/kibana" to specify forwarding port 80 to 5601

To fix:

  • remove link "/etc/nginx/sites-enabled/default"

Any plan to support/switch to Kibana 3 ?

Since this cookbook is published as http://community.opscode.com/cookbooks/kibana, I'd like to know if you plan (or would accept patches) to support new major version of Kibana (http://three.kibana.org/).

Working on this upgrade, I also would try to depend on other community cookbooks, like:

Maybe consider share maintenance effort with https://github.com/lusis/chef-kibana ?

deprecated kibana v2

it make sense to continue to support kibana version 2? Because it's greatly complicates the development and maintenance of cookbook and tests.

also ruby 1.9.3

Kibana 4.4.2 doesn't start with ubuntu 14.04

in upstart log:

Error: EACCES: permission denied, open '/usr/local/kibana-4.4.2/optimize/.babelcache.json'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.writeFileSync (fs.js:1156:15)
    at save (/usr/local/kibana-4.4.2/node_modules/babel-core/lib/api/register/cache.js:35:19)
    at nextTickCallbackWith0Args (node.js:415:9)
    at process._tickDomainCallback (node.js:385:13)
    at Function.Module.runMain (module.js:443:11)
    at startup (node.js:134:18)
    at node.js:962:3

Kibana Service Error

HI Im using this cookbook with test kitchen, on the kitchen converge im getting the following error,

screen shot 2016-08-02 at 1 06 23 pm

On the second run of kitchen converge i couldn't reproduce it. converge finished successfully. But i couldnt see the kibana service running.

Helps would be appreciated.

document root incorrect when using nginx and install from release

When using install from release on kibana 3.1.2 the document root should be /opt/kibana/current. But the nginx.rb hard codes appending 'current' and 'src' to the document root. Since kibana upstream seems to be somewhat inconsistent with the structure of the git repo and released package contents it may make the most sense for the document root to be a configurable value.

/sbin/start kibana fails

seems the template becomes wrong for the upstart script in /etc/init/kibana.conf

Running ubuntu 14.04 chef 12 kibana 4.6.2 with install package it sets the exec path to
current/bin/kibana, wtich makes the upstart fail.

Kibana 2 Installation Fails

Kibana 2 installation is failing. It looks like the v0.2.0 release has disappeared from the source repo. I don't see an easy fix for this. It might force us to update to version 3.

Chef::Exceptions::UnresolvableGitReference: git[/opt/kibana] (kibana::kibana2 line 7) had an error: 
Chef::Exceptions::UnresolvableGitReference: Unable to parse SHA reference for 'v0.2.0' in repository 'https://github.com/rashidkpc/Kibana.git'

CheckSumMismatch installing kibana-3.1.0

I'm getting a checksum mismatch when installing kibana-3.1.0. Testing using chef 12.0.3 fails as below. Locking the version to 11.16.4 works fine.

Error executing action create on resource 'remote_file[/var/chef/cache/kibana-3.1.0.tar.gz]'

Chef::Exceptions::ChecksumMismatch

Checksum on resource (059a4b) does not match checksum on content (df25bc)

Resource Declaration:

In /var/chef/cache/cookbooks/ark/providers/default.rb

45: remote_file new_resource.release_file do
46: Chef::Log.debug('DEBUG: new_resource.release_file')
47: source new_resource.url
48: checksum new_resource.checksum if new_resource.checksum
49: action :create
50: notifies :run, "execute[unpack #{new_resource.release_file}]"
51: end
52:

Compiled Resource:

Declared in /var/chef/cache/cookbooks/ark/providers/default.rb:45:in `block in class_from_file'

remote_file("/var/chef/cache/kibana-3.1.0.tar.gz") do
provider Chef::Provider::RemoteFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/var/chef/cache/kibana-3.1.0.tar.gz"
backup 5
atomic_update true
source ["https://download.elasticsearch.org/kibana/kibana/kibana-3.0.0.tar.gz"]
use_etag true
use_last_modified true
declared_type :remote_file
cookbook_name "kibana"
checksum "059a4b6b507b9ff771901d12035e499b0e8d1cae7d9e5284633e19da6c294e07"
end

[2014-12-22T03:50:08+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-12-22T03:50:08+00:00] INFO: directory[/usr/local/kibana-3.1.0] sending run action to executeunpack /var/chef/cache/kibana-3.1.0.tar.gz
[2014-12-22T03:50:08+00:00] INFO: Processing execute[unpack /var/chef/cache/kibana-3.1.0.tar.gz] action run (/var/chef/cache/cookbooks/ark/providers/default.rb line 55)

Cookbook file recipes/kibana2.rb has a ruby syntax error

Below is Detail log

Environment: chef-dk v.0.2.2, berkshelf v.3.1.5

E, [2014-09-25T02:20:59.325760 #1652] ERROR -- : Cookbook file recipes/kibana2.rb has a ruby syntax error:
E, [2014-09-25T02:20:59.325860 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: syntax error, unexpected ':', expecting kEND
E, [2014-09-25T02:20:59.325910 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.325940 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.325961 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: Can't assign to true
E, [2014-09-25T02:20:59.325994 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.329957 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.329983 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: syntax error, unexpected ':', expecting '='
E, [2014-09-25T02:20:59.330004 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.330024 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.330045 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: Can't assign to true
E, [2014-09-25T02:20:59.330070 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.330090 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.330112 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: syntax error, unexpected ':', expecting '='
E, [2014-09-25T02:20:59.330133 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.330156 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.330176 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: Can't assign to true
E, [2014-09-25T02:20:59.330198 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.330218 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.330237 #1652] ERROR -- : /home/ubuntu/.berkshelf/cookbooks/kibana-0.1.8/recipes/kibana2.rb:44: syntax error, unexpected ':', expecting '='
E, [2014-09-25T02:20:59.330259 #1652] ERROR -- : supports start: true, restart: true, stop: true, status: true
E, [2014-09-25T02:20:59.330278 #1652] ERROR -- : ^
E, [2014-09-25T02:20:59.333194 #1652] ERROR -- : Ridley::Errors::CookbookSyntaxError: Invalid ruby files in cookbook: kibana (0.1.8).
E, [2014-09-25T02:20:59.333439 #1652] ERROR -- : /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef/cookbook.rb:198:in `validate'

Unable to install Kibana 3.1.0 from version 0.1.9

Getting the following error when trying to build. Last successful build was April 28, 2015.

Chef omnibus = 11.16.4

Local attributes file:

default[:kibana][:version] = '3'
default[:kibana][:kibana3_version] = '3.1.0'
default[:kibana][:checksum] = '059a4b6b507b9ff771901d12035e499b0e8d1cae7d9e5284633e19da6c294e07'
default[:nginx][:default_site_enabled] = false

Output of Test Kitchen:

   Recipe: kibana::kibana3
     * ark[kibana] action install
       * directory[/usr/local/kibana-3.1.0] action create
         - create new directory /usr/local/kibana-3.1.0
       * remote_file[/tmp/kitchen/cache/kibana-3.1.0.tar.gz] action create
         - create new file /tmp/kitchen/cache/kibana-3.1.0.tar.gz[2015-07-30T23:28:30+00:00] WARN: remote_file[/tmp/kitchen/cache/kibana-3.1.0.tar.gz] cannot be downloaded from https://download.elasticsearch.org/kibana/kibana/kibana-2-linux-x64.tar.gz: 404 "Not Found"

         ================================================================================
         Error executing action `create` on resource 'remote_file[/tmp/kitchen/cache/kibana-3.1.0.tar.gz]'
         ================================================================================

         Net::HTTPServerException
         ------------------------
         404 "Not Found"

         Resource Declaration:
         ---------------------
         # In /tmp/kitchen/cache/cookbooks/ark/providers/default.rb

   45:   remote_file new_resource.release_file do
   46:     Chef::Log.debug('DEBUG: new_resource.release_file')
   47:     source new_resource.url
   48:     checksum new_resource.checksum if new_resource.checksum
   49:     action :create

   51:   end
   52:

         Compiled Resource:
         ------------------
   # Declared in /tmp/kitchen/cache/cookbooks/ark/providers/default.rb:45:in `block in class_from_file'

         remote_file("/tmp/kitchen/cache/kibana-3.1.0.tar.gz") do

    action [:create]
    retries 0
    retry_delay 2
    guard_interpreter :default
    path "/tmp/kitchen/cache/kibana-3.1.0.tar.gz"
    backup 5
    atomic_update true
    source ["https://download.elasticsearch.org/kibana/kibana/kibana-2-linux-x64.tar.gz"]
     use_etag true
    use_last_modified true
    cookbook_name "kibana"
    checksum "059a4b6b507b9ff771901d12035e499b0e8d1cae7d9e5284633e19da6c294e07"
         end

kibana4 error

Facing this error with kibana4 recipe _service.rb

Recipe: kibana::_service

service[kibana] action start

* * Error executing action start on resource 'service[kibana]'**

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of /sbin/start kibana ----
STDOUT:
STDERR: start: Job failed to start
---- End output of /sbin/start kibana ----
Ran /sbin/start kibana returned 1

Resource Declaration:

In /var/chef/cache/cookbooks/kibana/recipes/_service.rb

3: service 'kibana' do
4: provider Chef::Provider::Service::Upstart
5: supports start: true, restart: true, stop: true, status: true
6: action :start
7: end
8:

Compiled Resource:

Declared in /var/chef/cache/cookbooks/kibana/recipes/_service.rb:3:in `from_file'

service("kibana") do
provider Chef::Provider::Service::Upstart
action [:start]
supports {:start=>true, :restart=>true, :stop=>true, :status=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "kibana"
pattern "kibana"
declared_type :service
cookbook_name "kibana"
recipe_name "_service"
end

Running handlers:
[2016-04-20T17:46:20+05:30] ERROR: Running exception handlers
Running handlers complete
[2016-04-20T17:46:20+05:30] ERROR: Exception handlers complete
Chef Client failed. 1 resources updated in 08 seconds
[2016-04-20T17:46:20+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-04-20T17:46:20+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-04-20T17:46:20+05:30] ERROR: servicekibana had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /sbin/start kibana ----
STDOUT:
STDERR: start: Job failed to start
---- End output of /sbin/start kibana ----
Ran /sbin/start kibana returned 1

Proxy templates have hardcoded attributes

Both the nginx and apache templates have hardcoded host (127.0.0.1) and/or port (9200) for the elasticsearch proxy functionality. These should refer to node['kibana']['elasticsearch']['port'] and node['kibana']['elasticsearch']['hosts']

travis builds on centos72 fail during apache2 due to incorrect service provider

It appears this is due to chef not properly setting the Provider to systemd on CentOS 7.2 while trying to apply the apache2 cookbook.

Here is an example:
https://travis-ci.org/drenalin23/chef-kibana/jobs/150800662

` Recipe: apache2::default

     * service[apache2] action enable

       * service[apache2]: unable to locate the init.d script!

       ================================================================================

       Error executing action `enable` on resource 'service[apache2]'

       ================================================================================



       Chef::Exceptions::Service

       -------------------------

       service[apache2]: unable to locate the init.d script!



       Resource Declaration:

       ---------------------

       # In /tmp/kitchen/cache/cookbooks/apache2/recipes/default.rb



       206: service 'apache2' do

       207:   service_name apache_service_name

       208:   case node['platform_family']

       209:   when 'rhel'

       210:     if node['platform_version'].to_f < 7.0

       211:       restart_command "/sbin/service #{apache_service_name} restart && sleep 1"

       212:       reload_command "/sbin/service #{apache_service_name} graceful && sleep 1"

       213:     end

       214:   when 'debian'



       Compiled Resource:

       ------------------

       # Declared in /tmp/kitchen/cache/cookbooks/apache2/recipes/default.rb:206:in `from_file'



       service("apache2") do

         action [:enable, :start]

         supports {:restart=>true, :reload=>true, :status=>true, :start=>true}

         retries 0

         retry_delay 2

         default_guard_interpreter :default

         service_name "httpd"

         pattern "apache2"

         declared_type :service

         cookbook_name "apache2"

         recipe_name "default"

         only_if "/usr/sbin/httpd -t"

       end`

Nginx config error?

It's right that in nginx config:
root /opt/kibana/current/src
Because if i install kibana3 i haven't /opt/kibana/current/src directory.

Apache config doesn't work with apache2 >= 2.4

Apache config neet directives Require all granted in location block for working. Without this directives get error: "[authz_core:error] [pid 18924] [client 1.1.1.1:17233] AH01630: client denied by server configuration: /opt/kibana/current/"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.