SmarterTools Portal Language
 
HomeKnowledge BaseSmarterStatsTroubleshooting - MRS not authorized issues
Information
Article ID163
Created On12/15/2005
Modified9/19/2008
Share With Others
Troubleshooting - MRS not authorized issues

Applies to: SmarterStats 3.x and higher

Problem: On the Server Status screen in SmarterStats, the same server is mentioned twice, once as localhost and once as the machine name. The localhost server has an MRS not authorized error.

Resolution: You can fix this, and it only involves changing things in two files. It's a quick task. (Although it may look daunting, the instructions are long because I made them fairly detailed).

  1. Open the file MRS\config\AppConfig.xml with a text editor (after making a backup)
  2. Find the lines that look like the one below:
<RemoteServer ServerID=" 1="" servername="localhost" ip="127.0.0.1" servicekey="3130D0E8-40F7B52A" >="">
  1. Find the two of these rows that match the machine. One with localhost, and one with the machine name.
  2. Decide which one you want to keep, and which one you don't (It doesn't really matter).
  3. Note down the server ID of the one you want to delete, as well as the one you want to keep.
  4. Delete the row with the one you want to remove.
  5. Below those rows, you'll find a bunch of rows that look like:
<Site ServerID=" 1="" siteid="1" sitename="example.com" >="">
  1. Find all rows that have ServerID="[oldvalue]" and replace it with ServerID="[newvalue]". You may want to use the search and replace function of Notepad.
  2. Save the file and close it.
  3. Open the file Service\ServerSettings.xml with Notepad (after making a backup).
  4. Find a row that looks like the one below:
<ServiceKey xmlns=" >3130d0e8-40f7b52a<="" servicekey>="">
  1. Delete the whole row and save the file.
  2. Restart IIS
  3. Wait about 5 minutes for the site list to get published to the service, and you should be all set.

Problem: When using SmarterStats Enterprise Edition the MRS Not Authorized message can appear in the Service Status page as a side effect of moving SmarterStats or reinstalling in a different location.  The security model of SmarterStats prevents new or unauthorized servers from connecting to it without following certain steps. 

Resolution: To clear the message and allow SmarterStats to function properly, do the following on the remote server.

  1. Open up C:\program files\smartertools\smarterstats\service\serversettings.xml with Notepad.
  2. Find the line that looks like this: <ServiceKey>....some text here... </ServiceKey>
  3. Delete that line and save the file.
  4. Log in to SmarterStats as the admin and go to Status->Server Status.
  5. Wait 15 minutes for SmarterStats to synchronize, or restart IIS and log in to SmarterStats again.
  6. Logs should then be importing, and the time required depends on the number and complexity of the sites.