Re: email-ext plugin stops without explication

2023-01-10 Thread 'Xavier Raynaud' via Jenkins Users
Hi, 

I've done that, and after some time found the root cause. 
Exception in thread "main" java.util.ServiceConfigurationError: 
jakarta.mail.Provider: Provider com.sun.mail.imap.IMAPProvider not a subtype
at java.util.ServiceLoader.fail(ServiceLoader.java:239) 
[...] 


Googleling a bit about this exception leads me to: 
[ 
https://stackoverflow.com/questions/66224488/jakarta-mail-with-openjdk-11-java-util-serviceconfigurationerror-jakarta-mail
 | 
https://stackoverflow.com/questions/66224488/jakarta-mail-with-openjdk-11-java-util-serviceconfigurationerror-jakarta-mail
 ] 


After that, it was simply solved by deinstalling unnecessary javax-mail plugin. 
That's all folks ! 

Many thanks ! 



From: "geoffroy...@gmail.com"  
To: "Jenkins Users"  
Sent: Monday, January 9, 2023 9:31:51 AM 
Subject: Re: email-ext plugin stops without explication 

Hello 
i would recommend configuring a dedicated logger to capture more debug info 
from main Jenkins logs, something like: 



This would give you more context about the email sending, and hopefully also 
during the failure. 

Good luck 

On Friday, 6 January 2023 at 18:47:13 UTC+1 Xavier Raynaud wrote: 



Hi, 

I'm using email-ext plugin on a post-build task of a FreeStyle project and 
sometime, emails are not send. 
In order to understand why, I activate the "Enable Debug Mode" of this plugin. 

I obtain the following output when all is OK: 

18:05:27 Performing post-build step 18:05:27 Checking if email needs to be 
generated 18:05:27 Email was triggered for: Always 18:05:27 Sending email for 
trigger: Always 18:05:27 Sending mail from default account using custom from 
address [ https://mail.kalray.eu/href | to...@kalray.eu ] 
18:05:27 messageContentType = text/plain; charset=UTF-8 
[...] 
18:05:27 DEBUG SMTP: message successfully delivered to mail server 
[...] 
18:05:27 Finished: SUCCESS 


But from time to time, I obtain the following output, and... nothing more. The 
run just stops here. 

17:55:17 Performing post-build step 17:55:17 Checking if email needs to be 
generated 17:55:17 Email was triggered for: Always 17:55:17 Sending email for 
trigger: Always 17:55:17 Sending mail from default account using custom from 
address [ https://mail.kalray.eu/href | to...@kalray.eu ] 

I'm using jenkins 2.346.3 and email-ext 2.92 

Any advice to debug this issue ? 
Regards, 
Xavier R. 






-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | 
jenkinsci-users+unsubscr...@googlegroups.com ] . 
To view this discussion on the web visit [ 
https://groups.google.com/d/msgid/jenkinsci-users/70c2dcad-da36-4e72-971c-3db117fbf0edn%40googlegroups.com?utm_medium=email&utm_source=footer
 | 
https://groups.google.com/d/msgid/jenkinsci-users/70c2dcad-da36-4e72-971c-3db117fbf0edn%40googlegroups.com
 ] . 



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/766426069.1339638.1673354146893.JavaMail.zimbra%40kalray.eu.


Re: email-ext plugin stops without explication

2023-01-09 Thread geoffroy...@gmail.com
Hello

i would recommend configuring a dedicated logger to capture more debug info 
from main Jenkins logs, something like:

[image: Screenshot 2023-01-09 092811.png]

This would give you more context about the email sending, and hopefully 
also during the failure.

Good luck

On Friday, 6 January 2023 at 18:47:13 UTC+1 Xavier Raynaud wrote:

> Hi,
>
> I'm using email-ext plugin on a post-build task of a FreeStyle project and 
> sometime, emails are not send.
> In order to understand why, I activate the "Enable Debug Mode" of this 
> plugin.
>
> I obtain the following output when all is OK:
>
> *18:05:27* Performing post-build step*18:05:27* Checking if email needs to be 
> generated*18:05:27* Email was triggered for: Always*18:05:27* Sending email 
> for trigger: Always*18:05:27* Sending mail from default account using custom 
> from address to...@kalray.eu
> *18:05:27* messageContentType = text/plain; charset=UTF-8
> [...]
> *18:05:27* DEBUG SMTP: message successfully delivered to mail server
> [...]
> *18:05:27* Finished: SUCCESS
>
>
>
> But from time to time, I obtain the following output, and... nothing more. 
> The run just stops here.
>
> *17:55:17* Performing post-build step*17:55:17* Checking if email needs to be 
> generated*17:55:17* Email was triggered for: Always*17:55:17* Sending email 
> for trigger: Always*17:55:17* Sending mail from default account using custom 
> from address to...@kalray.eu
>
> I'm using jenkins 2.346.3 and email-ext 2.92
>
> Any advice to debug this issue ?
> Regards,
> Xavier R.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/70c2dcad-da36-4e72-971c-3db117fbf0edn%40googlegroups.com.


email-ext plugin stops without explication

2023-01-06 Thread 'Xavier Raynaud' via Jenkins Users
Hi, 

I'm using email-ext plugin on a post-build task of a FreeStyle project and 
sometime, emails are not send. 
In order to understand why, I activate the "Enable Debug Mode" of this plugin. 

I obtain the following output when all is OK: 

18:05:27 Performing post-build step 18:05:27 Checking if email needs to be 
generated 18:05:27 Email was triggered for: Always 18:05:27 Sending email for 
trigger: Always 18:05:27 Sending mail from default account using custom from 
address [ mailto:t...@kalray.eu | t...@kalray.eu ] 
18:05:27 messageContentType = text/plain; charset=UTF-8 
[...] 
18:05:27 DEBUG SMTP: message successfully delivered to mail server 
[...] 
18:05:27 Finished: SUCCESS 


But from time to time, I obtain the following output, and... nothing more. The 
run just stops here. 

17:55:17 Performing post-build step 17:55:17 Checking if email needs to be 
generated 17:55:17 Email was triggered for: Always 17:55:17 Sending email for 
trigger: Always 17:55:17 Sending mail from default account using custom from 
address [ mailto:t...@kalray.eu | t...@kalray.eu ] 

I'm using jenkins 2.346.3 and email-ext 2.92 

Any advice to debug this issue ? 
Regards, 
Xavier R. 



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/59065873.750887.1673026044190.JavaMail.zimbra%40kalray.eu.