Coder Social home page Coder Social logo

Comments (35)

alena-babrova avatar alena-babrova commented on June 2, 2024 1

Dear @ShivaPotlapelli,

Let's try once again.
Please, comment on the steps to understand where the issue is:

  1. You have successfully configured Email Integration (it has green "connected" status)
  2. You've configured an appropriate Notifications rule (e.g., always to send notification for any Launch finish, recipient with valid email is specified)
  3. You are trying to post test results (Launches) and they are posted successfully, you can see the results listed on the Launches page in ReporPortal. Launch is in finished stated.
  4. Has the recipient which is mentioned in the notification rule from step 2 received an email?
    If there is no email, then we need the logs from the "api-service" for the moment when Launch gets finished to see whether the SMTP sending was initiated and if there are any errors related to it.

Please, go through the steps and validate/comment each of them.
Without having the full picture and details, it's hard to tell where the issue is.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024 1

Dear @vitaliirymar,

Please, try to go through the instruction above (#2221 (comment)) and provide as many details as possible. It might us to find the root cause of your issue.

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

facing same issue here as well. can we address this asap

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Hello @paresh-celigo,

Please provide more details:

  • What is the status of Email Server integration?
  • What SMTP provider do you use? Did you try with different providers?
  • Maybe you can provide server logs with error details?

from reportportal.

paresh-celigo avatar paresh-celigo commented on June 2, 2024

Hi @alena-babrova here is the details:
image

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

Have the same issue with locally installed ReportPortal in Azure K8s. Could you please provide troubleshooting steps? Which logs can we check?

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @paresh-celigo,

Have you tried to use port 587 and TLS?

Also, pay attention, if you’ve enabled two-factor authentication on your Google account, you can use the SMTP server only via app password to allow another app to connect. If it's your case, you can find steps here: https://mailmeteor.com/blog/gmail-smtp-settings#how-to-use-the-gmail-smtp-settings

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

We use TLS and port 587. Also we use our org SMTP server e.g.: smtp.send.net. Need to fond out where is the root cause and don't know how to start the troubleshooting.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar,

Did your Email Server integration work before?
Do you have an error when you are trying to configure the integration or emails are not being sent?
Please provide some screenshots and error logs from API service.

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@vitaliirymar
please find the api logs
api.txt
please find error logs
2024-02-06 20:49:31.110 ERROR 1 --- [585-exec-352582] c.e.t.r.c.e.rest.RestExceptionHandler : Handled error:2024-02-06 20:49:31.110 ERROR 1 --- [585-exec-352582] .t.r.c.e.r.ReportPortalExceptionResolver : ReportPortalExceptionResolver > Validation failed for argument [3] in public com.epam.ta.reportportal.ws.model.EntryCreatedAsyncRS com.epam.ta.reportportal.ws.controller.TestItemController.startChildItem(java.lang.String,com.epam.ta.reportportal.commons.ReportPortalUser,java.lang.String,com.epam.ta.reportportal.ws.model.StartTestItemRQ): [Field error in object 'startTestItemRQ' on field 'name': rejected value [TC_C26220 with /flows/{{C26220FlowId}}/{{C26220ImportId}}/requests/thisisathousandcharaterwordkeyweareaddingthiskeytogetkeyistoolongerrorwhichisas3keyweaddmorecharaterssothekeylengthcanbeyouknowthousandcharaterlengthifyouhavesomethingtoaddyouadditheretoosincewewontbeabletoaddthousandcharaterwithoutaddjunkheremaybethewordingneedtobenonviolentbutyoucanaddanycharatersyouwantuntilitcrossthethousandcxharatermarkaddsomegoodstuffsoifsomeoonereadsittheycanthinkitsagoodideainsteadofwhatthepuckiamkeeponwritingitanditdidntevencrossfivehundreadcharaterhowmuchdoineedtoaddittomakeitathousandcharaterwhyisitsohardtowriteitmaybeishouldhaveusedsomeonlinetextgeneratetogetthetextbutwellialreadystartedsoishouldfinishwhatistarteddoyouthinkicancompletethiswhoknowslethopewehaveaproperkeyatthendofthedaymaybeishouldmentionedthisindsuthatiworkonwritingathousandcharterwordformytestcasesmaybetheythinkiworkhardandpromotemeahaitnotthateasytodothiskindofjobiwonderifthereisjobtowritestufflikethisandpostitinonlineijustcheckcharatercountandthisisnearathousandcharaterithinkwecanclosethisconversationsoonmaybethisthelastlineletcountthecharaterstheend]; codes [NotBlankWithSize.startTestItemRQ.name,NotBlankWithSize.name,NotBlankWithSize.java.lang.String,NotBlankWithSize]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [startTestItemRQ.name,name]; arguments []; default message [name],1024,1]; default message [Field ''{0}'' should have size from ''{2}'' to ''{1}''.]]2024-02-06 20:49:31.110 ERROR 1 --- [585-exec-352582] c.e.t.r.c.e.rest.DefaultErrorResolver : Validation failed for argument [3] in public com.epam.ta.reportportal.ws.model.EntryCreatedAsyncRS com.epam.ta.reportportal.ws.controller.TestItemController.startChildItem(java.lang.String,com.epam.ta.reportportal.commons.ReportPortalUser,java.lang.String,com.epam.ta.reportportal.ws.model.StartTestItemRQ): [Field error in object 'startTestItemRQ' on field 'name': rejected value [TC_C26220 with /flows/{{C26220FlowId}}/{{C26220ImportId}}/requests/thisisathousandcharaterwordkeyweareaddingthiskeytogetkeyistoolongerrorwhichisas3keyweaddmorecharaterssothekeylengthcanbeyouknowthousandcharaterlengthifyouhavesomethingtoaddyouadditheretoosincewewontbeabletoaddthousandcharaterwithoutaddjunkheremaybethewordingneedtobenonviolentbutyoucanaddanycharatersyouwantuntilitcrossthethousandcxharatermarkaddsomegoodstuffsoifsomeoonereadsittheycanthinkitsagoodideainsteadofwhatthepuckiamkeeponwritingitanditdidntevencrossfivehundreadcharaterhowmuchdoineedtoaddittomakeitathousandcharaterwhyisitsohardtowriteitmaybeishouldhaveusedsomeonlinetextgeneratetogetthetextbutwellialreadystartedsoishouldfinishwhatistarteddoyouthinkicancompletethiswhoknowslethopewehaveaproperkeyatthendofthedaymaybeishouldmentionedthisindsuthatiworkonwritingathousandcharterwordformytestcasesmaybetheythinkiworkhardandpromotemeahaitnotthateasytodothiskindofjobiwonderifthereisjobtowritestufflikethisandpostitinonlineijustcheckcharatercountandthisisnearathousandcharaterithinkwecanclosethisconversationsoonmaybethisthelastlineletcountthecharaterstheend]; codes [NotBlankWithSize.startTestItemRQ.name,NotBlankWithSize.name,NotBlankWithSize.java.lang.String,NotBlankWithSize]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [startTestItemRQ.name,name]; arguments []; default message [name],1024,1]; default message [Field ''{0}'' should have size from ''{2}'' to ''{1}''.]]2024-02-07 03:43:40.907 ERROR 1 --- [585-exec-355834] c.e.t.r.c.e.rest.RestExceptionHandler : Handled error:2024-02-07 03:43:40.908 ERROR 1 --- [585-exec-355834] .t.r.c.e.r.ReportPortalExceptionResolver : ReportPortalExceptionResolver > Validation failed for argument [3] in public com.epam.ta.reportportal.ws.model.EntryCreatedAsyncRS com.epam.ta.reportportal.ws.controller.TestItemController.startChildItem(java.lang.String,com.epam.ta.reportportal.commons.ReportPortalUser,java.lang.String,com.epam.ta.reportportal.ws.model.StartTestItemRQ): [Field error in object 'startTestItemRQ' on field 'name': rejected value [TC_C26214 with /flows/{{C26214flowId}}/{{C26214exportId}}/requests/asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245]; codes [NotBlankWithSize.startTestItemRQ.name,NotBlankWithSize.name,NotBlankWithSize.java.lang.String,NotBlankWithSize]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [startTestItemRQ.name,name]; arguments []; default message [name],1024,1]; default message [Field ''{0}'' should have size from ''{2}'' to ''{1}''.]]2024-02-07 03:43:40.908 ERROR 1 --- [585-exec-355834] c.e.t.r.c.e.rest.DefaultErrorResolver : Validation failed for argument [3] in public com.epam.ta.reportportal.ws.model.EntryCreatedAsyncRS com.epam.ta.reportportal.ws.controller.TestItemController.startChildItem(java.lang.String,com.epam.ta.reportportal.commons.ReportPortalUser,java.lang.String,com.epam.ta.reportportal.ws.model.StartTestItemRQ): [Field error in object 'startTestItemRQ' on field 'name': rejected value [TC_C26214 with /flows/{{C26214flowId}}/{{C26214exportId}}/requests/asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245asdfghjk123456vhk245]; codes [NotBlankWithSize.startTestItemRQ.name,NotBlankWithSize.name,NotBlankWithSize.java.lang.String,NotBlankWithSize]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [startTestItemRQ.name,name]; arguments []; default message [name],1024,1]; default message [Field ''{0}'' should have size from ''{2}'' to ''{1}''.]]

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Hello @vitaliirymar,

