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/__startup__.py", line 14, in run File "/home/buh/.local/lib/python3.6/site-packages/cx_Freeze/initscripts/Console.py", line 26, in run File "run_curator.py", line 23, in <module> File "/home/buh/curator/curator/__init__.py", line 6, in <module> File "/home/buh/curator/curator/utils.py", line 1, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/__init__.py", line 24, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 4, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/transport.py", line 4, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/__init__.py", line 3, in <module> File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 2, in <module> File "/usr/local/lib/python3.6/ssl.py", line 101, in <module> ImportError: libssl.so.10: 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.
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/__init__.py", 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?
I found this link that says we should use
/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 ?
Yes, if you're using Docker then your entry point to execute should either be
/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!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.