Problem with Gajim and Ejabberd
Hi, I had an issue at github about ejabberd and they told me it is a problem of Gajim. The quickest way is to copy all from there and put it here. My problem is that am not able to use http upload together with gajim. Any time an error comes up.
What version of ejabberd are you using?
ejabberd 16.01 is running in that node
What operating system (version) are you using?
Ubuntu 16.04 server
Kernel 4.4.0-66-generic
How did you install ejabberd (source, package, distribution)?
Installed from source code
What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?
I tried to manage http_upload but it was not working. . I am using gajim between two laptop one is Ubuntu 16.04 and the other Kubuntu 16.04 I want to use the server now internally and later maybe over Internet as well.
Here is the output if I start gajim with that command: gajim -l gajim.plugin_system.httpupload=DEBUG
Output:
15.03.2017 18:11:06 (I) gajim.plugin_system.httpupload Encryption is: False / OMEMO not found
15.03.2017 18:11:06 (I) gajim.plugin_system.httpupload Detected MIME Type of file: image/jpeg
15.03.2017 18:11:06 (I) gajim.plugin_system.httpupload jid_to_servers of test@sielstetten: upload.sielstetten ; connection: <nbxmpp.client_nb.NonBlockingClient instance at 0x7f5b5810a950>
15.03.2017 18:11:06 (D) gajim.plugin_system.httpupload sending httpupload slot request iq...
15.03.2017 18:11:06 (I) gajim.plugin_system.httpupload Uploading file to 'https://sielstetten:5443/upload/09e0286ece2788b0d55c46620673d8d1f44fe10a/OM9g02h4sV3eKniOjeSfMIdBCvQlhleEqqxhuCHh/IMG_0118.JPG'...
15.03.2017 18:11:06 (I) gajim.plugin_system.httpupload Please download from 'https://sielstetten:5443/upload/09e0286ece2788b0d55c46620673d8d1f44fe10a/OM9g02h4sV3eKniOjeSfMIdBCvQlhleEqqxhuCHh/IMG_0118.JPG' later...
15.03.2017 18:11:06 (D) gajim.plugin_system.httpupload opening urllib2 upload request...
15.03.2017 18:11:06 (E) gajim.plugin_system.httpupload Error
Traceback (most recent call last):
File "/home/thomas/.local/share/gajim/plugins/httpupload/httpupload.py", line 477, in uploader
transfer = urllib2.urlopen(request, timeout=30)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
15.03.2017 18:11:23 (I) gajim.plugin_system.httpupload Account sielstetten: httpupload is_supported: True
15.03.2017 18:11:23 (I) gajim.plugin_system.httpupload Account sielstetten: httpupload is_supported: True