SSRS 2012 Failure sending mail: The report server has encountered a configuration error - reporting-services

I'm junior DBA, well actually i'm more of a sysadmin than a DBA.
I'm struggling with a reccuring problem in one of my SQL 2012 Dev reporting server. We've reports snapshot generated by dynamics CRM 2013 on the dev reporting server.
I've been ask to send those reports to a specific email address on which would be attached the generated report in pdf.
I'm able to scheddule a subscription to run for example every day at the certain time and the plan did execute well.
My problem is that the action is it supposed to trigger (sending an email) is not giving me the result i'm expecting.
I found in the report server LogFiles some intriging entries that, despite googling them around, haven't been able to resolved. The Log entries look like this:
schedule!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Handling Event TimedSubscription with data cf25ffaa-99c8-404f-bbf8-00c10ecbbe9b.
library!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Schedule f81461ea-5067- 4d14-b2ad-6930ce8ad3d8 executed at 06/20/2014 14:35:01.
schedule!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Creating Time based subscription notification for subscription: cf25ffaa-99c8-404f-bbf8-00c10ecbbe9b
library!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Schedule f81461ea-5067- 4d14-b2ad-6930ce8ad3d8 execution completed at 06/20/2014 14:35:01.
library!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
notification!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Handling subscription cf25ffaa-99c8-404f-bbf8-00c10ecbbe9b to report {f48fd9a9-4df8-e311-a000- 00155d060421}, owner: DOMAIN\Username, delivery extension: Report Server Email.
library!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: RenderForNewSession('/DEV_MSCRM/CustomReports/{f48fd9a9-4df8-e311-a000-00155d060421}')
library!WindowsService_203!1764!06/20/2014-14:35:01:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 5; possible reason - service account doesn't have rights to check domain user SIDs., Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
emailextension!WindowsService_203!1764!06/20/2014-14:35:01:: e ERROR: Error sending email. Exception: Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The report server has encountered a configuration error. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
notification!WindowsService_203!1764!06/20/2014-14:35:01:: i INFO: Notification 4718cbfe-0fef-481b-b0dd-60fae64c4271 completed. Success: True, Status: Failure sending mail: The report server has encountered a configuration error. Mail will not be resent., DeliveryExtension: Report Server Email, Report: {f48fd9a9-4df8-e311-a000-00155d060421}, Attempt 0
Can any one of you guys, faced such a problem? Would you mind pointing me out to the direction that i could follow to get the email sending working?
Thanks again for you time.

Related

Email Subscription Service Failures - SSRS

We are currently using SQL Server Reporting Services. We routinely (daily) experience failures of numerous subscription reports during various times of the day/night. There are times when several of the same reports fail. The failures are intermittent and don't exhibit any specific pattern. When we re-schedule the reports to run almost immediately, sometimes we receive subsequent failures and sometimes the reports running successfully.
The status is: Failure sending mail: One or more errors occurred. Mail will not be resent.
We have opened the LOG file in here -> C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\LogFiles look for filename: ReportServerService.log*
The following error message shows up for each failure in the
ERROR: Error sending email.
Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Mail.SmtpException:
The server committed a protocol violation
The server response was:
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
---> (Inner Exception #0) System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)<---
. Additional Information: SmtpException StatusCode:GeneralFailure
Unfortunately, the error is very vague and is extremely difficult to troubleshoot. Due to this on-going problem, we have to re-run up to about 20 reports daily. We have conducted extensive research and analysis of our report and SMTP server configurations but are still unable to resolve this annoying problem.
If anyone has experienced this issue and/or can provide some insight on how to permanently solve it, please let me know as soon as possible.
Thanks.
Obviously late, but this was probably caused when microsoft forced everything to TLS 1.2 and degraded 1.0
The fix was to add the below dwords to the registry so it wouldn't attempt TLS 1.0
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727]
"SystemDefaultTlsVersions" = dword:00000001
"SchUseStrongCrypto" = dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions" = dword:00000001
"SchUseStrongCrypto" = dword:00000001

Subscription Status: An error has occurred during report processing

