Thank you for reply!
Sorry for the delay, but the actual results have changed for me since last
time.

Actually I have already enabled debug loglevel for mail before posting in
this thread (tried to resolve this myself), I saw the lines you posted as an
example in logs, but there were only preparation stage, no sending events at
all.
Sharing by email works with external SMTP server (have actually tested it
this way first when set up SMTP, and the validation email issue was caught
later when users started to register).

I have shut down tomcat, removed catalina.out file to get a clean one.
My steps:
 - start tomcat and wait till cpu load drops (that's how I tell that tomcat
startup has completed without using logs);
 - open XWiki main page (XWiki initialization starts);
 - send email by sharing (old working sender plugin) - email is received;
 - wait a minute;
 - open the page with velocity I've created previously (like you told me to,
using 'memory' storage);
 - wait for some time, check email: 1 email from share link, 2... wait, two
emails from 'email-velocity-memory' page.
/That is strange/: I haven't changed anything, but the email was sent this
time. Twice.
Now to testing email validation.
 - open registration page in other browser;
 - register a new user;
 - (*new*) registration successful page appears (previously that was an
infinite load);
 - (*new*) email is received.

I have an idea: the other XWiki I have installed (2 XWiki on 2 separate
containers in 1 Tomcat with 2 webapp directories, I will call the first
installed XWiki-0, that one does not have SMTP and sends via localhost) was
not initialized (but usually is). So I will redo the same steps with
starting that XWiki first (maybe there's no separation of email threads?).
I stop tomcat at this point and pack the log for you (link is below).

Steps this time:
 - start tomcat and wait till cpu load drops (that's how I tell that tomcat
startup has completed without using logs);
 - open previously installed XWiki-0 main page (initialize it first);
 - share page by email - email is received;
 - create a velocity page (no such page was set up in XWiki-0);
 - 2 emails are received;
 - open XWiki main page (XWiki initialization starts);
   (there are 2 warnings in logs this time:
)
 - send email by sharing (old working sender plugin) - email is received;
 - wait a minute;
 - open the page with velocity - email is received (2 emails);
 - register a new user - registration successful, email is received.
I stop my tomcat at this point and pack the log for you (link is below).

Well so there is no actual interference between 2 XWiki installation when
talking about email (2 warnings are present though and I don't think that's
a good thing actually).

Currently *everything works*. I don't know why, I was sure it wouldn't work.
The only thing that can matter is that server uptime is 6 days (had a
blackout last week, so the server was rebooted automatically). Previous
restart was like months ago (before XWiki installation). So maybe
services/containers restarts are not enough to successfully finish the
installation? Reboot is needed? This is a Debian box so that's pretty
strange of an idea for me, but there was nothing else.

Log files:
First run (single XWiki)
<http://rez.hopto.org/files/catalina-single_mode.out.gz>  
Second run (XWiki-0 + XWiki)
<http://rez.hopto.org/files/catalina-full_mode.out.gz>  

I will leave this set up as it is, because the issue may reappear and I
don't get that was the cause of it yet. If you have any ideas, I am ready to
perform more tests to get this fixed for other people who may have the same
issue.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Email-Validation-stuck-in-prepare-success-status-tp7602814p7603082.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

Reply via email to