Cannot start elasticsearch when install plugin
anhndh-vbee opened this issue · 0 comments
`FROM docker.elastic.co/elasticsearch/elasticsearch:8.7.0
USER root
COPY libcoccoc_tokenizer_jni.so /usr/local/lib/
RUN mkdir -p /usr/local/share/tokenizer/dicts &&
ln -sf /usr/local/lib/libcoccoc_tokenizer_jni.so /usr/lib/libcoccoc_tokenizer_jni.so &&
chmod -R 755 /usr/local/share/tokenizer
COPY dicts/* /usr/local/share/tokenizer/dicts
USER elasticsearch
COPY elasticsearch-analysis-vietnamese-8.7.0.zip /usr/share/elasticsearch/
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:///usr/share/elasticsearch/elasticsearch-analysis-vietnamese-8.7.0.zip &&
/usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-icu
`
this is my dockerfile to install this plugin and i receive this error when start elasticsearch
error.message: /usr/local/lib/libcoccoc_tokenizer_jni.so: /lib/x86_64-linux-gnu/libstdc++.so.6: version
GLIBCXX_3.4.29' not found (required by /usr/local/lib/libcoccoc_tokenizer_jni.so)`
when i check
strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
or
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
it show version GLIBCXX_3.4.29