I'm having difficulty sending auto generated e-mails via SSRS. I'm getting a vague error that states "An error has occurred during report processing.". I've detailed the full error below. Does anyone know some of the possible reasons why I would be getting this error?
Here are examples of the Shared Dataset Properties:
Here's the error I'm getting:
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Schedule 3d1ac939-3fb6-4313-9e04-bce6353a6825 executed at 07/11/2019 10:18:01.
schedule!WindowsService_9!14c0!07/11/2019-10:18:01:: Creating Time based subscription notification for subscription: a9d6e90a-84fc-439d-b715-49f7479cf69d
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Schedule 3d1ac939-3fb6-4313-9e04-bce6353a6825 execution completed at 07/11/2019 10:18:01.
library!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 1722, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: An exception has occurred in data set 'DS_Example'. Details: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
--- End of inner exception stack trace ---;
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: w WARN: Data source ' Data source for shared dataset': Report processing has been aborted.
processing!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
--- End of inner exception stack trace ---;
library!WindowsService_9!14c0!07/11/2019-10:18:01:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
notification!WindowsService_9!14c0!07/11/2019-10:18:01:: e ERROR: Error occured processing subscription a9d6e90a-84fc-439d-b715-49f7479cf69d: An error has occurred during report processing.
I ran the procedure that the data set reference. The data generates without any issues. I've created subscriptions for existing reports and they all executed without error. I've also check the connections to confirm that it wasn't a credential issue but it connected without error.
The subscription should generate a daily report to specified users.
The Win32 error 1722 is the key to this error message. It's an RPC server not available error. Microsoft has a KB article addressing this exact issue:
https://support.microsoft.com/en-us/help/842423/a-call-to-the-authzinitializecontextfromsid-api-function-fails-during
So it looks like the permissions needed to be granted for the service account database and table. The issue has been resolved!

Random errors in SSRS Log "The report server cannot open a connection to the report server database."

My SSRS runs snapshot in the morning. I noticed some of the reports are not snapshoting once in a while.
I found following error which is random daily for the difrerent report.
The report server cannot open a connection to the report server database.
library!WindowsService_28!1d168!02/23/2018-05:47:42:: e ERROR: Throwing Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: , Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.Data.SqlClient.SqlException: Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=0; handshake=11; [Login] initialization=0; authentication=0; [Post-Login] complete=16573; ---> System.ComponentModel.Win32Exception: The wait operation timed out
--- End of inner exception stack trace ---
Thank you,
Kalpesh
Possible reasons could be a network disconnection, blocking due to a firewall or antivirus or possible overload of the database server. What time does it occur? What processes are active at that time? Does the task manager at the database server show any performance flags? Does it happen everyday? Since when are you facing this issue? Was there a software update in the interim? More information will be required to troubleshoot.

SQL Server Agent service account login failure

I am using SQL Server 2014 on a Windows 2012 server. I have several database instances on the server.
One of the instances has an error in the log every day at 2 AM.
Login failed for user MyDomain\SQLAgentAccount.
Reason: Could not find a login matching the name provided.
[CLIENT: ].
Error: 18456, Severity: 14, State: 5
This is the service account used for SQL Server Agent. The Agent service is running and all jobs run successfully. I was able to trace it back to see that it is coming from PowerShell.
If I add the account explicitly, the error goes away. But I did not need to do that on the other instances and don't think it would be best practices to do so here.

missing dataset in Reporting Services Report after Moving TFS

We recently moved our Team Foundation Server (TFS) to a new server, and I am now trying to setup the reports once more. When I run the reports I get this error:
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'dsIteration'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
Or
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'dsPlatform'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
I created a new Team Project, and when I ran the reports from that project I got the same errors.
Where can I find these datasets or is there a way form me to redeploy all the report information to the new report server?
The cube on your SSAS server is not correctly running. There is a good blog post by Grant how to deal with it
Another Error as like as above:
An error has occurred during report processing. (rsProcessingAborted) Query execution failed for dataset 'dsPlatform'. (rsErrorExecutingCommand) For more information about this error navigate to the report server on the local server machine, or enable remote errors