On upgrading an ejabberd cluster node from bookworm to trixie a problem with mam tables arises. * ejabberd version: 24.12-3 (Debian trixie, upgraded from bookworm 23.01-1 with apt dist-upgrade) * Erlang version: Erlang 15.2.6 Error from the log [2] I did report this upstream [0] and they have provided a fix [1] very quickly. Now I'm not sure how I can test this fix as long as it's not in the debian repo. [0] upstream report: https://github.com/processone/ejabberd/issues/4374 [1] fix: https://github.com/processone/ejabberd/commit/67cc0c528667a5bcdeab0cf63cf8aa0d42c6f0c7 [2] 2025-04-21 10:52:06.402141+02:00 [error] <0.188.0>@ejabberd_mnesia:mnesia_op/2:431 Failure on mnesia transform_table [archive_msg, #Fun<ejabberd_mnesia.8.102878464>, [us,id,timestamp,peer,bare_peer,packet, nick,type,origin_id]]: {aborted, {"Bad transform function", archive_msg, #Fun<ejabberd_mnesia.8.102878464>, 'ejabberd@example.org', {badfun, #Fun<ejabberd_mnesia.8.102878464>}}} 2025-04-21 10:52:06.402902+02:00 [critical] <0.1109.0>@gen_mod:start_module/4:186 Failed to start module mod_mam: {error,db_failure} 2025-04-21 10:52:06.403065+02:00 [critical] <0.1109.0>@gen_mod:maybe_halt_ejabberd/0:285 ejabberd initialization was aborted because a module start failed.
Hi, for what architecture do you need the supposedly fixed ejabberd package? Regards
Thx for the rocket-fast response :) amd64 Markus
Hi, you can now grab an ejabberd package with the proposed fix for testing/unstable from this location: https://apt.debalance.de/pool/main/e/ejabberd/ejabberd_24.12-4_amd64.deb Please let me know if that solves your problem. Best wishes
Thx! But I get the same error during sync of the mam tables.
'ejabberd@node1.example.com' in the log message below is the first node
in the cluster which is still on bookworm. I'm testing the upgrade on
node2.
2025-04-23 23:55:38.923094+02:00 [error] Failure on mnesia
transform_table [archive_msg,
#Fun<ejabberd_mnesia.8.102878464>,
[us,id,timestamp,peer,bare_peer,packet,
nick,type,origin_id]]: {aborted,
{"Bad
transform function",
archive_msg,
#Fun<ejabberd_mnesia.8.102878464>,
'ejabberd@node1.example.com',
{badfun,
#Fun<ejabberd_mnesia.8.102878464>}}}