I have just updated my favourite XMPP server - ejabberd - from 17.01 to 17.04.
After rebuilding fresh ports in poudriere, upgrading was as easy as typing pkg upgrade
, followed with service ejabberd restart
(underlying OS is FreeBSD, of course). Service came back completely functional after restart, but I have noticed some warnings in my ejabberd.log
:
2017-06-29 14:10:33.147 [warning] <0.62.0>@ejabberd_s2s_out:maybe_report_huge_timeout:455 value '10000' of option 'outgoing_s2s_timeout' is too big, are you sure you have set seconds?
2017-06-29 14:10:33.177 [warning] <0.62.0>@ejabberd_config:emit_deprecation_warning:1436 Module mod_http_bind is deprecated, use mod_bosh instead
2017-06-29 14:10:33.232 [warning] <0.62.0>@ejabberd_config:emit_deprecation_warning:1428 Module mod_vcard_ldap is deprecated, use mod_vcard with 'db_type: ldap' instead
None of the above warnings seem to have negative impact in ejabberd-17.04, but I don't like warnings in my logs, so I corrected them anyway.
As for outgoing_s2s_timeout
, since 17.04 it should be specified in seconds, not in milliseconds, as confirmed here. I have changed value from 10000 to 10 to retain the old behaviour.
As for mod_http_bind
, all I needed to do is to rename it, so mod_http_bind: {}
becomes mod_bosh: {}
Finally, my mod_vcard_ldap
config section used to look as follows on 17.01:
mod_vcard_ldap:
search: false
ldap_vcard_map:
"NICKNAME": {"%u": []}
"FN": {"%s": ["displayName"]}
"FAMILY": {"%s": ["sn"]}
"GIVEN": {"%s": ["givenName"]}
"ORGNAME": {"%s": ["company"]}
"ORGUNIT": {"%s": ["department"]}
"LOCALITY": {"%s": ["l"]}
"DESC": {"%s": ["description"]}
"TEL": {"%s": ["mobile"]}
"EMAIL": {"%s": ["mail"]}
Renaming mod_vcard_ldap
to mod_vcard
and inserting db_type: ldap
was enough to get rid of the warning. Here's how related config section looks now:
mod_vcard:
db_type: ldap
search: false
ldap_vcard_map:
"NICKNAME": {"%u": []}
"FN": {"%s": ["displayName"]}
"FAMILY": {"%s": ["sn"]}
"GIVEN": {"%s": ["givenName"]}
"ORGNAME": {"%s": ["company"]}
"ORGUNIT": {"%s": ["department"]}
"LOCALITY": {"%s": ["l"]}
"DESC": {"%s": ["description"]}
"TEL": {"%s": ["mobile"]}
"EMAIL": {"%s": ["mail"]}
Now my ejabberd logs are sparkling clean once again :)