This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Events broken in RR

Refering back to my ticket on the "old" forum...

http://en.community.dell.com/techcenter/data-protection/f/4816/t/19987712

 

Events in to the windows event viewer doesnt work. All normal bits checked, in RR, reg keys, support havent found a solution yet

  • For everybody who checks this topic. We found a procedure to alleviate the issue. Please note that Stephen is located in the UK, thus his Core Servers are set for the English UK locale. When installing/upgrading Rapid Recovery, if the user selects the English language, the Core locale may default to English US. (I was not able to reproduce the issue but it surely happen on Stephen's cores; I suspect that it is related to the UK Windows installation media -- but this is an issue for another discussion). In a nutshell, the following steps seem to get the DELL log back in action:

    1. Find a suitable maintenance interval for each core, starting with the target cores.
    2. Install Chrome and make it the default browser. (Internet Explorer is IMPREDICTABLE with Notifications)
    3. Change the locale to English (UK) both on the server and the Core Software (Settings->General->Locale)
    4. Disable the core service
    5. Stop the core service and the SRM service if you are upgrading a DL appliance
    6. Run the script#2 from Dev to remove the unnecessary registry subkeys (shown below -- use with caution, no responsibility taken ...)
    7. Remove the HKLM\Software\AppRecovery\Core\Events Registry key (it will be recreated with the default values)
    8. Install P-1859 (keep the core service stopped)
    9. Restart the eventlog service (& dependencies)
    10. Start the core service and the SRM service if you are upgrading a DL appliance
    11. Enjoy the fruits of your labor (if any)… 

    Powershell Script mentioned above. It removes the EventsService registry key if present (it should be present only for the agents set with individual notifications).

    Set-Location -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Agents
    $allAgents = dir | select Name

    foreach ($agent in $allAgents)
    {
    $eventsService = "Registry::" + $agent.Name + "\EventsService"
    if (!(Test-Path $eventsService)) {continue}
    try {
    Remove-Item -Recurse -Path $eventsService
    Write ("Removed " + $eventsService)
    }
    catch {}
    }

    try {
    Remove-Item -Recurse -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Events
    }
    catch {}

    I hope that Stephen will keep us posted how it works for him -- he has quite a few cores to set up...
  • So this is the Powershell (.ps1) script i have pieced together. Patch p-1859.msi needs to be on desktop of administrator .

    Has worked on a few cores!!

     

    #Script to Fiox RR not creating event log or events in windows (UK)
    #Script by Stephen Stern With assistance from Tudor Popescu (22/09/2016)
    
    Start-Transcript -Path "C:\RREventFix.LOG"
    
    # Set windows system local
    Set-WinSystemLocale  en-GB
    
    #Set RR region
    $lcid=”2057”
    Invoke-RestMethod -Uri "https://$($env:computername):8006/apprecovery/api/core/localization/newCulture/$lcid" -Method POST -UseDefaultCredentials
    
    Start-Sleep -s 30
    
    # Disable and stop some services
    Set-Service RapidRecoveryCore -StartupType "disabled"
    Stop-Service RapidRecoveryCore
    Stop-Service EventLog -force
    Stop-Service "SRM Web Service" -force
    Stop-Service DellDRLogSvc -force
    
    # Delete keys we dont need
    Set-Location -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Agents
    $allAgents = dir | select Name
    
    foreach ($agent in $allAgents)
    {
        $eventsService = "Registry::" + $agent.Name + "\EventsService"
        if (!(Test-Path $eventsService)) {continue}
        try {
            Remove-Item -Recurse -Path $eventsService
            Write ("Removed " + $eventsService)
        }
    	catch {}
    }
    
    #try {
    #        Remove-Item -Recurse -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Events
    #    }
    #	catch {}
    
    # Uninstall old patches
    $packages = @("P-18*")
    foreach($package in $packages){
      $app = Get-WmiObject -Class Win32_Product | Where-Object {
        $_.Name -match "$package"
      }
      $app.Uninstall()
    }
    
    # Wait for uninstall
    Start-Sleep -s 30
    
    # Install new patch which is on desktop
    Start-Process "c:\users\administrator\Desktop\P-1859.msi" /qn -Wait
    
    #end eventviewer if open
    taskkill /im "mmc.exe"
    
    # Start procs
    Start-Service EventLog
    Start-Service MSMQ
    Start-Service Wecsvc
    Start-Service NetMsmqActivator
    Start-Service "SRM Web Service"
    Start-Service DellDRLogSvc
    
    stop-Transcript