# ERROR Orthanc S3 Plugin in Docker

**URL:** <https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996>\
**Category:** Google Groups archive\
**Created:** [July 18, 2022, 8:08am UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996 "2022-07-18T08:08:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/u/Anat_Tal_Gagnon)\
**Post date:** [July 18, 2022, 8:08am UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/1 "2022-07-18T08:08:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/u/Anat_Tal_Gagnon)\
**Post date:** [July 18, 2022, 8:11am UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/2 "2022-07-18T08:11:42Z")

</div>

This is currently my Dockerfile - all the RUN stuff were added to accommodate the error with no luck

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [July 18, 2022, 11:55am UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/3 "2022-07-18T11:55:58Z")

</div>

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:  
[https://book.orthanc-server.com/users/docker-osimis.html](https://book.orthanc-server.com/users/docker-osimis.html)

Regards,  
Sébastien-

---

<div class="post-metadata">

**Author:** ![Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/u/Anat_Tal_Gagnon)\
**Post date:** [July 18, 2022, 12:20pm UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/4 "2022-07-18T12:20:13Z")

</div>

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](https://book.orthanc-server.com/plugins/object-storage.html),  
what adjustments do I need to make to my plugin LSB?

---

<div class="post-metadata">

**Author:** ![Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/u/Anat_Tal_Gagnon)\
**Post date:** [July 18, 2022, 12:21pm UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/5 "2022-07-18T12:21:27Z")

</div>

Also can you give your 2 cents about differences between Osimis dockers and jodogne dockers?

---

<div class="post-metadata">

**Author:** ![Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Anat\_Tal\_Gagnon](https://discourse.orthanc-server.org/u/Anat_Tal_Gagnon)\
**Post date:** [July 18, 2022, 12:51pm UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/6 "2022-07-18T12:51:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)\
**Post date:** [July 18, 2022, 1:16pm UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/7 "2022-07-18T13:16:54Z")

</div>

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:](https://book.orthanc-server.com/users/docker-osimis.html?highlight=osimis%20docker#plugins:)

AWS\_S3\_STORAGE\_PLUGIN\_ENABLED

Stephen D. Scotti

---

<div class="post-metadata">

**Author:** ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)\
**Post date:** [July 18, 2022, 1:17pm UTC](https://discourse.orthanc-server.org/t/error-orthanc-s3-plugin-in-docker/2996/8 "2022-07-18T13:17:50Z")

</div>

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”:  
[https://book.orthanc-server.com/users/docker-osimis.html](https://book.orthanc-server.com/users/docker-osimis.html)

You can find “Orthanc setup samples”, including for AWS, at the following address:  
[https://bitbucket.org/osimis/orthanc-setup-samples/](https://bitbucket.org/osimis/orthanc-setup-samples/)

2- For a description of the differences between “jodogne/orthanc” and “osimis/orthanc”, also check out the Orthanc Book:

[https://book.orthanc-server.com/users/docker.html](https://book.orthanc-server.com/users/docker.html)
