ERROR Orthanc S3 Plugin in Docker

208 views
Skip to first unread message

Anat Tal Gagnon

unread,
Jul 18, 2022, 4:08:27 AM7/18/22
to Orthanc Users
Hi all!
I compiled libOrthancAwsS3Storage.so, and trying to load it into Docker image jodogne/orthanc-python:1.11.0.

Upon docker run I'm getting this error libboost_filesystem.so.1.71.0:

E0718 08:03:55.374685 SharedLibrary.cpp:98] dlopen(/usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so) failed: Error libboost_filesystem.so.1.71.0: cannot open shared object file: No such file or directory

I understand something is missing from the image, I tried adding RUN command to the Dockerfile to install libboost-all-dev

but so far no luck!
Any help would be greatly appreceated!

Thanks, anat

Anat Tal Gagnon

unread,
Jul 18, 2022, 4:11:42 AM7/18/22
to Orthanc Users
This is currently my Dockerfile - all the RUN stuff were added to accommodate the error with no luck

------------------------------------------------------------

FROM jodogne/orthanc-python:1.11.0
RUN apt-get update && \
    apt-get install -qy apt-utils && \
    apt-get install -qy  \
    build-essential git mercurial cmake \
    coreutils xz-utils zip unzip wget \
    libssl-dev  zlib1g-dev \
    libgnutls30 \
    libboost-all-dev
COPY orthanc.json /etc/orthanc/orthanc.json
COPY libOrthancAwsS3Storage.so /usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so

Sébastien Jodogne

unread,
Jul 18, 2022, 7:55:58 AM7/18/22
to Orthanc Users
Hello,

Your "libOrthancAwsS3Storage.so" is incompatible with "jodogne/orthanc-python:1.11.0" because this is *not* a LSB (Linux Standard Base) binary.

You'll have to use the Osimis Docker images:

Regards,
Sébastien-

Anat Tal Gagnon

unread,
Jul 18, 2022, 8:20:14 AM7/18/22
to Orthanc Users
Thanks  Sébastien!!

I got the source code and followed the instructions from the Orthanc book here https://book.orthanc-server.com/plugins/object-storage.html
what adjustments do I need to make to my plugin LSB?

Anat Tal Gagnon

unread,
Jul 18, 2022, 8:21:28 AM7/18/22
to Orthanc Users
Also can you give your 2 cents about differences between Osimis dockers and  jodogne dockers?

Anat Tal Gagnon

unread,
Jul 18, 2022, 8:51:53 AM7/18/22
to Orthanc Users
Still no luck!

updated Dockerfile:

FROM osimis/orthanc:22.7.0-full
RUN apt-get update && apt-get install -qy libjsoncpp-dev

COPY orthanc.json /etc/orthanc/orthanc.json
COPY libOrthancAwsS3Storage.so /usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so


E0718 12:50:48.666387 SharedLibrary.cpp:98] dlopen(/usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so) failed: Error libjsoncpp.so.1: cannot open shared object file: No such file or directory

Stephen Douglas Scotti

unread,
Jul 18, 2022, 9:16:54 AM7/18/22
to Orthanc Users
I don't use that plug-in, but I believe it is bundled with the Osimis Docker Images and is found in:

/usr/share/orthanc/plugins-available in the Docker container.

You should not need to copy the .so, you should only need to enable it in the docker-compose.yml file if you are using that method.

See:  https://book.orthanc-server.com/users/docker-osimis.html?highlight=osimis%20docker#plugins

AWS_S3_STORAGE_PLUGIN_ENABLED

Stephen D. Scotti


Sébastien Jodogne

unread,
Jul 18, 2022, 9:17:50 AM7/18/22
to Orthanc Users
1- "libOrthancAwsS3Storage.so" is already part of "osimis/orthanc", so you don't have to install them. As explained in the documentation, you must simply set the environment variable "AWS_S3_STORAGE_PLUGIN_ENABLED" to "true":

You can find "Orthanc setup samples", including for AWS, at the following address:

2- For a description of the differences between "jodogne/orthanc" and "osimis/orthanc", also check out the Orthanc Book:
Reply all
Reply to author
Forward
0 new messages