Fail to register Postgres plugin (Inexistent path to plugins)

260 views
Skip to first unread message

Paolo Trifiletti

unread,
Feb 7, 2016, 6:16:14 PM2/7/16
to Orthanc Users
Dear All, 
my best compliments to the developers of Orthanc. This seems to be a very promising PACS!
I am testing a Orthanc installation into Docker under linux Ubuntu 15.10 64bits. I would like to setup a PostgresSQL backend and I successfully compiled the two libraries: 

/var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so

/var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so


I also properly configured the conf file /var/orthanc.json  adding the following lines:

 "Plugins" : [

//"/usr/share/orthanc/plugins", "/usr/local/share/orthanc/plugins",

  "/var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so",

  "/var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so"

                   ],


but once started, the server doesn't register the plugin and the log file /var/OrthancLogs/orthanc_supervisor.log shows:


W0206 08:07:49.052984 main.cpp:618] Loading plugin(s) from: /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so

E0206 08:07:49.053572 PluginsManager.cpp:237] Inexistent path to plugins: /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so

W0206 08:07:49.054666 main.cpp:618] Loading plugin(s) from: /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so

E0206 08:07:49.055161 PluginsManager.cpp:237] Inexistent path to plugins: /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so


Could anyone help me in solving this issue?


Thanks  a lot


All the bests


Paolo


Алексей Мамаев

unread,
Feb 8, 2016, 1:19:54 AM2/8/16
to Orthanc Users


Hello,

Yesterday I spent on it a certain amount of time. Probably the problem is in the rule of writing in line .json file

I have attached a picture of a fragment of a file.





You can share the experience of compiling plug-ins?




понедельник, 8 февраля 2016 г., 3:16:14 UTC+4 пользователь Paolo Trifiletti написал:

Sébastien Jodogne

unread,
Feb 8, 2016, 2:21:05 AM2/8/16
to Orthanc Users
Hello,

This is most probably due to the fact that the Orthanc process is not allowed to read the shared libraries containing the plugins.

Check the permissions of your ".so" files, and make sure that these permissions allow the user running Orthanc to access the files:

# ls -l /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so
# ls -l /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so

Regards,
Sébastien-

Paolo Trifiletti

unread,
Feb 9, 2016, 5:21:33 PM2/9/16
to Orthanc Users
Dear Sebastien,

thanks a lot for your feedback, I set the files rwx:

paolo@ubuntu:/etc/orthanc$ ps -aef | grep orthanc

root      2333  1187  0 23:06 ?        00:00:00 sudo docker run -p :4242 -p 80:8042 --rm -v /var/OrthancStorage:/var/lib/orthanc/db -v /var/orthanc.json:/etc/orthanc/orthanc.json:ro osimis/orthanc-webviewer-plugin:latest

root      2334  2333  0 23:06 ?        00:00:00 docker run -p :4242 -p 80:8042 --rm -v /var/OrthancStorage:/var/lib/orthanc/db -v /var/orthanc.json:/etc/orthanc/orthanc.json:ro osimis/orthanc-webviewer-plugin:latest

root      2360   828  0 23:06 ?        00:00:00 Orthanc /etc/orthanc/orthanc.json

paolo     2526  1527  0 23:14 pts/0    00:00:00 grep --color=auto orthanc

paolo@ubuntu:/etc/orthanc$ ls -l /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so

lrwxrwxrwx 1 root root 32 feb  6 07:34 /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLIndex.so -> libOrthancPostgreSQLIndex.so.2.0

paolo@ubuntu:/etc/orthanc$ ls -l /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so

lrwxrwxrwx 1 root root 34 feb  6 07:34 /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so -> libOrthancPostgreSQLStorage.so.2.0


but unfortunately the problem persist and the log is still showing:


E0206 08:07:49.053572 PluginsManager.cpp:237] Inexistent path to plugins: /var/OrthancPostgreSQL-2.0/Build/libOrthancPostgreSQLStorage.so


Any suggestion?


Thanks 


Paolo

Raúl Alexis Betancor Santana

unread,
Feb 9, 2016, 6:45:57 PM2/9/16
to Paolo Trifiletti, Orthanc Users
Just a question ... what is the advantage of running docker on that escenario ? ... have you tryed to launch it directly?

Paolo Trifiletti

unread,
Feb 10, 2016, 1:15:52 AM2/10/16
to Orthanc Users, paolo.tr...@gmail.com
I'm just in a test environment, not yet in production. The advantage is that I can use the latest Orthanc version and don't have to wait until the official packages become available. I don't tried to launch I directly, but I think that it should work anyway...

Sébastien Jodogne

unread,
Feb 10, 2016, 2:20:48 AM2/10/16
to Orthanc Users, paolo.tr...@gmail.com
Hello,

This process cannot work, as you mix the filesystem of the Docker container and that of your host computer. According to your logs, your shared libraries (*.so) are located on the host, and are thus not available inside Docker.

The steps to use the plugins inside Docker (including the PostgreSQL one) are documented on the GitHub repository:

Regards,
Sébastien-

Raúl Alexis Betancor Santana

unread,
Feb 10, 2016, 5:13:24 AM2/10/16
to Paolo Trifiletti, Orthanc Users
Every time someone tell me that they use it for testing ... they have problems ... from my point of view, testing enviroments should be automated ... so they should not produce errors like the one you have.
But thats only my opinion ... I have full-virtualized enviroment for testing, not just a proc.

Alain Mazy

unread,
Feb 10, 2016, 10:46:54 AM2/10/16
to Paolo Trifiletti, Orthanc Users
Hi Paolo,

I have upgraded the osimis/orthanc-webviewer-plugin docker image such that it now contains all the default plugins as well (including postgres).

I have also updated the install procedure
if you want to test it with postgresql, just set the script variable enablePostgresql to 1.



Alain.

--

Alain Mazy / CTO 
a...@osimis.io / +32 494 31 67 27

OSIMIS S.A.

OSIMIS S.A. 
Rue bois Saint-Jean 15/1BE-4102 Seraing 
www.osimis.io

Twitter LinkedIn


Reply all
Reply to author
Forward
0 new messages