Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/admin/server/<HOST>/muc/ crashes on 19.02 #2875

Closed
johnnybubonic opened this issue May 1, 2019 · 5 comments
Closed

/admin/server/<HOST>/muc/ crashes on 19.02 #2875

johnnybubonic opened this issue May 1, 2019 · 5 comments

Comments

@johnnybubonic
Copy link

johnnybubonic commented May 1, 2019

I just upgraded to 19.02 via your distributed RPM and am getting this crash when trying to access the web admin path /admin/server/<HOST>/muc/:

2019-05-01 10:59:24.776 [error] <0.1989.0>@ejabberd_hooks:safe_apply:384 Hook webadmin_page_host crashed when running mod_muc_admin:web_page_host/3:
** Reason = {error,badarg,[
 {erlang,atom_to_binary,[1556665238503374,utf8],[]},
 {misc,atom_to_binary,1,[{file,"src/misc.erl"},{line,198}]},
 {mod_muc_admin,prepare_room_info,1,[{file,"src/mod_muc_admin.erl"},{line,593}]},
 {mod_muc_admin,'-prepare_rooms_infos/1-lc$^0/1-0-',1,[{file,"src/mod_muc_admin.erl"},{line,577}]},
 {mod_muc_admin,make_rooms_page,3,[{file,"src/mod_muc_admin.erl"},{line,494}]},
 {mod_muc_admin,web_page_host,3,[{file,"src/mod_muc_admin.erl"},{line,470}]},
 {ejabberd_hooks,safe_apply,4,[{file,"src/ejabberd_hooks.erl"},{line,381}]},
 {ejabberd_hooks,run_fold1,4,[{file,"src/ejabberd_hooks.erl"},{line,365}]}]}
** Arguments = [[],<<"%HOST%">>,{request,'GET',[<<"muc">>],[{nokey,<<>>}],{<<"%UID%">>,<<"%HOST%">>},{auth_jid,{<<"%JID%">>,<<"%PASSWORD%">>},{jid,<<"%UID%">>,<<"%HOST%">>,<<>>,<<"%UID%">>,<<"%HOST%">>,<<>>}},<<"en-US">>,<<>>,{{0,0,0,0,0,65535,27553,8015},44390},<<"%SERVER_FQDN%">>,5443,[{tls,true},{captcha,true},{web_admin,true},{ciphers,<<"HIGH:!aNULL:!eNULL:!3DES:@STRENGTH">>},{dhfile,<<"/opt/ejabberd/conf/ssl/dh4096.pem">>},{protocol_options,<<"no_sslv3|cipher_server_preference|no_compression">>},{request_handlers,[{[<<"api">>],mod_http_api},{[<<"bosh">>],mod_bosh},{[<<"upload">>],mod_http_upload},{[<<"ws">>],ejabberd_http_ws},{[<<"oauth">>],ejabberd_oauth}]}],https,[{'Cache-Control',<<"max-age=0">>},{<<"Upgrade-Insecure-Requests">>,<<"1">>},{'Connection',<<"keep-alive">>},{'Authorization',<<"Basic %BASE64%">>},{'Referer',<<"https://%SERVER_FQDN%:5443/admin/server/%HOST%/shared-roster/">>},{'Accept-Encoding',<<"gzip, deflate, br">>},{'Accept-Language',<<"en-US,en;q=0.5">>},{'Accept',<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},{'User-Agent',<<"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0">>},{'Host',<<"%SERVER_FQDN%:5443">>}],0,fast_tls,{tlssock,#Port<0.523>,#Ref<0.2525833807.1316880385.108486>}}]

2019-05-01 10:59:24.776 [error] <0.1989.0>@ejabberd_hooks:safe_apply:384 Hook webadmin_page_host crashed when running mod_muc_admin:web_page_host/3:
** Reason = {error,badarg,[
 {erlang,atom_to_binary,[1556665238503374,utf8],[]},{misc,atom_to_binary,1,[{file,"src/misc.erl"},{line,198}]},
 {mod_muc_admin,prepare_room_info,1,[{file,"src/mod_muc_admin.erl"},{line,593}]},
 {mod_muc_admin,'-prepare_rooms_infos/1-lc$^0/1-0-',1,[{file,"src/mod_muc_admin.erl"},{line,577}]},
 {mod_muc_admin,make_rooms_page,3,[{file,"src/mod_muc_admin.erl"},{line,494}]},
 {mod_muc_admin,web_page_host,3,[{file,"src/mod_muc_admin.erl"},{line,470}]},
 {ejabberd_hooks,safe_apply,4,[{file,"src/ejabberd_hooks.erl"},{line,381}]},
 {ejabberd_hooks,run_fold1,4,[{file,"src/ejabberd_hooks.erl"},{line,365}]}]}
** Arguments = [[],<<"%HOST%">>,{request,'GET',[<<"muc">>],[{nokey,<<>>}],{<<"%UID%">>,<<"%HOST%">>},{auth_jid,{<<"%JID%">>,<<"%PASSWORD%">>},{jid,<<"%UID%">>,<<"%HOST%">>,<<>>,<<"%UID%">>,<<"%HOST%">>,<<>>}},<<"en-US">>,<<>>,{{0,0,0,0,0,65535,27553,8015},44390},<<"%SERVER_FQDN%">>,5443,[{tls,true},{captcha,true},{web_admin,true},{ciphers,<<"HIGH:!aNULL:!eNULL:!3DES:@STRENGTH">>},{dhfile,<<"/opt/ejabberd/conf/ssl/dh4096.pem">>},{protocol_options,<<"no_sslv3|cipher_server_preference|no_compression">>},{request_handlers,[{[<<"api">>],mod_http_api},{[<<"bosh">>],mod_bosh},{[<<"upload">>],mod_http_upload},{[<<"ws">>],ejabberd_http_ws},{[<<"oauth">>],ejabberd_oauth}]}],https,[{'Cache-Control',<<"max-age=0">>},{<<"Upgrade-Insecure-Requests">>,<<"1">>},{'Connection',<<"keep-alive">>},{'Authorization',<<"Basic %BASE64%">>},{'Referer',<<"https://%SERVER_FQDN%:5443/admin/server/%HOST%/shared-roster/">>},{'Accept-Encoding',<<"gzip, deflate, br">>},{'Accept-Language',<<"en-US,en;q=0.5">>},{'Accept',<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>},{'User-Agent',<<"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0">>},{'Host',<<"%SERVER_FQDN%:5443">>}],0,fast_tls,{tlssock,#Port<0.523>,#Ref<0.2525833807.1316880385.108486>}}]

(scrubbed, of course; user => %UID%, JID => %JID% etc.)

This only seems to happen on hosts that actually have persistent MUCs; hosts with no MUCs render the page fine (which makes sense, since it seems to be something to do with how room data is being rendered).

@licaon-kter
Copy link
Contributor

Gist of config?

@johnnybubonic
Copy link
Author

@johnnybubonic
Copy link
Author

an update, i experience a similar error at /admin/muc/rooms.

@ejabberd_hooks:safe_apply:384 Hook webadmin_page_main crashed when running mod_muc_admin:web_page_main/2: (...)

@badlop
Copy link
Member

badlop commented May 2, 2019

Fixed in #2830

@badlop badlop closed this as completed May 2, 2019
@lock
Copy link

lock bot commented May 5, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants