Hi Rez,
On 22 Feb 2017, at 12:10, rez_spb
<rez.open(a)gmail.com> wrote:
Hello,
The issue is that registration emails are not sent by XWiki, they get stuck
in 'prepare_success' status (seen in "Administration: Mail Sending
Status").
No errors. Even in MySQL 'mail_errorDescription' and 'mail_errorSummary'
fields.
Similar issue was asked some time ago
<http://xwiki.475771.n2.nabble.com/Help-configuring-Email-Sending-for-User-verification-tp7599610p7599671.html>
by another user but with no resolution.
Some additional info:
I have a fresh install of XWiki Enterprise 8.4.4 under Apache Tomcat 7.0.73
(Oracle Java 1.8.0_112-b15) with MySQL 5.5 under Debian Wheezy.
Enterprise Flavor, no other addons or extensions were installed.
I have set some internal logging to TRACE level while trying to understand
the underlying reason. Filtered logging by 'mail' and enabled all 13
loggers. Still not that much useful info in logs.
I am pretty sure that email is configured properly (I can send page as an
email to myself using current SMTP setup and I receive it all right). Logs:
Logs look different when user is registering:
And that's it. These messages won't be sent, ever. 'Resend' button in
admin
panel does not help either.
Please advise.
Also I can change almost everything as this is my personal dedicated server,
and I hope we can resolve this issue.
I’m interested in resolving this issue. I’m on the devs who coded this mail component.
I’ve never experienced your problem though so we need to find a way so that I can
reproduce it (or understand the problem but that’s going to be hard).
So the way it works is that there are 2 threads running:
- prepare thread: its goal is to serialise the messages to be sent on disk. This allows to
resend if the mail fails or if XWiki is restarted. It also put the mail to be sent on the
send thread queue
- send thread: send the mails put on its queue.
It’s as if the send thread is not noticing that there are mails to be sent.
So we’d need to check if the Send thread is alive. I guess you could check that by sending
a SIGQUIT to the JVM and checking the thread dump to find the Mail Sending Thread.
One thing you could test is to use the memory listener instead of the DB listener for the
mail (so that the mail is sent directly). That’ll confirm that everything is working. You
can use the following example:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+API#HExamp…
(Adjust the “to” to point to your mail)
Thanks
-Vincent
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Email-Validation-stuck-in-prepare-success…
Sent from the XWiki- Users mailing list archive at
Nabble.com.