Error description: Not Found

I'm running debian 8 and I have installed ejabberd using 'apt-get install ejabberd'. I have also enable the module mod_http_upload to enable me to send and receive files. So far I'm able to send text messages perfectly fine, but whenever I try to send pictures/files I get "error description: file not found". Isn't that why we add the put_url option under mod_http_upload? so that it would put the file there. I'm pretty sure it is a simple solution that I'm just not seeing. Here is my mod_http_upload config:

mod_http_upload:
     access: all
     max_size: infinity
     docroot: "/etc/ejabberd/upload"
     access: all
     put_url: "http://192.168.3.21:5443"
     get_url: "http://192.168.3.21:5443"
     jid_in_url: node

Output when I look at ejabberd log using command 'tail -f ejabberd.log' right after I send a file:

2017-07-27 11:57:12.607 [debug] <0.542.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<iq to='upload.test.com' id='apcaR-2651' type='get'><request xmlns='urn:xmpp:http:upload'><filename>galaxy-wallpaper-21.jpg</filename><size>1034952</size></request></iq>">>
2017-07-27 11:57:12.608 [debug] <0.543.0>@ejabberd_router:do_route:351 route
        from {jid,<<"john">>,<<"test.com">>,<<"john">>,<<"john">>,<<"test.com">>,<<"john">>}
        to {jid,<<>>,<<"upload.test.com">>,<<>>,<<>>,<<"upload.test.com">>,<<>>}
        packet {xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"to">>,<<"upload.test.com">>},{<<"id">>,<<"apcaR-2651">>},{<<"type">>,<<"get">>}],[{xmlel,<<"request">>,[{<<"xmlns">>,<<"urn:xmpp:http:upload">>}],[{xmlel,<<"filename">>,[],[{xmlcdata,<<"galaxy-wallpaper-21.jpg">>}]},{xmlel,<<"size">>,[],[{xmlcdata,<<"1034952">>}]}]}]}
2017-07-27 11:57:12.609 [info] <0.475.0>@mod_http_upload:create_slot:641 Got HTTP upload slot for john@test.com/john (file: galaxy-wallpaper-21.jpg)
2017-07-27 11:57:12.610 [debug] <0.475.0>@ejabberd_router:do_route:351 route
        from {jid,<<>>,<<"upload.test.com">>,<<>>,<<>>,<<"upload.test.com">>,<<>>}
        to {jid,<<"john">>,<<"test.com">>,<<"john">>,<<"john">>,<<"test.com">>,<<"john">>}
        packet {xmlel,<<"iq">>,[{<<"id">>,<<"apcaR-2651">>},{<<"type">>,<<"result">>}],[{xmlel,<<"slot">>,[{<<"xmlns">>,<<"urn:xmpp:http:upload">>}],[{xmlel,<<"put">>,[],[{xmlcdata,<<"http://192.168.3.21:5443/john/WenfXXLoUTcCwDulEDX8PHPrBbqZaxxGV4RVysVh/galaxy-wallpaper-21.jpg">>}]},{xmlel,<<"get">>,[],[{xmlcdata,<<"http://192.168.3.21:5443/john/WenfXXLoUTcCwDulEDX8PHPrBbqZaxxGV4RVysVh/galaxy-wallpaper-21.jpg">>}]}]}]}
2017-07-27 11:57:12.611 [debug] <0.475.0>@ejabberd_local:do_route:265 local route
        from {jid,<<>>,<<"upload.test.com">>,<<>>,<<>>,<<"upload.test.com">>,<<>>}
        to {jid,<<"john">>,<<"test.com">>,<<"john">>,<<"john">>,<<"test.com">>,<<"john">>}
        packet {xmlel,<<"iq">>,[{<<"id">>,<<"apca"...>>},{<<"type">>,<<...>>}],[{xmlel,<<...>>,...}]}
2017-07-27 11:57:12.611 [debug] <0.475.0>@ejabberd_sm:do_route:463 session manager
        from {jid,<<>>,<<"upload.test.com">>,<<>>,<<>>,<<"upload.test.com">>,<<>>}
        to {jid,<<"john">>,<<"test.com">>,<<"john">>,<<"john">>,<<"test.com">>,<<"john">>}
        packet {xmlel,<<"iq">>,[{<<"id">>,<<"apca"...>>},{<<"type">>,<<...>>}],[{xmlel,<<...>>,...}]}
2017-07-27 11:57:12.611 [debug] <0.475.0>@ejabberd_sm:do_route:588 sending to process <0.543.0>
2017-07-27 11:57:12.612 [debug] <0.543.0>@ejabberd_c2s:send_text:1915 Send XML on stream = <<"<iq from='upload.test.com' to='john@test.com/john' id='apcaR-2651' type='result'><slot xmlns='urn:xmpp:http:upload'><put>http://192.168.3.21:5443/john/WenfXXLoUTcCwDulEDX8PHPrBbqZaxxGV4RVysVh/galaxy-wallpaper-21.jpg</put><get>http://192.168.3.21:5443/john/WenfXXLoUTcCwDulEDX8PHPrBbqZaxxGV4RVysVh/galaxy-wallpaper-21.jpg</get></slot></iq>">>
2017-07-27 11:57:12.612 [debug] <0.543.0>@ejabberd_c2s:send_text:1915 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:3'/>">>
2017-07-27 11:57:12.620 [debug] <0.542.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a xmlns='urn:xmpp:sm:3' h='10'/>">>
2017-07-27 11:57:12.620 [debug] <0.543.0>@ejabberd_c2s:check_h_attribute:2897 john@test.com/john acknowledged 10 of 10 stanzas
2017-07-27 11:57:12.670 [info] <0.535.0>@ejabberd_listener:accept:333 (#Port<0.11055>) Accepted connection 192.168.1.244:34480 -> 192.168.3.21:5443
2017-07-27 11:57:12.670 [debug] <0.552.0>@ejabberd_http:init:159 S: [{[<<"upload">>],mod_http_upload},{[<<"register">>],mod_register_web},{[<<"admin">>],ejabberd_web_admin},{[<<"http-bind">>],mod_http_bind}]
2017-07-27 11:57:12.671 [info] <0.552.0>@ejabberd_http:init:163 started: {gen_tcp,#Port<0.11055>}
2017-07-27 11:57:12.672 [debug] <0.552.0>@ejabberd_http:process_header:286 (#Port<0.11055>) http query: 'PUT' <<"/john/WenfXXLoUTcCwDulEDX8PHPrBbqZaxxGV4RVysVh/galaxy-wallpaper-21.jpg">>
^C

What i'm doing wrong? This is my first time working with ejabberd so please bear with me. if you need more data to look at, let me know.

Thank you in advance

Soooo turns out TLS was

Soooo turns out TLS was causing the issue. As soon as I disabled tls it works perfectly fine. Guess it is time to look over my config and figure out why it didn't work with TLS.

Syndicate content