简体   繁体   English

SSRS 2012-未初始化的服务器

[英]SSRS 2012 - uninitialized server

I have been experiencing random connection/handshake problems w/ a hyper server VM running SQL and SSRS 我一直在遇到运行SQL和SSRS的超级服务器VM的随机连接/握手问题

So the network guys suggested building a new VM and trying it there. 因此,网络人员建议构建一个新的VM并在那里进行尝试。 (Have you tried rebooting? ) (您是否尝试过重启?)

I asked that they rename the old server (--> SQLBKUP) and name the new server to the current name (--> SQL) so all my connection strings will continue to work. 我要求他们重命名旧服务器(-> SQLBKUP)并将新服务器命名为当前名称(-> SQL),以便我所有的连接字符串将继续起作用。

Regardless the wisdom of that approach, that is all now done. 不管这种方法的智慧如何,现在都已完成。

All of our applications work. 我们所有的应用程序都能正常工作。 (and the weird handshake issue is gone,joy) I have reinstalled SSRS and I thought I was home free. (并且奇怪的握手问题已经消失了,高兴)我已经重新安装了SSRS,我以为我可以免费在家了。

We backed up and restored the ReportServer and ReportServerTemp databases to the new server. 我们已备份ReportServer和ReportServerTemp数据库并将其还原到新服务器。

If i try to point to these databases , I keep getting this error 如果我尝试指向这些数据库,则会不断出现此错误

The report server installation is not initialized.     (rsReportServerNotActivated) Get Online Help 

Any all information I can find about this for 2012 says that the initialization happens automatically when you configure a database. 我在2012年能找到的所有信息都表明,在配置数据库时,初始化会自动发生。

I tried creating a new database, and presto, everything works fine. 我尝试创建一个新的数据库,然后,一切正常。 I reconfigured SSRS to point at the old database and I again get the rsReportServerNotActivated error. 我将SSRS重新配置为指向旧数据库,然后再次出现rsReportServerNotActivated错误。

I also 'powered down' SQLBKUP in case it was causing some confusion, I cant imagine what that might be, but why not... This did NOT correct the problem. 我还“关闭”了SQLBKUP,以防它引起一些混乱,我无法想象这可能是什么,但是为什么不...这并不能解决问题。

Any ideas on why the databases that were working on 1 server wont work on the new one? 关于为什么在1台服务器上运行的数据库为何无法在新服务器上运行的任何想法?

Searching the interweb for this issue I find two results for 2012 SSRS (many hits for 2005 issues/resolutions ) 在互联网上搜索此问题,我发现了2012年SSRS的两个结果(对于2005年问题/决议,有很多命中)

this article details how the RSExec role should be configured, I have verified that is all correct. 本文详细介绍了应该如何配置RSExec角色,我已经验证了这一切都是正确的。 https://msdn.microsoft.com/en-us/library/cc281308.aspx https://msdn.microsoft.com/en-us/library/cc281308.aspx

this article details the mechanics of various ways to move a database. 本文详细介绍了移动数据库的各种方式的机制。 The back up and restore operations went off w/oa hitch. 备份和还原操作没有障碍。 https://msdn.microsoft.com/en-us/library/ms156421.aspx https://msdn.microsoft.com/en-us/library/ms156421.aspx

neither article mentions cleaning up any server names, ip addresses, etc. that might be in a config table. 这两篇文章都没有提到清除可能在配置表中的任何服务器名称,IP地址等。 Inspecting the tables in SSMS, I dont see any tables that look like they might need such attention. 检查SSMS中的表,我看不到任何看起来可能需要此类注意的表。

I can always recreate the environment, I am aout to that point, at least I will know what I have in front of me. 我总是可以重新创建环境,但是我已经不适应这一点了,至少我会知道自己面前的东西。 If anyone has any suggestions, i would appreciate it, Im sure I will be up for a while... :-) 如果有人有任何建议,我将不胜感激,我确定我会一段时间... :-)

tyia greg 蒂亚·格雷格

