Skip to content

Unable to install kibana plugins #357

@mymasse

Description

@mymasse

Using logsearch-boshrelease and logsearch-for-cloudfoundry version 211.1.0

We have created a bosh release with ES and Kibana plugins and are trying to deploy these. This seemed to have worked for the ES plugins but not for the Kibana plugins.

Our bosh release makes the plugins available in /var/vcap/packages/es-7.6.1-plugins and we wrote an ops file to add the Kibana plugins in the cf-kibana jobs with this

- type: replace
  path: /instance_groups/name=maintenance/jobs/name=cf-kibana/properties/cf-kibana/plugings?
  value:
    - alerting_kibana: file:///var/vcap/packages/es-7.6.1-plugins/alerting-kibana.zip

When running bosh -d logsearch run-errand cf-kibana we get

In the Stdout:

Attempting to transfer from file:///var/vcap/packages/es-7.6.1-plugins/alerting-kibana.zip
Transferring 8122569 bytes...............
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete

In the Stderr:

+ /var/vcap/data/tmp/kibana/bin/kibana-plugin install file:///var/vcap/packages/es-7.6.1-plugins/alerting-kibana.zip --allow-root
Plugin installation was unsuccessful due to error "Cannot delete files/directories outside the current working directory. Can be overridden with the 'force' option."

Note that also if our ops files contains only /var/vcap/packages/es-7.6.1-plugins/alerting-kibana.zip instead of file:///var/vcap/packages/es-7.6.1-plugins/alerting-kibana.zip this fails with: Kibana should not be run as root. Use --allow-root to continue. Which is why we prefixed our path with file:// so that it would hit the line to install the plugins with --allow-root

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions