* Josef Kufner <j...@frozen-doe.net> [2015-11-09 10:30]:
> when trying to share file via HTTP upload method (mod_http_upload) the
> upload fails with following error in log. The uploaded photo was small
> PNG. Both Gajim and Conversations clients failed.
> 
> 2015-11-09 10:20:51.788 [info] <0.675.0>@mod_http_upload:create_slot:580 Got 
> HTTP upload slot for u...@xxxxxxxx.com/Gajim (file: coffe-sophie-copy.jpg)
> 2015-11-09 10:20:51.797 [info] <0.990.0>@ejabberd_listener:accept:299 
> (#Port<0.16013>) Accepted connection 192.168.xx.xx:34830 -> xx.xx.xx.xx:5444
> 2015-11-09 10:20:51.798 [info] <0.1165.0>@ejabberd_http:init:157 started: 
> {p1_tls,{tlssock,#Port<0.16013>,#Port<0.16014>}}
> 2015-11-09 10:20:52.232 [error] <0.1165.0> CRASH REPORT Process <0.1165.0> 
> with 0 neighbours crashed with reason: bad argument in call to 
> erlang:list_to_binary(<<"/srv/jabber/upload/6bc534cbxxxxxxxxxxxxxxxxxxxxxxxxxxxef80b/vdbh473UMwcCfte1O...">>)
>  in mod_http_upload:thumb_el/2 line 891
> 2015-11-09 10:20:52.232 [error] <0.428.0> Supervisor ejabberd_http_sup had 
> child undefined started with {ejabberd_http,start_link,undefined} at 
> <0.1165.0> exit with reason badarg in context child_terminated

This is fixed upstream[*] and can be worked around by disabling
thumbnail creation (Gajim and Conversations currently don't use that
feature anyway):

  modules:
    # [...]
    mod_http_upload:
      thumbnail: false
      # [...]

[*]: 
https://github.com/processone/ejabberd/commit/1b368a86b709053ded0ebdfa0499cbd78712fce6

Reply via email to