Mac で Domoticz が動かない

Mac で Domoticz を起動しようとしたら,エラーになってしまった。

$ domoticz 
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/naganuma/domoticz/domoticz
  Reason: image not found
Trace/BPT trap: 5

ライブラリを確認してみると,確かに libssl.1.0.0.0.dylib がなく,代わりに libssl.1.1.dylib がある。

$ ls /usr/local/opt/openssl/lib/libssl.*
libssl.1.1.dylib  libssl.a          libssl.dylib

インストールされている OpenSSL のバージョンを確認すると次のようになっている。

$ port installed openssl
The following ports are currently installed:
  openssl @1.0.2r_0
  openssl @1.0.2s_0
  openssl @1.1.1d_0 (active)

そこで,OpenSSL をダウングレードしてやることにした (mac osx - Downgrade Package in Macports - Server Fault)。

$ sudo port activate openssl @1.0.2s_0
--->  Computing dependencies for openssl
--->  Deactivating openssl @1.1.1d_0
--->  Cleaning openssl
--->  Activating openssl @1.0.2s_0
--->  Cleaning openssl

確認する。

$ port installed openssl
The following ports are currently installed:
  openssl @1.0.2r_0
  openssl @1.0.2s_0 (active)
  openssl @1.1.1d_0

これで起動することができた。

$ domoticz 
2020-04-11 17:07:22.373  Domoticz V3.5877 (c)2012-2016 GizMoCuz
2020-04-11 17:07:22.373  Build Hash: 15b013c, Date: 2016-11-11 00:44:33
2020-04-11 17:07:22.373  Startup Path: /Users/naganuma/tmp/domoticz/
2020-04-11 17:07:22.417  Active notification subsystems: http (1/12)
2020-04-11 17:07:22.420  WebServer(HTTP) started on address: :: with port 8080
2020-04-11 17:07:22.435  Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
2020-04-11 17:07:22.435  Error: WebServer(SSL) check privileges for opening ports below 1024
2020-04-11 17:07:22.435  Proxymanager started.
2020-04-11 17:07:22.436  Starting shared server on: :::6144
2020-04-11 17:07:22.436  TCPServer: shared server started...
2020-04-11 17:07:22.436  RxQueue: queue worker started...
2020-04-11 17:07:24.448  EventSystem: reset all events...
2020-04-11 17:07:24.448  EventSystem: reset all device statuses...
2020-04-11 17:07:24.448  EventSystem: Started