Issue8

Title Error while initializing plugin /usr/share/orthanc/plugins/libOrthancWebViewer.so
Priority bug Status resolved
Superseder Nosy List admin
Assigned To
Keywords Orthanc Core

Created on 2015-12-17.01:14:35 by admin, last changed by admin.

Messages
msg27 (view) Author: admin Date: 2015-12-17.01:14:35
[BitBucket user: Alex Rothberg]
[BitBucket date: 2015-12-17.00:14:35]

I am seeing the following:

```
#!

W1217 00:08:25.889142 PluginsManager.cpp:167] Web viewer using 1 threads for the decoding of the DICOM images
W1217 00:08:25.889155 PluginsManager.cpp:167] Storing the cache of the Web viewer in folder: /var/lib/orthanc/db/WebViewerCache
E1217 00:08:25.889530 PluginsManager.cpp:163] SQLite: Cannot prepare a cached statement
E1217 00:08:25.889551 PluginsManager.cpp:101] Error while initializing plugin /usr/share/orthanc/plugins/libOrthancWebViewer.so (code -1)
W1217 00:08:25.889679 PluginsManager.cpp:214] Unregistering plugin 'dicom-web' (version mainline)
W1217 00:08:25.892575 PluginsManager.cpp:214] Unregistering plugin 'postgresql-index' (version mainline)
W1217 00:08:25.892593 PluginsManager.cpp:167] PostgreSQL index is finalizing
W1217 00:08:25.892623 PluginsManager.cpp:214] Unregistering plugin 'postgresql-storage' (version mainline)
W1217 00:08:25.892637 PluginsManager.cpp:167] Storage plugin is finalizing
E1217 00:08:25.892690 main.cpp:1169] Uncaught exception, stopping now: [Error while using a shared library (plugin)] (code 25)
W1217 00:08:25.892886 main.cpp:1202] Orthanc has stopped
```
msg28 (view) Author: admin Date: 2015-12-17.01:16:55
[BitBucket user: Alex Rothberg]
[BitBucket date: 2015-12-17.00:16:55]

I just upgraded docker image from 0.9.4 to latest.
This looks like some issue with my DB. I start with:
```
docker run   -p 4242:4242 -p 8042:8042 -v /data2/orthanc:/var/lib/orthanc/db  -v /home/ubuntu/orthanc.json:/etc/orthanc/orthanc.json:ro jodogne/orthanc-plugins /etc/orthanc/orthanc.json --verbose
```
If I remove ` -v /data2/orthanc:/var/lib/orthanc/db`, the server start.
msg29 (view) Author: admin Date: 2015-12-17.06:22:19
[BitBucket user: Alex Rothberg]
[BitBucket date: 2015-12-17.05:22:19]

Okay. It appears I somehow corrupted the SQLite file. I was able to recover by performing a dump of the SQLite file (index) and then restoring.
msg30 (view) Author: admin Date: 2015-12-17.09:24:57
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2015-12-17.08:24:57]

OK, as the problem is not inside Orthanc, I now close the issue.
History
Date User Action Args
2026-07-29 15:51:18admincreate