mod_http_upload error: "delivery failed"

Hello!

I've got delivery failed when I am trying to send images through Conversation client.

port: 5443
    module: ejabberd_http
    request_handlers:
      "/websocket": ejabberd_http_ws
      "upload": mod_http_upload
    ##  "/pub/archive": mod_http_fileserver
    web_admin: true
    http_bind: true
    ## register: true
    captcha: false
...
mod_http_upload:
    docroot: "/home/username/ejabberd-16.02/upload "
    put_url: "https://domain:5443/upload"

Log from server

2016-06-22 20:06:20.466 [info] <0.421.0>@mod_http_upload:create_slot:631 Got HTTP upload slot for username/mobile (file: ac9c7248-68af-4b22-a372-90471207a0f5.jpg)
2016-06-22 20:06:20.661 [info] <0.499.0>@ejabberd_listener:accept:333 (#Port<0.19805>) Accepted connection EXTERNAL_IP_ADRESS:33066 -> 192.168.1.226:5443
2016-06-22 20:06:20.662 [info] <0.1061.0>@ejabberd_http:init:158 started: {gen_tcp,#Port<0.19805>}
2016-06-22 20:06:20.801 [info] <0.499.0>@ejabberd_listener:accept:333 (#Port<0.19806>) Accepted connection EXTERNAL_IP_ADRESS:50743 -> 192.168.1.226:5443
2016-06-22 20:06:20.801 [info] <0.1062.0>@ejabberd_http:init:158 started: {gen_tcp,#Port<0.19806>}
2016-06-22 20:07:35.560 [info] <0.496.0>@ejabberd_listener:accept:333 (#Port<0.19807>) Accepted connection EXTERNAL_IP_ADRESS:26253 -> 192.168.1.226:5222

Where is my problem?

Check in Conversion that HTTP

Check in Conversion that HTTP FILE UPLOAD is ticked with "yes"

And go ahead increase

And go ahead increase logging: 5 in ejabberd.yml

You specified an https:// PUT

You specified an https:// PUT URL but you didn't enable TLS for your ejabberd_http listener.

I've installed ejabberd to

I've installed ejabberd to virtual machine special to solve my case.

Here is full config

port: 5280
    module: ejabberd_http
    request_handlers:
      "/websocket": ejabberd_http_ws
      "upload": mod_http_upload
    ##  "/pub/archive": mod_http_fileserver
    web_admin: true
    http_bind: true
    ## register: true
    captcha: false
...
mod_http_upload:
    docroot: "/home/roman/ejabberd-16.04/upload"
    put_url: "http://@HOST@:5443/upload"

Here is full log

2016-06-24 18:11:16.085 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<presence from=\"admin@192.168.1.40/8783450713591511952180\"><c node=\"http://conversations.im\" hash=\"sha-1\" xmlns=\"http://jabber.org/protocol/caps\" ver=\"P46rEDRVow3/L8H5dqhZc5rq3Zo=\"/></presence>">>
2016-06-24 18:11:16.088 [debug] <0.473.0>@ejabberd_c2s:session_established2:1235 presence_update({jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},
{xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]},
{state,{socket_state,fast_tls,{tlssock,#Port<0.18324>,#Port<0.18347>},<0.472.0>},ejabberd_socket,#Ref<0.0.1.11982>,false,<<"13143777804776695026">>,undefined,c2s,c2s_shaper,false,true,false,true,[verify_none,compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/home/roman/ejabberd-16.04/conf/server.pem">>}],true,{jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,{{1466,780919,1},<0.473.0>},{2,{{<<"roman">>,<<"192.168.1.40">>,<<>>},{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,nil},nil}},{2,{{<<"roman">>,<<"192.168.1.40">>,<<>>},{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,nil},nil}},{2,{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,{{<<"roman">>,<<"192.168.1.40">>,<<>>},nil,nil}}},{xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]},{1466,780988,742612},{userlist,none,[],false},c2s_tls,undefined,{{192,168,1,36},42019},[{caps_resources,{2,{{<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},{caps,<<"http://conversations.im">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>,<<"sha-1">>,[]},nil,{{<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>},{caps,<<"http://gajim.org">>,<<"OHkcneXc9eqyD5VIJDibu4fR0QY=">>,<<"sha-1">>,[]},nil,nil}}}}],inactive,[{<<"admin@192.168.1.40/8783450713591511952180">>,{1466,780988,747769},{xmlel,<<"presence">>,[{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>},{<<"to">>,<<"admin@192.168.1.40/8783450713591511952180">>},{<<"xml:lang">>,<<"en">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}}],active,<<"urn:xmpp:sm:3">>,{[],[]},1000,undefined,300000,300,false,21,21,true,<<"en">>})
2016-06-24 18:11:16.088 [debug] <0.473.0>@ejabberd_c2s:presence_update:2025 from unavail = false
2016-06-24 18:11:16.088 [debug] <0.473.0>@ejabberd_router_multicast:do_route:211 route_multicast
from admin@192.168.1.40/8783450713591511952180
domain 192.168.1.40
destinations [<<"admin@192.168.1.40">>,<<"roman@192.168.1.40">>]
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:16.089 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:16.089 [debug] <0.473.0>@ejabberd_local:do_route:265 local route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.090 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.090 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.090 [debug] <0.473.0>@ejabberd_sm:do_route:548 sending to process <0.473.0>
2016-06-24 18:11:16.091 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:16.091 [debug] <0.473.0>@ejabberd_local:do_route:265 local route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.091 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.092 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>,<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:16.092 [debug] <0.473.0>@ejabberd_sm:do_route:548 sending to process <0.477.0>
2016-06-24 18:11:16.092 [debug] <0.473.0>@mod_client_state:filter_presence:88 Got availability presence stanza
2016-06-24 18:11:16.092 [debug] <0.473.0>@ejabberd_c2s:csi_filter_stanza:3026 Going to queue stanza for inactive client <<"admin@192.168.1.40/8783450713591511952180">>
2016-06-24 18:11:16.093 [debug] <0.477.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<presence from='admin@192.168.1.40/8783450713591511952180' to='roman@192.168.1.40/Gajim' xml:lang='en'><c xmlns='http://jabber.org/protocol/caps' node='http://conversations.im' hash='sha-1' ver='P46rEDRVow3/L8H5dqhZc5rq3Zo='/></presence>">>
2016-06-24 18:11:16.093 [debug] <0.477.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:2'/>">>
2016-06-24 18:11:16.342 [debug] <0.476.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a xmlns=\"urn:xmpp:sm:2\" h=\"28\" />">>
2016-06-24 18:11:16.342 [debug] <0.476.0>@shaper:update:120 State: {maxrate,1000,20.952771635975786,1466781044139536}, Size=34
M=17.179984142220817, I=32203.05
2016-06-24 18:11:16.342 [debug] <0.477.0>@ejabberd_c2s:check_h_attribute:2774 roman@192.168.1.40/Gajim acknowledged 28 of 28 stanzas
2016-06-24 18:11:18.031 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<r xmlns=\"urn:xmpp:sm:3\"/>">>
2016-06-24 18:11:18.031 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<a xmlns='urn:xmpp:sm:3' h='21'/>">>
2016-06-24 18:11:18.038 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<active xmlns=\"urn:xmpp:csi:0\"/>">>
2016-06-24 18:11:18.038 [debug] <0.473.0>@ejabberd_c2s:csi_queue_flush:3062 Flushing CSI queue for admin@192.168.1.40/8783450713591511952180
2016-06-24 18:11:18.039 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<presence from='admin@192.168.1.40/8783450713591511952180' to='admin@192.168.1.40/8783450713591511952180' xml:lang='en'><c xmlns='http://jabber.org/protocol/caps' node='http://conversations.im' hash='sha-1' ver='P46rEDRVow3/L8H5dqhZc5rq3Zo='/><delay xmlns='urn:xmpp:delay' from='192.168.1.40' stamp='2016-06-24T15:11:16.093Z'>Client Inactive</delay></presence>">>
2016-06-24 18:11:18.039 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:3'/>">>
2016-06-24 18:11:18.071 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<iq from=\"admin@192.168.1.40/8783450713591511952180\" id=\"kdgt1htogv\" to=\"admin@192.168.1.40/8783450713591511952180\" type=\"get\"><query xmlns=\"http://jabber.org/protocol/disco#info\"/></iq>">>
2016-06-24 18:11:18.071 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>},{<<"id">>,<<"kdgt1htogv">>},{<<"to">>,<<"admin@192.168.1.40/8783450713591511952180">>},{<<"type">>,<<"get">>}],[{xmlel,<<"query">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/disco#info">>}],[]}]}
2016-06-24 18:11:18.072 [debug] <0.473.0>@ejabberd_local:do_route:265 local route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>},{<<...>>,...},{...}|...],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:18.072 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>},{<<...>>,...},{...}|...],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:18.072 [debug] <0.473.0>@ejabberd_sm:do_route:548 sending to process <0.473.0>
2016-06-24 18:11:18.072 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<iq from='admin@192.168.1.40/8783450713591511952180' to='admin@192.168.1.40/8783450713591511952180' xml:lang='en' id='kdgt1htogv' type='get'><query xmlns='http://jabber.org/protocol/disco#info'/></iq>">>
2016-06-24 18:11:18.073 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:3'/>">>
2016-06-24 18:11:18.081 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a h=\"22\" xmlns=\"urn:xmpp:sm:3\"/>">>
2016-06-24 18:11:18.082 [debug] <0.473.0>@ejabberd_c2s:check_h_attribute:2774 admin@192.168.1.40/8783450713591511952180 acknowledged 22 of 23 stanzas
2016-06-24 18:11:18.144 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a h=\"23\" xmlns=\"urn:xmpp:sm:3\"/>">>
2016-06-24 18:11:18.144 [debug] <0.473.0>@ejabberd_c2s:check_h_attribute:2774 admin@192.168.1.40/8783450713591511952180 acknowledged 23 of 23 stanzas
2016-06-24 18:11:20.111 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<inactive xmlns=\"urn:xmpp:csi:0\"/>">>
2016-06-24 18:11:26.682 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<active xmlns=\"urn:xmpp:csi:0\"/>">>
2016-06-24 18:11:26.682 [debug] <0.473.0>@ejabberd_c2s:csi_queue_flush:3062 Flushing CSI queue for admin@192.168.1.40/8783450713591511952180
2016-06-24 18:11:26.709 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<iq from=\"admin@192.168.1.40/8783450713591511952180\" id=\"ius2inh3va\" to=\"upload.192.168.1.40\" type=\"get\"><request xmlns=\"urn:xmpp:http:upload\"><filename>8a05fd16-e3e2-4cd9-8f02-439126686500.jpg</filename><size>499776</size><content-type>image/jpeg</content-type></request></iq>">>
2016-06-24 18:11:26.710 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<>>,<<"upload.192.168.1.40">>,<<>>,<<>>,<<"upload.192.168.1.40">>,<<>>}
packet {xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>},{<<"id">>,<<"ius2inh3va">>},{<<"to">>,<<"upload.192.168.1.40">>},{<<"type">>,<<"get">>}],[{xmlel,<<"request">>,[{<<"xmlns">>,<<"urn:xmpp:http:upload">>}],[{xmlel,<<"filename">>,[],[{xmlcdata,<<"8a05fd16-e3e2-4cd9-8f02-439126686500.jpg">>}]},{xmlel,<<"size">>,[],[{xmlcdata,<<"499776">>}]},{xmlel,<<"content-type">>,[],[{xmlcdata,<<"image/jpeg">>}]}]}]}
2016-06-24 18:11:26.711 [info] <0.400.0>@mod_http_upload:create_slot:634 Got HTTP upload slot for admin@192.168.1.40/8783450713591511952180 (file: 8a05fd16-e3e2-4cd9-8f02-439126686500.jpg)
2016-06-24 18:11:26.712 [debug] <0.400.0>@ejabberd_router:do_route:351 route
from {jid,<<>>,<<"upload.192.168.1.40">>,<<>>,<<>>,<<"upload.192.168.1.40">>,<<>>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"id">>,<<"ius2inh3va">>},{<<"type">>,<<"result">>}],[{xmlel,<<"slot">>,[{<<"xmlns">>,<<"urn:xmpp:http:upload">>}],[{xmlel,<<"put">>,[],[{xmlcdata,<<"http://192.168.1.40:5443/upload/94be0863ae7ff1de29dfda803123bb0c185f49c4/30FMV2m7MYI0ALRZVVtO9hbxVDqdrXu15wUIUd7A/8a05fd16-e3e2-4cd9-8f02-439126686500.jpg">>}]},{xmlel,<<"get">>,[],[{xmlcdata,<<"http://192.168.1.40:5443/upload/94be0863ae7ff1de29dfda803123bb0c185f49c4/30FMV2m7MYI0ALRZVVtO9hbxVDqdrXu15wUIUd7A/8a05fd16-e3e2-4cd9-8f02-439126686500.jpg">>}]}]}]}
2016-06-24 18:11:26.713 [debug] <0.400.0>@ejabberd_local:do_route:265 local route
from {jid,<<>>,<<"upload.192.168.1.40">>,<<>>,<<>>,<<"upload.192.168.1.40">>,<<>>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"id">>,<<"ius2"...>>},{<<"type">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:26.713 [debug] <0.400.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<>>,<<"upload.192.168.1.40">>,<<>>,<<>>,<<"upload.192.168.1.40">>,<<>>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"iq">>,[{<<"id">>,<<"ius2"...>>},{<<"type">>,<<...>>}],[{xmlel,<<...>>,...}]}
2016-06-24 18:11:26.713 [debug] <0.400.0>@ejabberd_sm:do_route:548 sending to process <0.473.0>
2016-06-24 18:11:26.713 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<iq from='upload.192.168.1.40' to='admin@192.168.1.40/8783450713591511952180' id='ius2inh3va' type='result'><slot xmlns='urn:xmpp:http:upload'><put>http://192.168.1.40:5443/upload/94be0863ae7ff1de29dfda803123bb0c185f49c4/30FMV2m7MYI0ALRZVVtO9hbxVDqdrXu15wUIUd7A/8a05fd16-e3e2-4cd9-8f02-439126686500.jpg</put><get>http://192.168.1.40:5443/upload/94be0863ae7ff1de29dfda803123bb0c185f49c4/30FMV2m7MYI0ALRZVVtO9hbxVDqdrXu15wUIUd7A/8a05fd16-e3e2-4cd9-8f02-439126686500.jpg</get></slot></iq>">>
2016-06-24 18:11:26.714 [debug] <0.473.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:3'/>">>
2016-06-24 18:11:26.765 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a h=\"24\" xmlns=\"urn:xmpp:sm:3\"/>">>
2016-06-24 18:11:26.765 [debug] <0.473.0>@ejabberd_c2s:check_h_attribute:2774 admin@192.168.1.40/8783450713591511952180 acknowledged 24 of 24 stanzas
2016-06-24 18:11:32.774 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<inactive xmlns=\"urn:xmpp:csi:0\"/>">>
2016-06-24 18:11:33.155 [debug] <0.472.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<presence from=\"admin@192.168.1.40/8783450713591511952180\"><show>away</show><c node=\"http://conversations.im\" hash=\"sha-1\" xmlns=\"http://jabber.org/protocol/caps\" ver=\"P46rEDRVow3/L8H5dqhZc5rq3Zo=\"/></presence>">>
2016-06-24 18:11:33.157 [debug] <0.473.0>@ejabberd_c2s:session_established2:1235 presence_update({jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},
{xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]},
{state,{socket_state,fast_tls,{tlssock,#Port<0.18324>,#Port<0.18347>},<0.472.0>},ejabberd_socket,#Ref<0.0.1.11982>,false,<<"13143777804776695026">>,undefined,c2s,c2s_shaper,false,true,false,true,[verify_none,compression_none,{protocol_options,<<"no_sslv3">>},{certfile,<<"/home/roman/ejabberd-16.04/conf/server.pem">>}],true,{jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,{{1466,780919,1},<0.473.0>},{2,{{<<"roman">>,<<"192.168.1.40">>,<<>>},{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,nil},nil}},{2,{{<<"roman">>,<<"192.168.1.40">>,<<>>},{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,nil},nil}},{2,{{<<"admin">>,<<"192.168.1.40">>,<<>>},nil,{{<<"roman">>,<<"192.168.1.40">>,<<>>},nil,nil}}},{xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]},{1466,781076,88495},{userlist,none,[],false},c2s_tls,undefined,{{192,168,1,36},42019},[{caps_resources,{2,{{<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>},{caps,<<"http://conversations.im">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>,<<"sha-1">>,[]},nil,{{<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>},{caps,<<"http://gajim.org">>,<<"OHkcneXc9eqyD5VIJDibu4fR0QY=">>,<<"sha-1">>,[]},nil,nil}}}}],inactive,[],active,<<"urn:xmpp:sm:3">>,{[],[]},1000,undefined,300000,300,false,24,24,true,<<"en">>})
2016-06-24 18:11:33.157 [debug] <0.473.0>@ejabberd_c2s:presence_update:2025 from unavail = false
2016-06-24 18:11:33.158 [debug] <0.473.0>@ejabberd_router_multicast:do_route:211 route_multicast
from admin@192.168.1.40/8783450713591511952180
domain 192.168.1.40
destinations [<<"admin@192.168.1.40">>,<<"roman@192.168.1.40">>]
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:33.158 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:33.159 [debug] <0.473.0>@ejabberd_local:do_route:265 local route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.159 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<>>,<<"admin">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.159 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.159 [debug] <0.473.0>@ejabberd_sm:do_route:548 sending to process <0.473.0>
2016-06-24 18:11:33.160 [debug] <0.473.0>@ejabberd_router:do_route:351 route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<"admin@192.168.1.40/8783450713591511952180">>}],[{xmlel,<<"show">>,[],[{xmlcdata,<<"away">>}]},{xmlel,<<"c">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/caps">>},{<<"node">>,<<"http://conversations.im">>},{<<"hash">>,<<"sha-1">>},{<<"ver">>,<<"P46rEDRVow3/L8H5dqhZc5rq3Zo=">>}],[]}]}
2016-06-24 18:11:33.160 [debug] <0.473.0>@ejabberd_local:do_route:265 local route
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.161 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<>>,<<"roman">>,<<"192.168.1.40">>,<<>>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.161 [debug] <0.473.0>@ejabberd_sm:do_route:423 session manager
from {jid,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>,<<"admin">>,<<"192.168.1.40">>,<<"8783450713591511952180">>}
to {jid,<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>,<<"roman">>,<<"192.168.1.40">>,<<"Gajim">>}
packet {xmlel,<<"presence">>,[{<<"xml:lang">>,<<"en">>},{<<"from">>,<<...>>}],[{xmlel,<<...>>,...},{xmlel,...}]}
2016-06-24 18:11:33.161 [debug] <0.473.0>@ejabberd_sm:do_route:548 sending to process <0.477.0>
2016-06-24 18:11:33.161 [debug] <0.473.0>@mod_client_state:filter_presence:88 Got availability presence stanza
2016-06-24 18:11:33.162 [debug] <0.477.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<presence from='admin@192.168.1.40/8783450713591511952180' to='roman@192.168.1.40/Gajim' xml:lang='en'><show>away</show><c xmlns='http://jabber.org/protocol/caps' node='http://conversations.im' hash='sha-1' ver='P46rEDRVow3/L8H5dqhZc5rq3Zo='/></presence>">>
2016-06-24 18:11:33.162 [debug] <0.477.0>@ejabberd_c2s:send_text:1813 Send XML on stream = <<"<r xmlns='urn:xmpp:sm:2'/>">>
2016-06-24 18:11:33.162 [debug] <0.473.0>@ejabberd_c2s:csi_filter_stanza:3026 Going to queue stanza for inactive client <<"admin@192.168.1.40/8783450713591511952180">>
2016-06-24 18:11:33.395 [debug] <0.476.0>@ejabberd_receiver:process_data:284 Received XML on stream = <<"<a xmlns=\"urn:xmpp:sm:2\" h=\"29\" />">>
2016-06-24 18:11:33.395 [debug] <0.476.0>@shaper:update:120 State: {maxrate,1000,11.004283650256182,1466781076342737}, Size=34
M=17.094053908973557, I=17052.402
2016-06-24 18:11:33.395 [debug] <0.477.0>@ejabberd_c2s:check_h_attribute:2774 roman@192.168.1.40/Gajim acknowledged 29 of 29 stanzas
Quote:

You specified an https:// PUT URL but you didn't enable TLS for your ejabberd_http listener.

I've changed to http. It doesn't help.

Quote:

Check in Conversion that HTTP FILE UPLOAD is ticked with "yes"

Sorry, but I can not find this option in Conversation. Can you tell me where is it?

Any ideas why it doesn't

Any ideas why it doesn't work?

Ok, I found my problem. My

Ok, I found my problem.
My config was with put_url: "https://domain:5443/upload", but I forgot to add tls: true for module: ejabberd_http.

Syndicate content