Skip to content

HTTP handler crashed #4528

@erebion

Description

@erebion

Before creating a ticket, please consider if this should fit the discussion forum better.

Environment

  • ejabberd version: 26.02
  • Erlang version: erl +V
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]

Eshell V15.2.7 (press Ctrl+G to abort, type help(). for help)
  • OS: Linux (Debian) 13
  • Installed from: deb from ProcessOne

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

loglevel: 4
...

mod_matri_gw is enabled

Errors from error.log/crash.log

2026-02-12 20:06:01.058 [error] HTTP handler crashed:
 exception error: no case clause matching
  {error,
     {case_clause,
         {ok,{event,
              <<"$i10SFTm8oNSBa8UQNLkUOf8gHP5TDqdDC9kvqWurrLA">>,
              {room_version,<<"12">>,true,false,true,
                  true,true,true,true,true,true,true,true,
                  true},
              <<"!yRvSZYXk2z1Ac5myFmSrn-6e8Nymh0kiEQ-VdGCMgg0">>,
              <<"m.room.member">>,
              <<"@erebion:ejabberd.erebion.eu">>,13918,
              [<<"$yRvSZYXk2z1Ac5myFmSrn-6e8Nymh0kiEQ-VdGCMgg0">>,
               <<"$6VV3RQeLV-XO9fvmv8WClwNZZHmEnBwk-pJZU6YbX5o">>,
               <<"$WLHH9D6L8Oh83wN2yql9AxRIkrbLz2RoM_-mLkIEGO4">>,
               <<"$zUQsTq7g-VkQtP9oC_0uRlm7xYjJhaZKG2U_Q5YY9tc">>],
              <<"@erebion:ejabberd.erebion.eu">>,
              [<<"$WLHH9D6L8Oh83wN2yql9AxRIkrbLz2RoM_-mLkIEGO4">>],
              1770926046097,
              #{<<"auth_events">> =>
                    [<<"$6VV3RQeLV-XO9fvmv8WClwNZZHmEnBwk-pJZU6YbX5o">>,
                     <<"$WLHH9D6L8Oh83wN2yql9AxRIkrbLz2RoM_-mLkIEGO4">>,
                     <<"$zUQsTq7g-VkQtP9oC_0uRlm7xYjJhaZKG2U_Q5YY9tc">>],
                <<"content">> =>
                    #{<<"membership">> => <<"join">>},
                <<"depth">> => 13918,
                <<"hashes">> =>
                    #{<<"sha256">> =>
                          <<"Lj0olkeabnWVw5IKf4BgLn6e7+/85S8/elwAqxPMRpE">>},
                <<"origin">> => <<"ejabberd.erebion.eu">>,
                <<"origin_server_ts">> => 1770926046097,
                <<"prev_events">> =>
                    [<<"$WLHH9D6L8Oh83wN2yql9AxRIkrbLz2RoM_-mLkIEGO4">>],
                <<"room_id">> =>
                    <<"!yRvSZYXk2z1Ac5myFmSrn-6e8Nymh0kiEQ-VdGCMgg0">>,
                <<"sender">> =>
                    <<"@erebion:ejabberd.erebion.eu">>,
                <<"signatures">> =>
                    #{<<"ejabberd.erebion.eu">> =>
                          #{<<"ed25519:matrix_key_ejabberd.erebion.eu">> =>
                                <<"6jlQLdy27lelw3LlAJ/H7raqU2XPIBye5YdEPqp4CLAZQf1vk9lEcxnsizVKhfimO+fw4+5WGY7kg6s8z+48CA">>}},
                <<"state_key">> =>
                    <<"@erebion:ejabberd.erebion.eu">>,
                <<"type">> => <<"m.room.member">>,
                <<"unsigned">> =>
                    #{<<"replaces_state">> =>
                          <<"$WLHH9D6L8Oh83wN2yql9AxRIkrbLz2RoM_-mLkIEGO4">>}},
              undefined}}}}
   in function  mod_matrix_gw:process/2 (src/mod_matrix_gw.erl:279)
   in call from ejabberd_http:process/2 (src/ejabberd_http.erl:378)
   in call from ejabberd_http:process_request/1 (src/ejabberd_http.erl:506)
   in call from ejabberd_http:process_header/2 (src/ejabberd_http.erl:300)
   in call from ejabberd_http:parse_headers/1 (src/ejabberd_http.erl:225)
   in call from ejabberd_http:init/3 (src/ejabberd_http.erl:150)
   in call from proc_lib:init_p_do_apply/3 (proc_lib.erl:333)

Bug description

Please, give us a precise description (what does not work, what is expected, etc.)

Matrix Gateway having some sort of issue.

  • It also sends a lot of join events (related to Matrix Gateway: ejabberd sends "join" while already joined #4386?), apparently at least once every second.

  • Receiving a direct message from Matrix, the first message shows up as an private message in a MUC, but then everything else shows up in a seperate conversation (correctly then).

  • Joining some chats takes forever and never completes. Other chats, even with addresses on the same server, work fine.

  • Restarting ejabberd did not seem to do anything useful

It currently is not usable, unfortunately.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions