can't install sg kibana 6.5.2 plugin

Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION

ENV KIBANA_VERSION=${KIBANA_VERSION}

ENV SG_VERSION=16

RUN apk --update add bash curl wget && \

mkdir /opt && \

curl -s https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz | tar zx -C /opt && \

apk add nodejs && \

rm -rf /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node && \

mkdir -p /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin && \

ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-${SG_VERSION}.zip" && \

rm “/opt/kibana-${KIBANA_VERSION}-linux-x86_64/config/kibana.yml” && \

rm -rf /var/cache/apk/*

``

Step 6/16 : RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*

—> Running in 6d192f9daf82

Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip

Transferring 2059942 bytes…

Transfer complete

Retrieving metadata from plugin archive

Extracting plugin archive

Extraction complete

Optimizing and caching browser bundles…

The command ‘/bin/sh -c /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*’ returned a non-zero code: 137

make: *** [image_build] Error 137

``

6.5.1 obviously works

try with “–no-optimize” like

RUN /opt/kibana-${KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/${KIBANA_VERSION}-${SG_VERSION}/search-guard-kibana-plugin-${KIBANA_VERSION}-${SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/$%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D/search-guard-kibana-plugin-$%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" --no-optimize

Another option is to give the process more memory with
NODE_OPTIONS="–max-old-space-size=8192"
(but its not working very good inside Docker)

See https://docs.search-guard.com/latest/troubleshooting-kibana#kibana-optimization-is-very-slow-stalls-or-exit-unexpectedly
``

···

On Tuesday, 11 December 2018 02:13:49 UTC+1, Roman Kournjaev wrote:

Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION

ENV KIBANA_VERSION=${KIBANA_VERSION}

ENV SG_VERSION=16

RUN apk --update add bash curl wget && \

mkdir /opt && \

curl -s https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz | tar zx -C /opt && \

apk add nodejs && \

rm -rf /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node && \

mkdir -p /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin && \

ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" && \

rm “/opt/kibana-${KIBANA_VERSION}-linux-x86_64/config/kibana.yml” && \

rm -rf /var/cache/apk/*

``

Step 6/16 : RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*

—> Running in 6d192f9daf82

Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip

Transferring 2059942 bytes…

Transfer complete

Retrieving metadata from plugin archive

Extracting plugin archive

Extraction complete

Optimizing and caching browser bundles…

The command ‘/bin/sh -c /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*’ returned a non-zero code: 137

make: *** [image_build] Error 137

``

6.5.1 obviously works

whats the meaning of --no-optimize , also the startup process of 6.5.1 with SG where it optimizes caches can take 30 min on kubernetes , is that also a known issue ?

···

On Tue, Dec 11, 2018 at 2:45 AM Search Guard info@search-guard.com wrote:

try with “–no-optimize” like

RUN /opt/kibana-${KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/${KIBANA_VERSION}-${SG_VERSION}/search-guard-kibana-plugin-${KIBANA_VERSION}-${SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/$%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D/search-guard-kibana-plugin-$%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" --no-optimize

Another option is to give the process more memory with
NODE_OPTIONS="–max-old-space-size=8192"
(but its not working very good inside Docker)

See https://docs.search-guard.com/latest/troubleshooting-kibana#kibana-optimization-is-very-slow-stalls-or-exit-unexpectedly
``

On Tuesday, 11 December 2018 02:13:49 UTC+1, Roman Kournjaev wrote:

Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION

ENV KIBANA_VERSION=${KIBANA_VERSION}

ENV SG_VERSION=16

RUN apk --update add bash curl wget && \

mkdir /opt && \

curl -s https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz | tar zx -C /opt && \

apk add nodejs && \

rm -rf /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node && \

mkdir -p /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin && \

ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" && \

rm “/opt/kibana-${KIBANA_VERSION}-linux-x86_64/config/kibana.yml” && \

rm -rf /var/cache/apk/*

``

Step 6/16 : RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*

—> Running in 6d192f9daf82

Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip

Transferring 2059942 bytes…

Transfer complete

Retrieving metadata from plugin archive

Extracting plugin archive

Extraction complete

Optimizing and caching browser bundles…

The command ‘/bin/sh -c /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*’ returned a non-zero code: 137

make: *** [image_build] Error 137

``

6.5.1 obviously works

You received this message because you are subscribed to a topic in the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.

To unsubscribe from this group and all its topics, send an email to search-guard+unsubscribe@googlegroups.com.

To post to this group, send email to search-guard@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/699516fc-eda9-4ae3-8d4b-be2799f98f12%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

If you add "--no-optimize" when installing a plugin then the optimization process (that is: webpack) is postponed to the first start of kibana server.
This work, whyever, better in Docker. The whole thing ist that the optimization process is flaky and from Search Guard perspective we cannot do anything here.
The installation of other plugins in kibana is suffering as well from this.

···

Am 11.12.2018 um 18:35 schrieb Roman Kournjaev <kournjaev@gmail.com>:

whats the meaning of `--no-optimize` , also the startup process of 6.5.1 with SG where it optimizes caches can take 30 min on kubernetes , is that also a known issue ?

On Tue, Dec 11, 2018 at 2:45 AM Search Guard <info@search-guard.com> wrote:
try with "--no-optimize" like

RUN /opt/kibana-\{KIBANA\_VERSION\}\-linux\-x86\_64/bin/kibana\-plugin install &quot;https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-${SG_VERSION}.zip" --no-optimize

Another option is to give the process more memory with
NODE_OPTIONS="--max-old-space-size=8192"
(but its not working very good inside Docker)

See https://docs.search-guard.com/latest/troubleshooting-kibana#kibana-optimization-is-very-slow-stalls-or-exit-unexpectedly

On Tuesday, 11 December 2018 02:13:49 UTC+1, Roman Kournjaev wrote:
Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION
ENV KIBANA_VERSION=\{KIBANA\_VERSION\} ENV SG\_VERSION=16 RUN apk \-\-update add bash curl wget &amp;&amp; \\ &nbsp;&nbsp;&nbsp;&nbsp;mkdir /opt &amp;&amp; \\ &nbsp;&nbsp;&nbsp;&nbsp;curl \-s https://artifacts.elastic.co/downloads/kibana/kibana-{KIBANA_VERSION}-linux-x86_64.tar.gz | tar zx -C /opt && \
    apk add nodejs && \
    rm -rf /opt/kibana-\{KIBANA\_VERSION\}\-linux\-x86\_64/node &amp;&amp; \\ &nbsp;&nbsp;&nbsp;&nbsp;mkdir \-p /opt/kibana\-{KIBANA_VERSION}-linux-x86_64/node/bin && \
    ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-\{KIBANA\_VERSION\}\-linux\-x86\_64/bin/kibana\-plugin install &quot;https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip&quot; &amp;&amp; \\ &nbsp;&nbsp;&nbsp;&nbsp;rm &quot;/opt/kibana\-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && \
    rm -rf /var/cache/apk/*

Step 6/16 : RUN /opt/kibana-\{KIBANA\_VERSION\}\-linux\-x86\_64/bin/kibana\-plugin install &quot;https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip&quot; &amp;&amp; rm &quot;/opt/kibana\-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*
---> Running in 6d192f9daf82
Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip
Transferring 2059942 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
The command '/bin/sh -c /opt/kibana-\{KIBANA\_VERSION\}\-linux\-x86\_64/bin/kibana\-plugin install &quot;https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip&quot; &amp;&amp; rm &quot;/opt/kibana\-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*' returned a non-zero code: 137
make: *** [image_build] Error 137

6.5.1 obviously works

--
You received this message because you are subscribed to a topic in the Google Groups "Search Guard Community Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/699516fc-eda9-4ae3-8d4b-be2799f98f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/CAPtxm6UC10oXowLfwGk_0atbDznryN5jm1p4qpdZbLeF_sZZjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

This is strange whenever i had it turned on during the docker build the optimization process was still performed during the startup and took like 30 min.

···

On Tue, Dec 11, 2018 at 9:43 AM SG info@search-guard.com wrote:

If you add “–no-optimize” when installing a plugin then the optimization process (that is: webpack) is postponed to the first start of kibana server.

This work, whyever, better in Docker. The whole thing ist that the optimization process is flaky and from Search Guard perspective we cannot do anything here.

The installation of other plugins in kibana is suffering as well from this.

Am 11.12.2018 um 18:35 schrieb Roman Kournjaev kournjaev@gmail.com:

whats the meaning of --no-optimize , also the startup process of 6.5.1 with SG where it optimizes caches can take 30 min on kubernetes , is that also a known issue ?

On Tue, Dec 11, 2018 at 2:45 AM Search Guard info@search-guard.com wrote:

try with “–no-optimize” like

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" --no-optimize

Another option is to give the process more memory with

NODE_OPTIONS="–max-old-space-size=8192"

(but its not working very good inside Docker)

See https://docs.search-guard.com/latest/troubleshooting-kibana#kibana-optimization-is-very-slow-stalls-or-exit-unexpectedly

On Tuesday, 11 December 2018 02:13:49 UTC+1, Roman Kournjaev wrote:

Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION

ENV KIBANA_VERSION=${KIBANA_VERSION}

ENV SG_VERSION=16

RUN apk --update add bash curl wget && \

mkdir /opt && \
curl -s [https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz](https://artifacts.elastic.co/downloads/kibana/kibana-$%7BKIBANA_VERSION%7D-linux-x86_64.tar.gz) | tar zx -C /opt && \
apk add nodejs && \
rm -rf /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node && \
mkdir -p /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin && \
ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" && \

rm "/opt/kibana-${KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && \
rm -rf /var/cache/apk/*

Step 6/16 : RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*

—> Running in 6d192f9daf82

Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip

Transferring 2059942 bytes…

Transfer complete

Retrieving metadata from plugin archive

Extracting plugin archive

Extraction complete

Optimizing and caching browser bundles…

The command ‘/bin/sh -c /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*’ returned a non-zero code: 137

make: *** [image_build] Error 137

6.5.1 obviously works

You received this message because you are subscribed to a topic in the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.

To unsubscribe from this group and all its topics, send an email to search-guard+unsubscribe@googlegroups.com.

To post to this group, send email to search-guard@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/699516fc-eda9-4ae3-8d4b-be2799f98f12%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.

To post to this group, send email to search-guard@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/CAPtxm6UC10oXowLfwGk_0atbDznryN5jm1p4qpdZbLeF_sZZjQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.

To unsubscribe from this group and all its topics, send an email to search-guard+unsubscribe@googlegroups.com.

To post to this group, send email to search-guard@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/683EC5D6-51FD-4FD5-8D57-C075502E261C%40search-guard.com.

For more options, visit https://groups.google.com/d/optout.

May be too late , not sure how much RAM your Kibana instance has, to speed up the process

export NODE_OPTIONS="–max-old-space-size=4096" .

and install the plugin

I had similar issues with X-Pack, the easy fix was to provide more heap to node process

ref: https://github.com/elastic/kibana/issues/18944

···

On Tuesday, December 11, 2018 at 10:20:58 AM UTC-8, Roman Kournjaev wrote:

This is strange whenever i had it turned on during the docker build the optimization process was still performed during the startup and took like 30 min.

On Tue, Dec 11, 2018 at 9:43 AM SG in...@search-guard.com wrote:

If you add “–no-optimize” when installing a plugin then the optimization process (that is: webpack) is postponed to the first start of kibana server.

This work, whyever, better in Docker. The whole thing ist that the optimization process is flaky and from Search Guard perspective we cannot do anything here.

The installation of other plugins in kibana is suffering as well from this.

Am 11.12.2018 um 18:35 schrieb Roman Kournjaev kour...@gmail.com:

whats the meaning of --no-optimize , also the startup process of 6.5.1 with SG where it optimizes caches can take 30 min on kubernetes , is that also a known issue ?

On Tue, Dec 11, 2018 at 2:45 AM Search Guard in...@search-guard.com wrote:

try with “–no-optimize” like

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" --no-optimize

Another option is to give the process more memory with

NODE_OPTIONS="–max-old-space-size=8192"

(but its not working very good inside Docker)

See https://docs.search-guard.com/latest/troubleshooting-kibana#kibana-optimization-is-very-slow-stalls-or-exit-unexpectedly

On Tuesday, 11 December 2018 02:13:49 UTC+1, Roman Kournjaev wrote:

Is that a know issue ?

FROM alpine:3.8

ARG KIBANA_VERSION

ENV KIBANA_VERSION=${KIBANA_VERSION}

ENV SG_VERSION=16

RUN apk --update add bash curl wget && \

mkdir /opt && \
curl -s [https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz](https://artifacts.elastic.co/downloads/kibana/kibana-$%7BKIBANA_VERSION%7D-linux-x86_64.tar.gz) | tar zx -C /opt && \
apk add nodejs && \
rm -rf /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node && \
mkdir -p /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin && \
ln -sf /usr/bin/node /opt/kibana-${KIBANA_VERSION}-linux-x86_64/node/bin/node

RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-$%7BSG_VERSION%7D.zip)" && \

rm "/opt/kibana-${KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && \
rm -rf /var/cache/apk/*

Step 6/16 : RUN /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*

—> Running in 6d192f9daf82

Attempting to transfer from https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/6.5.2-16/search-guard-kibana-plugin-6.5.2-16.zip

Transferring 2059942 bytes…

Transfer complete

Retrieving metadata from plugin archive

Extracting plugin archive

Extraction complete

Optimizing and caching browser bundles…

The command ‘/bin/sh -c /opt/kibana-{KIBANA_VERSION}-linux-x86_64/bin/kibana-plugin install "[https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/{KIBANA_VERSION}-{SG_VERSION}/search-guard-kibana-plugin-{KIBANA_VERSION}-{SG_VERSION}.zip](https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-kibana-plugin/%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D/search-guard-kibana-plugin-%7BKIBANA_VERSION%7D-%7BSG_VERSION%7D.zip)" && rm "/opt/kibana-{KIBANA_VERSION}-linux-x86_64/config/kibana.yml" && rm -rf /var/cache/apk/*’ returned a non-zero code: 137

make: *** [image_build] Error 137

6.5.1 obviously works

You received this message because you are subscribed to a topic in the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.

To unsubscribe from this group and all its topics, send an email to search-guard...@googlegroups.com.

To post to this group, send email to search...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/699516fc-eda9-4ae3-8d4b-be2799f98f12%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.

To post to this group, send email to search...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/CAPtxm6UC10oXowLfwGk_0atbDznryN5jm1p4qpdZbLeF_sZZjQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/search-guard/NPrqyyMlh0c/unsubscribe.

To unsubscribe from this group and all its topics, send an email to search-guard...@googlegroups.com.

To post to this group, send email to search...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/683EC5D6-51FD-4FD5-8D57-C075502E261C%40search-guard.com.

For more options, visit https://groups.google.com/d/optout.