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

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.

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/).

I’m still not clear on which version I “should” be using though?

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

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

Just like any other software, you “should” always be using the latest available version:
https://groups.google.com/forum/#!topic/orthanc-users/LBil4zk8ZiY

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?

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 wget http://lsb.orthanc-server.com/orthanc/1.5.6/Orthanc -O /usr/sbin/Orthanc

RUN Orthanc --version

it displays 1.5.6

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

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.

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

wget http://lsb.orthanc-server.com/orthanc/1.5.6/Orthanc

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-

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

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

[…]

wget http://lsb.orthanc-server.com/orthanc/1.5.6/Orthanc

chmod +x ./Orthanc

./Orthanc

W0327 14:33:48.808481 main.cpp:1436] Orthanc version: 1.5.6

HTH,
Sébastien-