You are getting that error because you haven't moved the old encryption keys to the new server. 之所以收到该错误,是因为您没有将旧的加密密钥移到新的服务器上。 SSRS uses encryption to secure credentials and connection information. SSRS使用加密来保护凭据和连接信息。 You'll need to get the encryption keys from the old server and restore them to the new one OR if you don't have the keys anymore you can create new ones but you'll need to setup your connection information again. 您需要从旧服务器上获取加密密钥并将其还原到新的密钥, 或者,如果您不再拥有该密钥,则可以创建新的密钥,但是您需要再次设置连接信息。

First backup your old encryption keys: 首先备份您的旧加密密钥:

  1. Start the Reporting Services Configuration Manager, and then connect to the report server instance you want to configure. 启动Reporting Services配置管理器,然后连接到要配置的报表服务器实例。
  2. Click Encryption Keys, and then click Back Up. 单击“加密密钥”,然后单击“备份”。
  3. Type a strong password. 输入一个强密码。
  4. Specify a file to contain the stored key. 指定一个文件来包含存储的密钥。 Reporting Services appends a .snk file extension to the file. Reporting Services将.snk文件扩展名附加到该文件。 Consider storing the file on a disk separate from the report server. 考虑将文件存储在与报表服务器分开的磁盘上。
  5. Click OK. 单击确定。

Then restore the keys to the new server: 然后将密钥还原到新服务器:

  1. Start the Reporting Services Configuration Manager, and then connect to the report server instance you want to configure. 启动Reporting Services配置管理器,然后连接到要配置的报表服务器实例。
  2. On the Encryption Keys page, click Restore. 在“加密密钥”页面上,单击“还原”。
  3. Select the .snk file that contains the back up copy. 选择包含备份副本的.snk文件。
  4. Type the password that unlocks the file. 输入解锁文件的密码。
  5. Click OK. 单击确定。

You can also use the rskeymgmt utility, see the MSDN article: Back Up and Restore Reporting Services Encryption Keys . 您也可以使用rskeymgmt实用程序,请参阅MSDN文章: 备份和还原Reporting Services加密密钥


If you don't have access to the older server you'll need to delete and recreate the encryption keys. 如果您无权访问较旧的服务器,则需要删除并重新创建加密密钥。 Once you delete the keys the server will automatically re-initialize itself and you'll need to re-enter all of the lost encrypted information. 删除密钥后,服务器将自动重新初始化自身,并且您需要重新输入所有丢失的加密信息。

The following things will occur when you delete the encryption keys: 删除加密密钥时,将发生以下情况:

  • Connection strings in shared data sources are deleted. 共享数据源中的连接字符串将被删除。 Users who run reports get the error "The ConnectionString property has not been initialized." 运行报告的用户收到错误“ ConnectionString属性尚未初始化”。 Stored credentials are deleted. 存储的凭证被删除。 Reports and shared data sources are reconfigured to use prompted credentials. 报告和共享数据源已重新配置为使用提示的凭据。

  • Reports that are based on models (and require shared data sources configured with stored or no credentials) will not run. 基于模型的报告(并且需要配置了存储的凭据或没有凭据的共享数据源)将无法运行。

  • Subscriptions are deactivated. 订阅被停用。

Steps to delete the keys: 删除密钥的步骤:

  1. Start the Reporting Services Configuration tool, and then connect to the report server instance you want to configure. 启动Reporting Services配置工具,然后连接到要配置的报表服务器实例。

  2. Click Encryption Keys, and then click Delete. 单击加密密钥,然后单击删除。 Click OK. 单击确定。

  3. Restart the Report Server Windows service. 重新启动报表服务器Windows服务。 For a scale-out deployment, do this on all report server instances. 对于横向扩展部署,请在所有报表服务器实例上执行此操作。

This is from MSDN - Delete and Re-create Encryption Keys . 这来自MSDN- 删除和重新创建加密密钥 The article has a lot more useful information. 这篇文章有很多有用的信息。

For more information also read Configure and Manage Encryption Keys 有关更多信息,请阅读配置和管理加密密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM