configure lua script in linux

hello
i want to configure lua script in linux with orthanc. but i have a problem with

this is my log file

I1228 00:11:14.493753 OrthancPlugins.cpp:2753] (plugins) Plugin has registered an OnChange callback
I1228 00:11:14.493776 PluginsManager.cpp:300] (plugins) Found a shared library: “/usr/share/orthanc/plugins/libModalityWorklists.so”
W1228 00:11:14.494128 PluginsManager.cpp:258] Registering plugin ‘worklists’ (version 1.11.2)
W1228 00:11:14.494168 PluginsManager.cpp:157] Sample worklist plugin is initializing
W1228 00:11:14.494446 PluginsManager.cpp:157] Worklist server is disabled by the configuration file
W1228 00:11:14.494514 OrthancInitialization.cpp:405] SQLite index directory: “/var/lib/orthanc/db-v6”
W1228 00:11:14.494748 OrthancInitialization.cpp:504] Storage directory: “/var/lib/orthanc/db-v6”
E1228 00:11:14.494919 StatementReference.cpp:88] SQLite: database is locked (5)
W1228 00:11:14.495046 PluginsManager.cpp:208] Unregistering plugin ‘dicom-web’ (version 1.6)
W1228 00:11:14.495166 PluginsManager.cpp:208] Unregistering plugin ‘serve-folders’ (version 1.11.2)
W1228 00:11:14.495223 PluginsManager.cpp:208] Unregistering plugin ‘stone-webviewer’ (version 2.5)
W1228 00:11:14.495291 PluginsManager.cpp:208] Unregistering plugin ‘worklists’ (version 1.11.2)
W1228 00:11:14.495328 PluginsManager.cpp:157] Sample worklist plugin is finalizing
E1228 00:11:14.495379 main.cpp:2074] Uncaught exception, stopping now: [SQLite: Cannot prepare a cached statement] (code 1012)
W1228 00:11:14.495419 main.cpp:2105] Orthanc has stopped

and this is my configuration

“LuaScripts” : [
“home\omar\Script.lua”
],

“ExecuteLuaEnabled” : true,

thanks in advance

Configuration.json (39.5 KB)

Orthanc.log (11.6 KB)

Script.lua (323 Bytes)

Folder names for your Lua script do not match a Linux filesystem naming convention.
As a matter of fact, you’re using a Windows filesystem name convention.

I should be something like this:

/home/omar/Script.lua

Also note that Linux is case sensitive. In Windows there is no problem when you mix cases.

Check that the file is actually available ant the specified path by calling it from vi editor:

$ vi /home/omar/Script.lua

Nothe the lack of quotation marks. If vi editor can find and open it, Orthanc does too.

Note that this error " SQLite: database is locked (5) " in the logs likely mean that there is another Orthanc running at the same time using the same SQLite DB (which is forbidden).

HTH,

Alain.