Could you please answer my questions:
Did your Email Server integration work before?
Do you have an error when you are trying to configure the integration or emails are not being sent on launch finish?

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@alena-babrova please update us on the above error

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

@ShivaPotlapelli thank for your update.

Please, answer on my questions that I've asked two times.

As for the logs - what action did you do when the error happened? Because at the first glance I don't see any SMTP related errors there.

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

Hello @vitaliirymar,

Could you please answer my questions:
Did your Email Server integration work before?
Do you have an error when you are trying to configure the integration or emails are not being sent on launch finish?

Hi @alena-babrova
This is the first time integration, and we've never seen email notifications.
Had no time to check logs yet. Now, when you provided the service, I know where to check. Will update, when I have the information.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar,
I would suggest checking the following flow:

  1. Make sure that you have valid SMTP credentials (you can log in using them in your email account)
  2. Try to make Email integration in ReportPortal with correct port/SSL or TLS
  3. If error happens, make a screenshot and attach here. Also, go to API service and provide logs

If Email integration is successful, make sure you have notification rules configured correctly (Project Settings -> Notifications).

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@alena-babrova ,

As for the logs - what action did you do when the error happened? Because at the first glance I don't see any SMTP related errors there.
uninstalled the email server integration and again made an integration as and when we didn't see the notifications not coming up

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

