Re: [xwiki-users] Email Validation: stuck in 'prepare_success' status

2017-03-14 Thread rez_spb
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)
  
Second run (XWiki-0 + XWiki)
  

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.


Re: [xwiki-users] Email Validation: stuck in 'prepare_success' status

2017-03-09 Thread rez_spb
This is a kind reminder. Did you by any chance have time to look at this
issue?
I have provided some info on Feb, 27th and can provide something else, but
for now the issue exists and I cannot understand what's wrong here.
Please tell me how can I assist in fixing this.



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


Re: [xwiki-users] LDAP authentication is not enabled. Check xwiki.cfg

2017-03-03 Thread rez_spb
Hello.

I'm not a developer, but if maybe you could upload your configs from
scenario 1 and 2 somewhere so that the devs would have something to look at?
I think that you can't just substitute production intended configs (scenario
2) with a custom config from standalone install (scenario 1) due to
standalone being way more tuned to make it faster to try. Haven't tried
standalone myself, but that's what I'd think of in the first place.
Did you make a diff between configs to see what parameters will be affected?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/LDAP-authentication-is-not-enabled-Check-xwiki-cfg-tp7602951p7602952.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Stopping Xwiki-8.4.3/Tomcat-9.0 and integrating with systemctl

2017-03-01 Thread rez_spb
Hello,

Port in  property is a Tomcat system port used for shutdown, it
should not be confused with a port Tomcat service connector listens on
(client connection port like 80, 8080, 443 etc). So changing it to 8080 is
not what you should've done, I think.

Two instances are most likely due to first failed attempt to stop Tomcat,
after which you've started it again. I have seen the similar issue.

What you'd probably want to do is to killall java, then change port back to
8005, start Tomcat and wait till it's up and running, check that it listens
on port 8005 and it is the correct Tomcat (in case you have several of them
you should use other port, but not 8080 as it is used for client
connections).
My example with 2 tomcats running:


After this you'd probably want to (manually) send a signal (default is
sending 'SHUTDOWN') to this port and wait for what happens. I bet
catalina.out log will have some info on whether the shutdown was successful.

One more tip: you actually shouldn't run Tomcat as root, this could get
messy pretty fast.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Stopping-Xwiki-8-4-3-Tomcat-9-0-and-integrating-with-systemctl-tp7602905p7602907.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Email Validation: stuck in 'prepare_success' status

2017-02-27 Thread rez_spb
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.

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-status-tp7602814p7602869.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


[xwiki-users] Email Validation: stuck in 'prepare_success' status

2017-02-22 Thread rez_spb
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

  
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.



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