Problem sending the file

Hello
I installed the HTTP File Upload plugin, but when sending the file, it says “delivery failed” and the file is not sent.
please guide me
This is the setting

3

Without any other information, we can only guess. A common problem for these failures is using a TLS certificate that does not cover the address of the announced webhost, that is used by the HTTP File Upload functionality. Given that you are having trouble installing the correct certificate, this is a strong contender for the cause of this.

thanks for your answer
what’s the solution?
What should I do to solve the problem?

The first thing that I would make sure is that the TLS certificate that is installed in Openfire matches the hostname of the server that you have installed Openfire on, and take it from there.

Yes, it matches. I got the TLS certificate from letsencrypt. Of course for free
And I entered the content of the privkey.pem file in the Content of Private Key file: section
And then I entered the content of the fullchain.pem file in the Content of Certificate file: section
Interestingly, text messages are sent and received without any problems or error messages.

If you turn on debug logging in Openfire and attempt a file transfer in Spark, do you get any interesting logs?

log

2024.02.28 09:28:38.958 INFO [pool-8-thread-13]: nl.goodbytes.xmpp.xep0363.Component - Entity 'user2@My_Address_Site.com/Conversations.wDYy' tries to obtain slot.
2024.02.28 09:28:38.982 INFO [pool-8-thread-13]: nl.goodbytes.xmpp.xep0363.Component - Entity 'user2@My_Address_Site.com/Conversations.wDYy' obtained slot for '1-1.txt' (2312 bytes). PUT-URL: https://My_Address_Site.com:7443/httpfileupload/m_JTwAfTymY7Nb_psEG21OTNeuY/1-1.txt GET-URL: https://My_Address_Site.com:7443/httpfileupload/m_JTwAfTymY7Nb_psEG21OTNeuY/1-1.txt
2024.02.28 09:28:39.541 INFO [Jetty-QTP-BOSH-63]: nl.goodbytes.xmpp.xep0363.Servlet - Processing PUT request... (66.14.10.10 submitting to /httpfileupload/m_JTwAfTymY7Nb_psEG21OTNeuY/1-1.txt)
2024.02.28 09:28:39.542 WARN [Jetty-QTP-BOSH-63]: org.eclipse.jetty.server.HttpChannel - handleException /httpfileupload/m_JTwAfTymY7Nb_psEG21OTNeuY/1-1.txt java.nio.file.AccessDeniedException: m_JTwAfTymY7Nb_psEG21OTNeuY
2024.02.28 09:29:52.100 INFO [pool-8-thread-15]: nl.goodbytes.xmpp.xep0363.Component - Entity 'user1@My_Address_Site.com/Conversations.V4x9' tries to obtain slot.
2024.02.28 09:29:52.101 INFO [pool-8-thread-15]: nl.goodbytes.xmpp.xep0363.Component - Entity 'user1@My_Address_Site.com/Conversations.V4x9' obtained slot for 'rG1ZatKDRmi82yc3EEckJg.pdf' (337085 bytes). PUT-URL: https://My_Address_Site.com:7443/httpfileupload/fezRyPY6uvHMOBCKxgenWA_DBaw/rG1ZatKDRmi82yc3EEckJg.pdf GET-URL: https://My_Address_Site.com:7443/httpfileupload/fezRyPY6uvHMOBCKxgenWA_DBaw/rG1ZatKDRmi82yc3EEckJg.pdf
2024.02.28 09:29:52.618 INFO [Jetty-QTP-BOSH-62]: nl.goodbytes.xmpp.xep0363.Servlet - Processing PUT request... (91.22.152.190 submitting to /httpfileupload/fezRyPY6uvHMOBCKxgenWA_DBaw/rG1ZatKDRmi82yc3EEckJg.pdf)
2024.02.28 09:29:52.623 WARN [Jetty-QTP-BOSH-62]: org.eclipse.jetty.server.HttpChannel - handleException /httpfileupload/fezRyPY6uvHMOBCKxgenWA_DBaw/rG1ZatKDRmi82yc3EEckJg.pdf java.nio.file.AccessDeniedException: fezRyPY6uvHMOBCKxgenWA_DBaw

24/Feb you said you configured a custom path.

but in your screenshot up here the "plugin.http.fileupload.fileRepo is “none” 28/Feb.

Yes that’s right. The post you mentioned is for another server and this is for another server

is that server transferring files properly?
if yes, you can just follow the same steps you took there. change the path to something custom, give Openfire ownership.

Hello
Thanks to the help of all my friends, my problem is solved
The problem was with the openfire certificate. I solved it first and then the file sending was also solved

1 Like