SQL SERVER – Event ID 107- Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database.

Generally, I like to pick and choose the way various services are installed when working with SQL Server. I am careful not to have unnecessary services like “Reporting Services”, “Agent” etc running. I install them and keep them in a switched off state because I don’t like to keep eating away the resources on my PC during startup. But this is more of a best practice in general, I see not many doing. Let us learn how we can fix the Event ID 107 error with Report Server.

Most of them have an attitude of going through the next button not watching what is shown on the screen during installation. I wanted to share this tip with you before jumping to the problem statement for the blog because I had to do some research before solving my customer’s problem stated below. This was the second time someone asked me a random question and I was determined to solve the same.

Error with Report Server

One of my clients reported an error which is the subject of the blog. In the event viewer they were seeing below error:

SQL SERVER - Event ID 107- Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database. ssrs-01

Event Type: Error
Event Source: Report Server Windows Service (MSSQLSERVER)
Event Category: Management
Event ID: 107
Computer: SQLSERVER
Description:
Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database

The error is generic because it doesn’t tell the exact error which is causing a connectivity error. My immediate question was that, are there any more errors? So, I asked them to look at Reporting Service Log file.

Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database.
The application domain WindowsService_17 failed to initialize. Error: Microsoft.ReportingServices.Diagnostics.Utilities.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: Cannot open database “ReportServer” requested by the login. The login failed.
Login failed for user ‘MYDOMAIN\sqladmin’.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

Here is the message on top of the stack, I have highlighted the error.

Resolution / Fix:

So I captured the profiler and found that the account used by not having permission to connect to the database. After giving permission we were able to start SSRS.

I learned something which is worth sharing. Here is the link which talks about the location of SSRS logs which has helped me in finding exact error message Reporting Services Log Files and Sources

Do you know the location of SSRS logs? Is there any other SSRS error you have seen? Share via comments.

Reference: Pinal Dave (https://blog.sqlauthority.com)

, , ,
Previous Post
SQL SERVER – Identifying Application vs Network Performance Issues
Next Post
SQL SERVER 2016 – How to Use SQL Server 2016 – Stretch Database – Notes from the Field #127

Related Posts

3 Comments. Leave new

  • Thank you very much. I had the same issue on a server and your article helped me, fixing this error message.

    Reply
  • Hi,
    I have a similar issue. I get the error message, “The report server cannot connect to its database” can you help me with that ? I checked the logs and I do see that report server is unable to connect to the database.

    I created a new user to connect to the database, but it still gives the same error. Please let me know.

    Thanks.

    Reply
  • Same issue,

    System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 – An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.)
    at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)

    Any idea how to fix this?

    Reply

Leave a Reply

Menu