ejabberd crashes when clicking on user page's configuration
Closed this issue · 2 comments
floreal commented
Hello,
When I try to reach on User page's configuration (from the action session, see attached file) from movim, ejabberd crashes with this error:
May 24 11:42:53 ext-chat-01 ejabberdctl[16244]: 2024-05-24 11:42:53.130662+02:00 [error] Hook c2s_handle_info crashed when running ejabberd_c2s:process_info/2:
May 24 11:42:53 ext-chat-01 ejabberdctl[16244]: ** exception error: bad argument
see attached more detailed log: (see below)
I believe I'm missing something in ejabberd configuration, but I might be wrong. Any idea of which part of the XMPP server config I should show you?
Log
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: 2024-05-24 11:42:53.130662+02:00 [error] Hook c2s_handle_info crashed when running ejabberd_c2s:process_info/2:
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: ** exception error: bad argument
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in function fxml:element_to_binary/1
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: called as fxml:element_to_binary({xmlel,<<"iq">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"xml:lang">>,<<"fr">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"to">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"stupeflo@<DOMAIN>/Movim.cndr0d.2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"from">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"llowin@<DOMAIN>">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"type">>,<<"result">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"id">>,<<"RUinXF">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"command">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"status">>,<<"executing">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"sessionid">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"2024-05-24T09:42:53.127917Z">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"xml:lang">>,<<"fr">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"node">>,<<"config">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"xmlns">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"http://jabber.org/protocol/commands">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"actions">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"execute">>,<<"complete">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"complete">>,[],[]}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"x">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"type">>,<<"form">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"xmlns">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"jabber:x:data">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"title">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Administration de llowin">>}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"field">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"var">>,<<"FORM_TYPE">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"type">>,<<"hidden">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"value">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"http://jabber.org/protocol/admin">>}]}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"field">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"var">>,<<"action">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"type">>,<<"list-single">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"label">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Action sur l'utilisateur">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"value">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,<<"edit">>}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"option">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"label">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Modifier les propriétés">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"value">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,<<"edit">>}]}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"option">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"label">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Supprimer l'utilisateur">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"value">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"remove">>}]}]}]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xmlel,<<"field">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"var">>,<<"password">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"type">>,<<"text-private">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"label">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Mot de passe">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"value">>,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlcdata,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {scram,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<HASH1>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<HASH2>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<HASH3>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: sha,4096}}]}]}]}]}]})
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from xmpp_socket:send_element/2 (/home/runner/work/ejabberd/ejabberd/deps/xmpp/src/xmpp_socket.erl, line 232)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from xmpp_stream_in:send_pkt/2 (/home/runner/work/ejabberd/ejabberd/deps/xmpp/src/xmpp_stream_in.erl, line 1501)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from ejabberd_hooks:safe_apply/4 (src/ejabberd_hooks.erl, line 320)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from ejabberd_hooks:run_fold1/4 (src/ejabberd_hooks.erl, line 301)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from xmpp_stream_in:handle_info/2 (/home/runner/work/ejabberd/ejabberd/deps/xmpp/src/xmpp_stream_in.erl, line 459)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from p1_server:handle_msg/8 (/home/runner/work/ejabberd/ejabberd/deps/p1_utils/src/p1_server.erl, line 696)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 241)
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: ** Arg 1 = #{conn => c2s_tls,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: socket_monitor => #Ref<0.3703914235.2496921601.126948>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: owner => <0.712.0>,shaper => c2s_shaper,access => c2s,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: mgmt_max_queue => 5000,mgmt_stanzas_out => 0,lang => <<"fr">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_encrypted => true,stream_timeout => infinity,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: auth_module => ejabberd_auth_sql,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: server => <<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: jid =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {jid,<<"stupeflo">>,<<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Movim.cndr0d.2IcUZJ4yBq">>,<<"stupeflo">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<DOMAIN>">>,<<"Movim.cndr0d.2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: sid => {{1716,542724,158},<0.712.0>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_direction => in,mgmt_stanzas_in => 0,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: bind2_session_id =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"4d6f7669-6d2e-436e-a472-306476302e32">>,<<"2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_id => <<"7100533592931068205">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_authenticated => true,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: pres_last =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {presence,<<"AbRzts">>,available,<<"fr">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {jid,<<"stupeflo">>,<<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Movim.cndr0d.2IcUZJ4yBq">>,<<"stupeflo">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Movim.cndr0d.2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {jid,<<"stupeflo">>,<<"<DOMAIN>">>,<<>>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"stupeflo">>,<<"<DOMAIN>">>,<<>>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: chat,[],undefined,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xmlel,<<"c">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"hash">>,<<"sha-1">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"node">>,<<"https://movim.eu/">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {<<"ver">>,<<"WsktXumOBOF84KPIiosCf8yz4GM=">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: []},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {vcard_xupdate,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"dcb7d97db3bec3479a064330ebc997db60a6bf58">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: #{ip => {<IP>}}},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_state => established,zlib => false,mgmt_queue_type => ram,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: tls_enabled => false,tls_verify => false,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: xmlns => <<"jabber:client">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_version => {1,0},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: tls_options => [compression_none],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_restarted => false,mgmt_ack_timeout => 60000,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: caps_resources =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {2,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {{<<"stupeflo">>,<<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Movim.cndr0d.2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {caps,<<"https://movim.eu/">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"WsktXumOBOF84KPIiosCf8yz4GM=">>,<<"sha-1">>,[]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: nil,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {{<<"stupeflo">>,<<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"dino.481c85cb">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {caps,<<"https://dino.im">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"6ggwrxA97IN314qDlU0ic5OWBEc=">>,<<"sha-1">>,[]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: nil,nil}}},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: mgmt_max_timeout => 300000,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: codec_options => [ignore_els],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: ip => {{<IP>},55082},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: lserver => <<"<DOMAIN>">>,csi_state => active,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: pres_timestamp => {1716,542724,532264},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: mgmt_timeout => 300000,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: pres_a =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {1,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {{<<"general">>,<<"muc.<DOMAIN>">>,<<"stupeflo">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: nil,nil}},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: socket =>
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {socket_state,fast_tls,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {tlssock,#Port<0.43>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: #Ref<0.3703914235.2497052673.126949>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: 262144,#Ref<0.3703914235.2497052673.126947>,none,none,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"/opt/ejabberd/database/ejabberd@localhost/certs/5c796d7b2a04a6894a308414846a33d237970db0">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: stream_header_sent => true,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: csi_queue => {0,#{}},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: tls_required => false,user => <<"stupeflo">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: resource => <<"Movim.cndr0d.2IcUZJ4yBq">>,mgmt_state => inactive,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: mgmt_resend => if_offline,stream_compressed => false,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: mod => ejabberd_c2s,mgmt_stanzas_req => 0}
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: ** Arg 2 = {route,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {iq,<<"RUinXF">>,result,<<"fr">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {jid,<<"llowin">>,<<"<DOMAIN>">>,<<>>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"llowin">>,<<"<DOMAIN>">>,<<>>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {jid,<<"stupeflo">>,<<"<DOMAIN>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Movim.cndr0d.2IcUZJ4yBq">>,<<"stupeflo">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<DOMAIN>">>,<<"Movim.cndr0d.2IcUZJ4yBq">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{adhoc_command,<<"config">>,execute,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"2024-05-24T09:42:53.127917Z">>,executing,<<"fr">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {adhoc_actions,complete,false,false,true},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xdata,form,[],<<"Administration de llowin">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: undefined,[],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xdata_field,<<>>,hidden,<<"FORM_TYPE">>,false,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<>>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [<<"http://jabber.org/protocol/admin">>],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [],[]},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xdata_field,<<"Action sur l'utilisateur">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: 'list-single',<<"action">>,false,<<>>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [<<"edit">>],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{xdata_option,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Modifier les propriétés">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"edit">>},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xdata_option,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"Supprimer l'utilisateur">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"remove">>}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: []},
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: {xdata_field,<<"Mot de passe">>,'text-private',
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"password">>,false,<<>>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [{scram,<<"<HASH1>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<HASH2>">>,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: <<"<HASH3>">>,sha,
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: 4096}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: [],[]}]}}],
May 24 11:42:53 <SERVERNAME> ejabberdctl[16244]: #{ip => {<IP>}}}}
edhelas commented
Hi, this seems like an ejabberd issue, could you please open a proper ticket on their bugtracker https://github.com/processone/ejabberd/issues giving your version and other information.
You can tag me on the ticket, then I'll follow its resolution.
mremond commented
I tried on the latest ejabberd version and I do not see this error. It is likely something that has bee fixed already.