Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
xSQLServerRSConfig: Reporting Services need to restart for Reports web site to work #592
Details of the scenario you tried and the problem that is occurring:
The DSC configuration that is using the resource (as detailed as possible):
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
I have not tried with RS in SQL2014 yet. I can do that.
Yes deliberately using SQL2014 for the database engine, and installing both RS for SQL 2016 and SQL 2017, all on the same box, side by side. Using the SQL2014 instance as database for both RS 2016 and RS 2017.
This is my lab environment.
I will test a pure single server as you did above to verify. Named or default instance should not matter, but unsure.
Another thought - I've noticed that sometimes the RS website needs a long time to "warm up". For example, my DSC configuration assigns some roles on the report manager site right after initialising SSRS.
I've seen runs where it takes almost 5 minutes to make the connection (could also be my crappy VM :) I'm actually using [System.Net.WebRequest] with a long timeout in my custom DSC resource to "warm up" the site. Once that returns, my DSC resource executes New-WebServiceProxy to get SSRS web service proxy.
I would say it's up to you.
Regarding warming up, could you submit a separate issue for that? If you feel it's a problem that we need to address.
@bozho I run some test on the build worker for the integration tests - looking for a test to verify that the sites respond and I see around 20 seconds of lag before they respond. So if you see longer that you probably have a slower VM.
Working on this, to get the resource to restart the service.
added a commit
Sep 20, 2017
referenced this issue
Sep 20, 2017
I added a helper function to restart reporting services that uses
Using code partly from xSQLServerServiceAccount (by @nabrond) to illustrate the other option.