When installing on Ubuntu, should we use the latest release or the least "stable" release

86 views
Skip to first unread message

Jonathan salas

unread,
Mar 22, 2019, 8:37:37 AM3/22/19
to Orthanc Users
Hello,

     I'm attempting to run Orthanc in the latest "LTS" version of Ubuntu in a VM Virtualbox and I'm a little new to working within linux.

As per this link I noticed that 1.5.6+dfsg-1 is the latest release but is marked as a "testing" build. As per instructions from Jodogne found here I installed Orthanc using # sudo apt-get install orthanc 

This downloaded and installed 1.3.1 on my machine and now I'm wondering if I'm running the correct version?

I'm also running 1.5.6 on a windows machine and am now wondering if I should be downgrading to a "stable" build for safety purposes.

Alain Mazy

unread,
Mar 22, 2019, 12:09:15 PM3/22/19
to Jonathan salas, Orthanc Users
2 solutions: 
- use Docker so you can always select the version you want.
- if you want to stay native, replace the Orthanc executables that have been installed by the ubuntu package (including .so from the plugins) by the Latest LSB releases (http://lsb.orthanc-server.com/).
--

Alain Mazy / Software Developer
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Quai Banning 6BE-4000 Liège 
www.osimis.io

Twitter LinkedIn


Jonathan salas

unread,
Mar 22, 2019, 1:16:39 PM3/22/19
to Orthanc Users
I'm still not clear on which version I "should" be using though?

Salim Kanoun

unread,
Mar 23, 2019, 2:22:42 PM3/23/19
to Orthanc Users
Dear Alain,

I tried to replace my ubuntu binaries but it doesnt work. (originally Orthanc was installed by apt-get)
I have a segmentation fault error when I try to run the last lsb package in Ubuntu Server Bionic (by the way the file are very different 2Mb vs 41Mb, I guess this is due to differences in library compilation)

Did you succeed to upgrade Orthanc this way ?

I tried to ask for a backport but I doubt I will get an answer (https://bugs.launchpad.net/bionic-backports/+bug/1819762)

Best regards,

Salim

Salim Kanoun

unread,
Mar 23, 2019, 2:23:11 PM3/23/19
to Orthanc Users
Dear Alain,

I tried to replace my ubuntu binaries but it doesnt work. (originally Orthanc was installed by apt-get)
I have a segmentation fault error when I try to run the last lsb package in Ubuntu Server Bionic (by the way the file are very different 2Mb vs 41Mb, I guess this is due to differences in library compilation)

Did you succeed to upgrade Orthanc this way ?

I tried to ask for a backport but I doubt I will get an answer (https://bugs.launchpad.net/bionic-backports/+bug/1819762)

Best regards,

Salim


Le vendredi 22 mars 2019 17:09:15 UTC+1, Alain Mazy a écrit :

Sébastien Jodogne

unread,
Mar 24, 2019, 1:14:05 PM3/24/19
to Orthanc Users
Just like any other software, you "should" always be using the latest available version:

Jonathan salas

unread,
Mar 24, 2019, 1:48:20 PM3/24/19
to Orthanc Users
I’m new to Ubuntu so please forgive me if this is an ignorant question but is there any way so make it such that I could use # sudo apt-get install orthanc to get the latest available version?

Alain Mazy

unread,
Mar 26, 2019, 5:04:43 AM3/26/19
to Salim Kanoun, Orthanc Users
Hi Salim,

We've done many updates this way on Debian.  On Ubuntu, I just tried this small test (inside a Docker container because I did not want to create a new VM):

FROM ubuntu:18.04

RUN apt-get update
RUN apt-get -y install orthanc wget

RUN Orthanc --version
# it displays 1.3.1


RUN Orthanc --version
# it displays 1.5.6

It might be repeated for each plugin but, in the end, it shall work.

Alain Mazy

unread,
Mar 26, 2019, 5:06:29 AM3/26/19
to Jonathan salas, Orthanc Users
You can't get the latest version this way because the ubuntu package is not up-to-date.  So you should either use Docker or replace the Orthanc executables with the LSB releases.

Sébastien Jodogne

unread,
Mar 26, 2019, 7:00:24 AM3/26/19
to Orthanc Users
Hello,

The 2MB vs 41MB size is due to the fact that Orthanc >= 1.5.5 features support for Asian encodings, which necessitates to ship large data arrays within the Orthanc binaries.

I confirm that the LSB binaries do not work properly on Docker running Ubuntu 18.04:

$ sudo docker run -i -t --rm --entrypoint=bash ubuntu:18.04
# apt-get update && apt-get install -y wget
# chmod +x ./Orthanc
# ./Orthanc
Segmentation fault (core dumped)

However, the same binaries run fine on Docker with Ubuntu 16.04. This might possibly be a bug within the Linux Standard Base compiler, that is based on an old version of gcc (4.8).

As a consequence, until this issue is solved, please replace Ubuntu Bionic (18.04) by Ubuntu Xenial (16.04).

Sébastien-

Salim Kanoun

unread,
Mar 26, 2019, 8:37:22 AM3/26/19
to Orthanc Users
Thanks Sebastien and Alain for your answers,

For now I changed my idea to work with the standalone app and i'm exploring the Docker install.
I think I will land with some questions about the best strategy to setup my server, but I still have to make some testing and enhance my technichal knowldge to ask the good questions,

Best regards,

Salim

Sébastien Jodogne

unread,
Mar 27, 2019, 9:35:21 AM3/27/19
to Orthanc Users
Turned out that the culprit is missing "/etc/localtime" file, that is installed by default on Ubuntu 16.04, but not on Ubuntu 18.04.

Installing the "tzdata" package solves the issue. For instance:

$ sudo docker run -i -t --rm --entrypoint=bash ubuntu:18.04
# apt-get update && apt-get install -y wget tzdata
[...]
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.

  1. Africa  2. America  3. Antarctica  4. Australia  5. Arctic  6. Asia  7. Atlantic  8. Europe  9. Indian  10. Pacific  11. SystemV  12. US  13. Etc
Geographic area: 8

Please select the city or region corresponding to your time zone.

  1. Amsterdam  6. Belgrade    11. Budapest    16. Gibraltar    21. Jersey       26. Ljubljana   31. Mariehamn  36. Oslo       41. Rome        46. Simferopol  51. Tirane     56. Vatican    61. Zagreb
  2. Andorra    7. Berlin      12. Busingen    17. Guernsey     22. Kaliningrad  27. London      32. Minsk      37. Paris      42. Samara      47. Skopje      52. Tiraspol   57. Vienna     62. Zaporozhye
  3. Astrakhan  8. Bratislava  13. Chisinau    18. Helsinki     23. Kiev         28. Luxembourg  33. Monaco     38. Podgorica  43. San_Marino  48. Sofia       53. Ulyanovsk  58. Vilnius    63. Zurich
  4. Athens     9. Brussels    14. Copenhagen  19. Isle_of_Man  24. Kirov        29. Madrid      34. Moscow     39. Prague     44. Sarajevo    49. Stockholm   54. Uzhgorod   59. Volgograd
  5. Belfast    10. Bucharest  15. Dublin      20. Istanbul     25. Lisbon       30. Malta       35. Nicosia    40. Riga       45. Saratov     50. Tallinn     55. Vaduz      60. Warsaw
Time zone: 9
[...]
# chmod +x ./Orthanc
# ./Orthanc
W0327 14:33:48.808481 main.cpp:1436] Orthanc version: 1.5.6

HTH,
Sébastien-
Reply all
Reply to author
Forward
0 new messages