WebViewer.so Error initializing plugin

Hello.

I’m using ubuntu 18.04.
Installed from the orthanc package
apt install orthanc
Everything works.
I’m trying to install from the orthanc-webviewer package
apt install orthanc-webviewer
orthanc does not work.
I see an error in the logs:

E1205 16:36:48.249298 PluginsManager.cpp:102] Error while initializing plugin /usr/share/orthanc/plugins/libOrthancWebViewer.so (code -1)
W1205 16:36:48.249505 PluginsManager.cpp:219] Unregistering plugin ‘dicom-web’ (version 0.4)
W1205 16:36:48.249591 PluginsManager.cpp:219] Unregistering plugin ‘postgresql-index’ (version 2.0)
W1205 16:36:48.249615 PluginsManager.cpp:168] PostgreSQL index is finalizing
W1205 16:36:48.249701 PluginsManager.cpp:219] Unregistering plugin ‘worklists’ (version 1.3.1)
W1205 16:36:48.249723 PluginsManager.cpp:168] Sample worklist plugin is finalizing
E1205 16:36:48.249783 main.cpp:1323] Uncaught exception, stopping now: [Error while using a shared library (plugin)] (code 25)
W1205 16:36:48.249931 main.cpp:1356] Orthanc has stopped

Hello,

I am unable to reproduce your issue under Docker:

$ docker run --rm -t -i ubuntu:18.04

apt-get update

apt-get -y install orthanc orthanc-webviewer

/usr/sbin/Orthanc /etc/orthanc/

W1205 13:21:40.334797 main.cpp:1297] Orthanc version: 1.3.1
[…]
W1205 13:21:40.388564 PluginsManager.cpp:269] Registering plugin ‘web-viewer’ (version 2.3)

W1205 13:21:40.388626 PluginsManager.cpp:168] Initializing the Web viewer
[…]

W1205 13:21:40.728096 main.cpp:682] Orthanc has started

So, everything seems to work fine on a fresh Ubuntu 18.04 install.

HTH,
Sébastien-

You might want to perform an ldd on /usr/share/orthanc/plugins/libOrthancWebViewer.so to check for potentially missing dependencies,

That could give you a hint at what has been changed on your system, compared to the fresh install Sébastien used to perform the test.

After that, you can maybe use apt find to locate the package containing the missing file.

HTH.

Hello.
It turns out everything worked.
I tried to change the path to the file storage without transferring the files that created webviewer