-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xSQLServerRSConfig: Reporting Services need to restart for Reports web site to work #592
Comments
I've tried this on Win 2012R2 and SQL Server 2014 (default instance), it works without restarting the server. Are you deliberately using two different SQL instances ( |
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. |
Also... I have to restart the RS service for both 2016 and 2017 for Reports site to work in each. |
Ok, no worries. It doesn't hurt to restart when initialising RS. |
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. 😄 I don't mind you adding it to the PR #575, that would the resource work better when that PR is merged. But if you want, you can send it in as a separate PR together with another change. Regarding warming up, could you submit a separate issue for that? If you feel it's a problem that we need to address. |
Just sent in a PR for integration tests. When this issue is resloved an integration tests should be added to verify that the ReportServer and Reports site can be access without throwing http status code 503. |
@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. |
- Now the resource will restart the Reporting Services service after initializing (issue dsccommunity#592). This will enable the Reports site to work.
I added a helper function to restart reporting services that uses Using code partly from xSQLServerServiceAccount (by @nabrond) to illustrate the other option.
|
@johlju Yes, ~20 seconds sounds ok. We've had some networking issues with our NAS storage for our VMs, so sometimes things would grind to a halt :) |
- Now the resource will restart the Reporting Services service after initializing (issue dsccommunity#592). This will enable the Reports site to work.
- Changes to xSQLServerRSConfig - Now the resource will restart the Reporting Services service after initializing (issue #592). This will enable the Reports site to work.
Details of the scenario you tried and the problem that is occurring:
After configuring reporting services using xSQLserverRSConfig the 'Reports' web site does not work. After a restart of the 'ReportServer$SQL2016' service the Reports web site works.
Error:
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:
Windows Server 2012 R2, SQL Server 2016 & 2017, WMF 5.0
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev (PR #575)
The text was updated successfully, but these errors were encountered: