processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.07k stars 1.51k forks source link

Dockerfile: add missing dependency for mssql databases #4079

Closed sando38 closed 1 year ago

sando38 commented 1 year ago

Error log without the change:

2023-08-12 08:54:13.295609+00:00 [warning] mssql connection failed:
** Reason: {"01000",0,
            "[unixODBC][Driver Manager]Can't open lib 'libtdsodbc.so' : file not found Connection to database failed."}
** Retry after: 5 seconds
2023-08-12 08:54:13.296471+00:00 [warning] mssql connection failed:
** Reason: {"01000",0,
            "[unixODBC][Driver Manager]Can't open lib 'libtdsodbc.so' : file not found Connection to database failed."}
** Retry after: 5 seconds

Binaries/installers are also "affected", meaning, METHOD=package needs the additional dependency as well.

Update: Currently, it is advised for users, who want to use the installer and rely on a MS SQL backend, to additionally install libtdsodbc libraries on their machine due to the nature of the odbc drivers being dynamic depending on the respective odbc backend in use. The installer cannot ship a hard linked driver.

Neustradamus commented 1 year ago

@badlop, @prefiks, @weiss, @mremond: Have you seen this @sando38 PR?