none
Unable to Connect to DPM 2010 server through PowerShell RRS feed

  • Question

  • Running Data Protection Manager 2010 3.0.7707 on a Windows 2008R2 non-SP1 system.

    I noticed that my retention policy was not being adhered to (7 days) but all protection servers were marked with Green Check marks.  After researching a bit, found that the pruneShadowCopies.ps1 script was most likely not running, or a service account is not properly communicating to the DPM's SQL instance.

    The problem I am running into is that I cannot connect to the DPM Service from powerShell, and all scripts are failing because of it. 

    $VerbosePreference = "Continue"

    .\pruneshadowcopiesDpm2010.ps1  ((or using just pruneshadowcopiesDpm2010.ps1

    Both return

    "

    Connect-DPMServer : Unable to connect to <myDpmServer.domain>. (ID: 948)

    Verify that the DPM service is running on this computer

    ..."

    The DPM service is running, the Protected servers are still available, synchronizing, and creating recovery points if I select a manual creation.  In addition, I have a secondary DPM server protecting this Primary Server, and that is functioning (pulling data, and communicating). 

    Any swift assistance would be appreciated as I cannot connect to the local server to prune the shadow copies out of the recovery point volume or even manually delete the oldest recovery point data.



    • Edited by Kyle SA3 Thursday, June 9, 2011 6:35 PM
    Thursday, June 9, 2011 6:14 PM

Answers

  • Got it tracked down to the \\cp-scsqldw\c$\Program Files\Microsoft Data Protection Manager\DPM2010\SQLPrep\Triggerjob.exe

     

    Re-ran the SQL Prep, and the jobs scheduled on the SQL server ran.  Apparently, without these files the scheduled tasks in SQL fail, but since it did not actually run anything, it does not know it failed.  Which is why I was not getting any alerts.

    Friday, June 17, 2011 7:25 PM

All replies

  • Hi Kyle,

     

    When you updated DPM 2010 to 3.0.7707 by installing the rollup hotifx, did you also update the DPM management shell? It is the 2nd download link on the link below:

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=D3FABB18-1ADB-4C87-A95D-D3C3826D5BFB

     

    Thanks,

    Marc


    Thursday, June 9, 2011 6:22 PM
    Moderator
  • For clarification, I am executing DpmShell.psc1 from the Primary DPM Server which gets the Management Console by default as part of the Data Protection Manager installation.  At least that is my understanding that there is no need, nor can you manually execute the install.  Which I tried anyway, and it fails.  Same with the DPMManagementShell2010-KB2465832.msp

    Local execution on my laptop for remote access updates accordingly, but I am trying to do this from the DPM server itself.  Which cannot connect to itself, and hence cannot run any of the ps scripts it relies on - or at least this is my understanding.

     


    Thursday, June 9, 2011 7:11 PM
  • Ok - so its a permission

    Ran powershell as an administrator, then loaded the DPMShell, and ran DpmCliInitScript.

     

    Ran pruneshadowcopies.ps1 without any errors, but I am still not getting new recovery points created per the protection group settings.

     

    DPM Error logs from DPMRA*.errlog are showing excessive errors

     

    0D64    0510    06/09    23:30:46.509    05    defaultsubtask.cpp(680)    [00000000009AFBB0]    8121462C-9B5D-447C-A003-78B8B5658454    WARNING    Failed: Hr: = [0x809909b0] : F: lVal : CommandReceived(pAgentOvl)


    0D64    0428    06/09    23:30:58.631    29    radefaultsubtask.cpp(356)    [00000000009AFBB0]    48B01853-3344-480E-83A5-0AE4F6029429    WARNING    Failed: Hr: = [0x809909b0] : CRADefaultSubTask: WorkitemID does not exist, {4B98CF0A-CDDE-45BE-B764-A3888C3B8814}


    0D64    0428    06/09    23:30:58.631    05    defaultsubtask.cpp(459)    [00000000009AFBB0]    48B01853-3344-480E-83A5-0AE4F6029429    WARNING    Failed: Hr: = [0x809909b0] : F: lVal : CommandReceivedSpecific(pCommand, pOvl)


    0D64    0428    06/09    23:30:58.631    03    runtime.cpp(1599)    [000000000091C420]    48B01853-3344-480E-83A5-0AE4F6029429    FATAL    Subtask failure, sending status response XML=[<?xml version="1.0"?>


    0D64    0428    06/09    23:30:58.631    03    runtime.cpp(1599)    [000000000091C420]    48B01853-3344-480E-83A5-0AE4F6029429    FATAL    <Status xmlns="http://schemas.microsoft.com/2003/dls/StatusMessages.xsd" StatusCode="-2137454160" Reason="Error" CommandID="RAGetWorkItemInfo" CommandInstanceID="082c73db-f371-4f22-8ddf-baf09f3e9e50" GuidWorkItem="4b98cf0a-cdde-45be-b764-a3888c3b8814" TETaskInstanceID="7cf10682-a4e1-41c0-ae8b-1d03ecc1a2e9"><ErrorInfo xmlns="http://schemas.microsoft.com/2003/dls/GenericAgentStatus.xsd" ErrorCode="2001" DetailedCode="-2137454160" DetailedSource="2"><Parameter Name="AgentTargetServer" Value="CP-STAFF-DPM.msb.priv"/></ErrorInfo></Status>

     

    Friday, June 10, 2011 7:26 PM
  • Hello,

    So when you manually create a recovery point, nothing shows up in the Recovery tab for that instance?


    Shane

    Sunday, June 12, 2011 12:12 PM
  • Manually created recovery points are selectable, but the scheduled recovery points are not being created, and it is not reporting any errors.

    I filtered the Jobs tab to show all Recovery Points scheduled.  I can see all of the scheduled jobs, but they do not run, nor do the protected servers report a 'failed recovery point' creation.

    Monday, June 13, 2011 3:54 PM
  • Hello,

    So if you have a job that is scheduled to run at 8AM for today, if you look at the scheduled jobs at 9AM, does the job still show up in the list even though the time for it to run has come and gone?

    If so, there are no errors in the event logs (DPM alerts) or the DPM console indication a failure.

    If you look in the application log, do you see an error such as:

    Log Name: Application
    Source: Windows Error Reporting
    Date:
    Event ID: 1001
    Task Category: None
    Level: Information
    Keywords: Classic
    User: N/A
    Computer:
    Description:
    Fault bucket , type 0
    Event Name: DPMException
    Response: Not available
    Cab Id: 0

    Problem signature:
    P1: TriggerJob
    P2: 3.0.7696.0
    P3: TriggerJob.exe
    P4: 3.0.7696.0
    P5: System.UnauthorizedAccessException
    P6: System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal
    P7: 20B9A72D

     

     

    Thanks,
    Shane

    Tuesday, June 14, 2011 12:08 PM
  • No, there not any entries for that.  I did however open a MS Support Case on this.  They are pointing to the configured jobs inside the SQL Database being 'disabled'.  Its a work in progress -

     

    Kyle

    Tuesday, June 14, 2011 8:55 PM
  • Hello,

    That was my next suggestion.  It does seem as if the job scheduler is not triggering those tasks.  A quick test would be to enable those instances and wait for the schedule time to lapse.

     

    Thanks,
    Shane

    • Proposed as answer by ShaneB. _ Wednesday, June 15, 2011 12:22 AM
    Wednesday, June 15, 2011 12:22 AM
  • Got it tracked down to the \\cp-scsqldw\c$\Program Files\Microsoft Data Protection Manager\DPM2010\SQLPrep\Triggerjob.exe

     

    Re-ran the SQL Prep, and the jobs scheduled on the SQL server ran.  Apparently, without these files the scheduled tasks in SQL fail, but since it did not actually run anything, it does not know it failed.  Which is why I was not getting any alerts.

    Friday, June 17, 2011 7:25 PM
  • Hi Shane I am getting the errors that you have highlighted for about a week now.

    Do you know what could be the issue..?

    Any help will be very much appreciated.

    Thanks

    Nigel

    Tuesday, August 9, 2011 1:21 PM
  • Hello,

    Are you running the SQL Agent account with a specific domain credential other than the default created when installed?


    Thanks
    Shane
    Saturday, August 13, 2011 6:55 PM