google bucket plugin issue

Hi All,

I’m trying to use the google bucket plugin with my Orthanc installation, but I’m stuck at the below error.

Any help in this regard will be appreciated.

Regards,
Talha

Screenshot 2021-05-18 035452.png

The entries from the log are as follows.

W0517 23:38:53.254711 PluginsManager.cpp:269] Registering plugin ‘python’ (version 3.1)
W0517 23:38:53.254741 PluginsManager.cpp:168] Python plugin is initializing
W0517 23:38:53.254920 PluginsManager.cpp:168] The option “PythonScript” is not provided: Python scripting is disabled
W0517 23:38:53.259496 PluginsManager.cpp:269] Registering plugin ‘Google Cloud Storage’ (version mainline)

Hello,

Those are not error messages, but warnings about the initialization of Orthanc that are fully normal.

Sébastien-

Thanks for the reply, but in my case the Orthanc doesn’t starts as soon as I enable the google cloud storage plugin.

Logs are as follows.

W0518 14:05:09.570890 main.cpp:1942] Orthanc version: 1.9.3
W0518 14:05:09.572250 OrthancConfiguration.cpp:117] Scanning folder “/etc/orthanc/” for configuration files
W0518 14:05:09.572823 OrthancConfiguration.cpp:66] Reading the configuration from: “/etc/orthanc/webviewer.json”
W0518 14:05:09.574797 OrthancConfiguration.cpp:66] Reading the configuration from: “/etc/orthanc/orthanc.json”
W0518 14:05:09.575781 OrthancConfiguration.cpp:66] Reading the configuration from: “/etc/orthanc/mysql.json”
W0518 14:05:09.575950 OrthancConfiguration.cpp:66] Reading the configuration from: “/etc/orthanc/worklists.json”
W0518 14:05:09.576054 OrthancConfiguration.cpp:66] Reading the configuration from: “/etc/orthanc/serve-folders.json”
W0518 14:05:09.908888 main.cpp:864] Loading plugin(s) from: /usr/share/orthanc/plugins/
W0518 14:05:09.910506 PluginsManager.cpp:269] Registering plugin ‘worklists’ (version 1.9.3)
W0518 14:05:09.910619 PluginsManager.cpp:168] Sample worklist plugin is initializing
W0518 14:05:09.911791 PluginsManager.cpp:168] Worklist server is disabled by the configuration file
W0518 14:05:09.918639 PluginsManager.cpp:269] Registering plugin ‘mysql-index’ (version 4.0)
W0518 14:05:09.922923 PluginsManager.cpp:168] The index plugin will use 1 connection(s) to the database, and will retry up to 10 time(s) in the case of a collision
W0518 14:05:09.931677 PluginsManager.cpp:269] Registering plugin ‘python’ (version 3.1)
W0518 14:05:09.931790 PluginsManager.cpp:168] Python plugin is initializing
W0518 14:05:09.932406 PluginsManager.cpp:168] The option “PythonScript” is not provided: Python scripting is disabled
W0518 14:05:09.956532 PluginsManager.cpp:269] Registering plugin ‘Google Cloud Storage’ (version mainline)

If Orthanc stops right after the line “Registering plugin ‘Google Cloud Storage’”, this means that you have incorrectly compiled the plugin, which leads to a segmentation fault while the shared library is loaded.

In particular, if you are using the Linux Standard Base binaries (those notably included in the “jodogne/orthanc-plugins:1.9.3” Docker images), your plugins must also be compiled using the Linux Standard Base SDK:
https://wiki.linuxfoundation.org/lsb/start

http://ftp.linuxfoundation.org/pub/lsb/bundles/released-5.0.0/sdk/

In your case, you should more simply rebuild Orthanc and all its plugins from sources using the compiler that comes with your GNU/Linux distribution.

Also check out this part of the Orthanc Book:
https://book.orthanc-server.com/faq/crash.html

Thanks for the prompt response, I’m running Orthanc 1.9.3 on ubuntu 20.04, I’m not using the container.

And I’ve used the below instructions to build the plugin.

Any help in this regard will be greatly appreciated.

Regards,
Talha

Google Storage plugin

Prerequisites: Install vcpkg dependencies:

$ ./vcpkg install cryptopp
$ ./vcpkg install google-cloud-cpp

Compile:

$ mkdir -p build/google
$ cd build/google
$ cmake -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake ../../orthanc-object-storage/google

As written in previous answer, you should run gdb to inspect the backtrace leading to the crash, and possibly obtain an explanation about what is going wrong:
https://book.orthanc-server.com/faq/crash.html
https://book.orthanc-server.com/faq/debugging.html

As far as I’m concerned, I don’t use vcpkg, so I can’t personally provide direct help.

Sébastien-