Dear @vitaliirymar,
I would suggest checking the following flow:

  1. Make sure that you have valid SMTP credentials (you can log in using them in your email account)
  2. Try to make Email integration in ReportPortal with correct port/SSL or TLS
  3. If error happens, make a screenshot and attach here. Also, go to API service and provide logs

If Email integration is successful, make sure you have notification rules configured correctly (Project Settings -> Notifications).

@alena-babrova

  1. This company smtp integration doesn't require credentials.
  2. We don't face errors during integration configuration.
  3. Ok.
    Rules are configured correctly.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

@vitaliirymar,
So sounds like Configuration step is successful and is without any errors.
Then we need to see what error happens on Launch Finish (because emails are configured to be sent on Launch Finish event).
Please, provide the api-service's log when finishing a launch - so that we can investigate what is wrong with sending.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

alena-babrova please update us on the above error

@ShivaPotlapelli,
as for the error log you provided, you can see that the problem is in the length of the names of your test items. By default, ReportPortal does not allow names of Tests/Steps with the length more than 1024 symbols.

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@alena-babrova all this days it worked and all of sudden do u think.. its because of names of the test ..i don't think its because of that.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

@ShivaPotlapelli,

I'm just trying to help you based on the information you provided. At the moment I don't know what happens as well, except the fact with "long names".
I still don't have any evidence of SMTP errors in logs.

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@alena-babrova I need a way to get back the things working as usual..at the moment am not able to delete the rules as well..to establish them from scratch..am struck up on this..we wanted to stop using report portal because of this imp bug
@DzmitryHumianiuk / @alena-babrova / Pink-Bumblebee

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@DzmitryHumianiuk / @alena-babrova / Pink-Bumblebee can one of u lookinto

