Hi Axel, Sorry, scrap my previous email. I realized too late you only encounter this issue with the HTTPS listener, not the plain HTTP one. It seems the Orthanc code throws this exception in an else clause, so possibly it's not always an accurate error message: if (isSslError) { throw OrthancException(ErrorCode_SslInitialization); } else { throw OrthancException(ErrorCode_HttpPortInUse, " (port = " + boost::lexical_caststd::string(port_) + ")"); } } Running Orthanc with HTTPS enabled through strace seems to make it stutter with libcrypto: openat(AT_FDCWD, "/lib64/libcrypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/usr/lib64/libcrypto.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) munmap(0x7fb5940ea000, 24027) = 0 write(2, "E0429 15:38:53.847614 OrthancExc"..., 47) = 47 write(2, "The TCP port of the HTTP server "..., 63) = 63 Manually linking either of our available libcrypto libraries makes it continue, but eventually segfaults in an OpenSSL FIPS Self Check. I think this is an issue with the libraries the package is build against - but I'm not too sure. Originally I wanted to suggest raising an issue with the packager - but now I realize you are the packager! :-) I'm not sure if any of the above is helpful, but possibly you could try checking if it needs any specific setup of libcrypto/openssl and compare it to the libraries installed on Debian? Sorry for not being more helpful, but kudos for maintaining this! Best, Georg On 4/29/22 15:20, Georg Pfuetzenreuter wrote:
Hi,
I installed the Orthanc package from the official repositories on Tumbleweed, and am able to start the server in its default configuration with no issues - I do not see any significant differences between to the Leap version, hence assume it should behave the same:
georg@host ~> sudo systemctl start orthanc
georg@host ~> sudo journalctl -fu orthanc Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.210265 LuaContext.cpp:94] Lua says: Lua toolbox installed Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.210470 ServerContext.cpp:476] Disk compression is disabled Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.210482 ServerIndex.cpp:380] No limit on the number of stored patients Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.210504 ServerIndex.cpp:400] No limit on the size of the storage area Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.211006 JobsEngine.cpp:272] The jobs engine has started with 2 threads Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.212252 main.cpp:1302] DICOM server listening with AET ORTHANC on port: 4242 Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.212297 HttpServer.cpp:1998] HTTP compression is enabled Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.212311 main.cpp:1169] Remote LUA script execution is disabled Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.213715 HttpServer.cpp:1775] HTTP server listening on port: 8042 (HTTPS encryption is disabled, remote access is not allowed) Apr 29 15:11:37 dracutdev01.home.lysergic.dev orthanc[7983]: W0429 15:11:37.213741 main.cpp:921] Orthanc has started
georg@host ~> sudo ss -tulpn Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process tcp LISTEN 0 200 0.0.0.0:8042 0.0.0.0:* users:(("orthanc",pid=7983,fd=6)) tcp LISTEN 0 50 0.0.0.0:4242 0.0.0.0:* users:(("orthanc",pid=7983,fd=5)
Can you confirm you do not have another instance of Orthanc running, possibly the systemd serviced one, while you try to run it manually? `ps aux |grep orthanc`
Can you attempt changing the default ports to some arbitrary ones, and try with those? In /etc/orthanc/Configuration.json: "HttpPort" : 12345 "DicomPort" : 54321,
georg@host ~> sudo ss -tulpn Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process tcp LISTEN 0 200 0.0.0.0:12345 0.0.0.0:* users:(("orthanc",pid=8369,fd=7)) tcp LISTEN 0 50 0.0.0.0:54321 0.0.0.0:* users:(("orthanc",pid=8369,fd=6))
Best, Georg
On 4/29/22 14:34, Axel Braun wrote:
Hi,
I run into the above error message when I want to start an Orthanc Server in https mode. I had already contacted the author of Orthanc, and he could not reproduce this (with my config files and certificates) on Debian. So the assumption is that it is a distribution (Leap 15.3) specific issue.
Log of the (manual )start as root using /usr/sbin/orthanc --verbose --trace-http --logfile=http_orthanc.log /etc/ orthanc/
https://paste.opensuse.org/92992870
What I tried: ss -tulpen does not show the port being used
switch off apache (reverse proxy)
switch off AppArmor
Is there any openSUSE specific configuration that prevents using high ports?
Cheers Axel