-
Notifications
You must be signed in to change notification settings - Fork 226
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
SqlRs: Reporting services are not initialized #936
Comments
@rdavisunr Would you mind posting you entire config (without any sensetive information) to a public gist and post the link here? I would like to see your config and see if I have time to reproduce the problem. Could you after the below line add a |
I checked the Reporting Services Log files and discovered the issue... As I mentioned before, I had the While this allowed the remote ReportSever database(s) to be created successfully, somehow the initialization would fail because the machine account The error in the log contained the following: Interestingly, this issue doesn't occur when using the SQL Server Reporting Services Configuration Manager GUI to create the databases. In that case, the database is created with a User for However, when the databases are created via xSqlServerRsConfig, the user that gets added is the So, it would appear that the Configuration GUI is doing some translation that the Resource is not. I can still provide the gist if you need it, but I don't think you will :) Thanks |
Maybe the GUI creates a SQL Login on the remote server before configuring this. What if you create the Login and the User in the databased (the same as the GUI did) before running the initializing? When running with a domain account, as the article you linked to also says, that account need to have permission on the remote server, so that will be the same for the Network Service account.
Please list the permissions needed to initialize the databases as that should be update in the README.md I think. |
@rdavisunr did you need to use |
@johlju - no, I didn't need to use the Start-Sleep. It seems like the scripts are almost doing the right thing. However, in the DSC case, the user being added to the DB is It might work if I created the machine account login and user ahead of time. However, the DSC scripts fail if the databases already exists (for different reasons)... For now, the domain account workaround is fine for us. For permissions, the domain account has the |
The I'm not particularly fond of allowing computer accounts to connect to database instances due to the security implications. It is far better to us a gMSA when specifying a service account. |
Details of the scenario you tried and the problem that is occurring:
I encountered this issue while continuing on my quest to configure a standalone SSRS server that uses the SQLEngine on a different server.
Two server setup:
DB.mydomain.com
)NT AUTHORITY\NETWORK SERVICE
(FQDN isSSRS.mydomain.com
)xSQLServerRSConfig
has thePsDscRunAsCredential
set to the credentials of a Domain AdminThe
xSQLServerRSConfig
resource gets as far as creating the databases on the remote server (DB.mydomain.com) and then fails with a non-informative error message. However, prior to the error, there is a verbose log that saysReporting services DB.mydomain.com\MSSQLSERVER are not initialized.
That message seems odd because Reporting services is running on SSRS.mydomain.comAlso worth noting is that once the databases are created, rerunning the config fails due to their presence. There is another issue (#860) logged that also mentions that. Interestingly, the second bullet in that issue also seems relevant (where it mentions that isInitialized is checked and fails, but perhaps needs to wait longer). Perhaps this second bullet is describing the situation I am in as well?
Here is the verbose output from Start-DscConfiguration:
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 2012R2, SQL Server 2014 SP2, PowerShell5.1
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
SqlServer 21.0.17199
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
9.0.0.0
The text was updated successfully, but these errors were encountered: