Curator image not working with centos 8 base image

I am trying to build curator image with centos 8 base image. Image is getting built but it is throwing below error while running:

Traceback (most recent call last): File "/home/buh/.local/lib/python3.6/site-packages/cx_Freeze/initscripts/", line 14, in run File "/home/buh/.local/lib/python3.6/site-packages/cx_Freeze/initscripts/", line 26, in run File "", line 23, in <module> File "/home/buh/curator/curator/", line 6, in <module> File "/home/buh/curator/curator/", line 1, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/", line 24, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/client/", line 4, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/", line 4, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/", line 3, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/", line 2, in <module> File "/usr/local/lib/python3.6/", line 101, in <module> ImportError: cannot open shared object file: No such file or directory

Curator version: 5.7.6-1
Base image: centos 8

Kindly help me resolve this.

Best Regards,
Akshat Sharma

Try the 5.8.1 RPM instead?

@theuntergeek Thank you for responding!
As you suggested, I tried building curator image with 5.8.1 RPM. Again, I am able to build the image but while running I am getting following error:

Fatal Python error: initfsencoding: unable to load the file system codec Traceback (most recent call last): File "/opt/python/3.7.4/lib/python3.7/encodings/", line 31, in <module> zipimport.ZipImportError: can't decompress data; zlib not available

I suspected that zlib package might not be available and installed zlib while building the image, but still facing the same issue.

Any idea how we can handle this?

Best Regards,

I found this link that says we should use /usr/bin/curator or /usr/bin/curator_cli as we upgrade to 5.8.1 RPM. Does this mean we need to change entrypoint or something?
I am a bit confused here, could you please tell me what changes will we have to make in Dockerfile with respect to this ?

Best Regards,

Yes, if you're using Docker then your entry point to execute should either be /usr/bin/curator or /usr/bin/curator_cli, as they are actually wrapper scripts that set the LD_LIBRARY_PATH. Without this being set, you will get library not available messages (like the one for zlib).

Got it working by changing the entrypoint, thanks a lot!

Best Regards,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.