from reportportal.

ShivaPotlapelli avatar ShivaPotlapelli commented on June 2, 2024

@alena-babrova Thanks for your reply and responding to my previous responses quickly.
Its because of SMTP errors in logs and api service pods being used 90% limit
we can close this now

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @ShivaPotlapelli,

Thank you for the update. And it's good to know that the issue is resolved on your side.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar,

Could you tell me please if the issue is still relevant for you or we can close the ticket?

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

Dear @alena-babrova ! Can't find any logs related to smtp. What can be keywords there? SMTP? Email? exchange? message?

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

@alena-babrova see this error. But I doubt it is related to smtp. Also I see the results in ReportPortal.
2024-02-20 09:28:56.224 ERROR 1 --- [8585-exec-15668] .AuthUtils$SerialUidReplacingInputStream : Potentially Fatal Deserialization Operation.
java.io.InvalidClassException: Overriding serialized class version mismatch: local serialVersionUID = 550 stream serialVersionUID = 520
at com.epam.ta.reportportal.auth.util.AuthUtils$SerialUidReplacingInputStream.readClassDescriptor(AuthUtils.java:105)
at java.base/java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1992)
at java.base/java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1870)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2201)
at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1687)
at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:489)
at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:447)
at java.base/java.util.TreeSet.readObject(TreeSet.java:524)
at java.base/jdk.internal.reflect.GeneratedMethodAccessor229.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1046)
at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2357)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2228)
...
RP_SMTP_ISSUE_INVESTIGATION.txt

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar, yes, you are right. This error is related to switching to new Spring security. We have fixed the issue starting from version 24.1 (it will be released soon).
Anyway, this error log is not related to your issue.

Please, try to find out what is going on when launch finishes (number 4 from my instruction).

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

@alena-babrova, can't find any relevant logs for email notifications. Checking Azure Firewall and NSG rules for the SMTP server.

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar,

Plan A:
Let's try to exclude the parts that are OK in order to narrow down the search area where the issue may be. Could I ask you to:

  1. Provide screenshot with successful set up of email integration
  2. Provide screenshot with notification rules (how they are configured)
  3. Show on the screenshot that you have at least one finished Launch which matches at least one rule.

Plan B:
Also, I would suggest making a testing on your end with different SMTP provider. E.g. use any other valid email account with authentication for integration - will it work for different email account?
This way we will know if the problem is in ReportPortal or maybe it is related to your system/network configuration.

Other than that - it's hard to tell where the problem is since we don't have any logs with errors.

Thanks!

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

@alena-babrova added also authentication to the configuration and now there is an error in log:
2024-02-22 15:45:35.501 ERROR 1 --- [stener-exec2832] c.e.t.r.c.e.h.l.LaunchNotificationRunner : Unable to send email.
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 MIME message is missing 'From' header
Can it be related to the non-email value in Sender email field?

image

image
image

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

@vitaliirymar,
Please try using full email address in the "Sender email" field instead of just username.

from reportportal.

vitaliirymar avatar vitaliirymar commented on June 2, 2024

Hi @alena-babrova ! The issue is fixed by adding a real email to Default sender name
If this field is optional, why I've got error and no emails if this field is empty or with non email string?
https://reportportal.io/docs/plugins/EmailServer#global-e-mail-server-integration

2024-02-27 15:39:20.216 ERROR 1 --- [stener-exec3179] c.e.t.r.c.e.h.l.LaunchNotificationRunner : Unable to send email.
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 550 MIME message is missing 'From' header

from reportportal.

alena-babrova avatar alena-babrova commented on June 2, 2024

Dear @vitaliirymar,
Yes, you are right. Seems like we have a validation bug on the "Email integration" form - "Sender email" should be a required field.
I have created a ticket to fix that in the nearest release.

Thank you for your contribution!

from reportportal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.