Bug 8 - Error while initializing plugin /usr/share/orthanc/plugins/libOrthancWebViewer.so
Summary: Error while initializing plugin /usr/share/orthanc/plugins/libOrthancWebViewe...
Status: RESOLVED INVALID
Alias: None
Product: Orthanc
Classification: Unclassified
Component: Orthanc Core (show other bugs)
Version: unspecified
Hardware: All All
: --- normal
Assignee: Sébastien Jodogne
URL:
Depends on:
Blocks:
 
Reported: 2020-06-29 15:11 CEST by Sébastien Jodogne
Modified: 2020-06-29 15:18 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Jodogne 2020-06-29 15:11:14 CEST
[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
```
Comment 1 Sébastien Jodogne 2020-06-29 15:18:45 CEST
[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.
Comment 2 Sébastien Jodogne 2020-06-29 15:18:46 CEST
[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.
Comment 3 Sébastien Jodogne 2020-06-29 15:18:47 CEST
[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.