Hi Rez,
On 27 Feb 2017, at 13:44, rez_spb
<rez.open(a)gmail.com> wrote:
Thank you for responding! I was away from my PC for quite a long time, could
not investigate fully.
First of all, I have watched the video and checked that programming rights
are fine for my Admin user. the default behavior is to check for them, and
the user have them, so everything is OK.
Then I set 'discard success statuses' option to explicit 'No' in admin
panel.
Next, I have taken a sample, changed $services.mailsender.createMessage()
parameters to reflect actual email before adding a page.
I did try to create a velocity test email page with memory listener, but...
the page did not finish loading after I clicked 'Save and View'. It was
actually created, and email was prepared (log excerpt below), but email was
neither sent nor displayed in Mail Sending Status (the latter is expected as
we bypass DB here).
Of course, no email was received and I cannot open my velocity test page due
to infinite loading.
I have created a thread dump for you to look at, maybe that will help:
http://pastebin.com/TeBcZrUV
Several email-related threads are in WAITING and TIMED_WAITING statuses.
The testing page is called 'email-velocity-memory' for faster debugging.
I see 8 threads that correspond to executing your page with the mail sending test. I
believe you tried to refresh this page 8 times, correct?
I also see a share page thread. Note that the share page by email feature is using the old
mail sender plugin and not the new mail module so the config is different and they’re
completely different (and there’s no notion of mail prepare and mail sending, the mail is
sent directly).
Actually that’s a question I have for you: does share page by email work for you?
Maybe make sure that the SMTP server that you configure is visible from your xwiki
instance because it looks as if it cannot be reached and it doesn’t seem to timeout.
Ok here’s something to try. Enable debug logs for the mail module. This can be done at
runtime in the Admin UI, Logs section, or by stopping XWiki, editing
WEB-INF/classes/logback.xml and adding:
<logger name=“org.xwiki.mail" level=“debug”/>
Then restart XWiki and send us the results of what appears in catalina.out.
You should see messages such as:
- Mail preparation begins for batch [{}].
- Mail preparation succeed for message [{}] of batch [{}].
- Mail preparation ended for batch [{}].
- etc
Thanks
-Vincent
If there's anything else I can help with, please
let me know.
Oh, and you will see AJP connector thread: I use 'mod_jk' to proxy Tomcat
through Apache, and the Tomcat serves 2 XWikis as 2 different services. I
have separated them fine (I think), but I can email you configs in case my
setup is too custom and was not tested before.
Thanks for all your help!
--
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.