PostgreSQL plugins on Windows

228 views
Skip to first unread message

blakep...@gmail.com

unread,
Nov 15, 2016, 6:55:21 PM11/15/16
to Orthanc Users
Where do I put these 2 plugins?:

OrthancPostgreSQL-2.0-Index.dll
OrthancPostgreSQL-2.0-Storage.dll

Do I put them in:
C:\Orthanc
or
C:\Program Files (x86)\Orthanc\Orthanc Server 1.1.0

This is my config:

// List of paths to the custom Lua scripts that are to be loaded
// into this instance of Orthanc
"LuaScripts" : [
],
"PostgreSQL" : {
"EnableIndex" : true,
"EnableStorage" : true,
"Host" : "localhost",
"Port" : 5432,
"Database" : "postgres",
"Username" : "postgres",
"Password" : "*****"
},
// List of paths to the plugins that are to be loaded into this
// instance of Orthanc (e.g. "./libPluginTest.so" for Linux, or
// "./PluginTest.dll" for Windows). These paths can refer to
// folders, in which case they will be scanned non-recursively to
// find shared libraries.
"Plugins" : [
"c:\orthanc\OrthancPostgreSQL-2.0-Index.dll",
"c:\orthanc\OrthancPostgreSQL-2.0-Storage.dll"
],

This is my error from the log:
W1115 18:52:50.790535 main.cpp:1222] Orthanc version: 1.1.0

W1115 18:52:50.790535 OrthancInitialization.cpp:135] Reading the configuration from: "Configuration.json"

E1115 18:52:50.790535 OrthancInitialization.cpp:148] The configuration file does not follow the JSON syntax: "Configuration.json"

E1115 18:52:50.790535 main.cpp:1247] Uncaught exception, stopping now: [Cannot parse a JSON document] (code 28)

W1115 18:52:50.837335 main.cpp:1280] Orthanc has stopped

Thanks for your help

ayush...@gmail.com

unread,
Nov 15, 2016, 10:27:05 PM11/15/16
to Orthanc Users
AFAIK you need to place them in the base folder wherever your OrthanC is installed. So basically wherever your OrthanC.exe is, that's where your plugins need to be.
Message has been deleted

JBH

unread,
Nov 15, 2016, 11:28:05 PM11/15/16
to Orthanc Users, ayush...@gmail.com
What do I put for the plugins path?

ayush...@gmail.com

unread,
Nov 15, 2016, 11:28:32 PM11/15/16
to Orthanc Users, ayush...@gmail.com
"Plugins" : [
OrthancPostgreSQL-2.0-Index.dll,
OrthancPostgreSQL-2.0-Storage.dll
],

Sébastien Jodogne

unread,
Nov 19, 2016, 5:24:22 AM11/19/16
to Orthanc Users
Hello,

Your issue is here:


  "Plugins" : [
    "c:\orthanc\OrthancPostgreSQL-2.0-Index.dll",
    "c:\orthanc\OrthancPostgreSQL-2.0-Storage.dll"
   ],

This is my error from the log:
W1115 18:52:50.790535 main.cpp:1222] Orthanc version: 1.1.0

W1115 18:52:50.790535 OrthancInitialization.cpp:135] Reading the configuration from: "Configuration.json"

E1115 18:52:50.790535 OrthancInitialization.cpp:148] The configuration file does not follow the JSON syntax: "Configuration.json"


You have to escape the backslashes "\" as "\\". Otherwise, you don't respect the JSON syntax.

As an alternative to avoid this syntax error, you could also replace all the backslashes "\" by forward-slashes "/".

HTH,
Sébastien-

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

unread,
Dec 29, 2016, 3:15:08 AM12/29/16
to Orthanc Users
When you install Orthanc on Windows I had problems running plug-ins.
Give an example of its configuration file for those who also faced this problem.

My Orthanc was installed in the following path: F:/Orthanc/Orthanc Server 1.2.0/

Plugins added to the folder with the app installed.

It works!


// List of paths to the custom Lua scripts that are to be loaded
 
// into this instance of Orthanc
 
"LuaScripts" : [
 
],
 
"PostgreSQL" : {
   
"EnableIndex" : true,
   
"EnableStorage" : true,
   
"Host" : "localhost",
   
"Port" : 5432,
   
"Database" : "postgres",
   
"Username" : "postgres",

   
"Password" : "456945"

 
},


 
// List of paths to the plugins that are to be loaded into this
 
// instance of Orthanc (e.g. "./libPluginTest.so" for Linux, or
 
// "./PluginTest.dll" for Windows). These paths can refer to
 
// folders, in which case they will be scanned non-recursively to
 
// find shared libraries.
 
"Plugins" : [

 
"F:/Orthanc/Orthanc Server 1.2.0/OrthancDicomWeb-0.3.dll",
 
"F:/Orthanc/Orthanc Server 1.2.0/OrthancWebViewer-2.2.dll",
 
"F:/Orthanc/Orthanc Server 1.2.0/OrthancPostgreSQL-2.0-Index.dll",
 
"F:/Orthanc/Orthanc Server 1.2.0/OrthancPostgreSQL-2.0-Storage.dll"
 
],




суббота, 19 ноября 2016 г., 13:24:22 UTC+3 пользователь Sébastien Jodogne написал:
Reply all
Reply to author
Forward
0 new messages