CPM/SRS - winRc=121: 'The semaphore timeout period has expired.'

CPM/SRS - winRc=121: 'The semaphore timeout period has expired.'

210
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:55 PM


Symptom



When CPM/SRS tries to manage a Windows account, a winRc=121 error is returned.  Depending on which log is viewed, the error may look like the below:

  • .Debug.Log:
    • Connecting with user [<domain>\<username>] to [\\<address>\ipc$] failed. Error: 121.
  • .log:
    • Error: Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The semaphore timeout period has expired. (winRc=121).
  • pm.log:
    • Error: Error in prereconcilepass to user <domain>\<username> on domain <address>(\\<address>). Reason: The semaphore timeout period has expired. (winRc=121).


Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM);Secrets Rotation Service (SRS)


CPM/SRS
Windows Target
 



Cause



This error is caused by a mismatch of enabled SMB versions between the CPM/SRS connector and target device.  Usually, the situation is that the CPM's/SRS connector's enabled SMB versions are newer than the versions enabled on the target.


winRc stands for Windows Return Code.  Windows Return Codes are generated by Windows systems.  The return code shown in the CPM/SRS logs and PVWA UI is from the target Windows machine and not from CPM/SRS.

winRc=121 Error Definition:
ERROR_SEM_TIMEOUT 
121 (0x79)
The semaphore timeout period has expired.
 



Resolution



To resolve this issue, ensure that the CPM/SRS connector and target device have matching SMB versions enabled.  It is not recommended to make alterations to the SMB versions on the CPM/SRS connector due to the fact that this could cause issues with other target devices.  Make any changes on the target device in question.

You can use Powershell to detect whether or not a version of SMB is enabled on a device, as well as enable or disable a version.

SMBv1

  • Detect:
    • Get-SmbServerConfiguration | Select EnableSMB1Protocol
  • Disable:
    • Set-SmbServerConfiguration -EnableSMB1Protocol $false
  • Enable:
    • Set-SmbServerConfiguration -EnableSMB1Protocol $true

SMB v2/v3

  • Detect:
    • Get-SmbServerConfiguration | Select EnableSMB2Protocol
  • Disable:
    • Set-SmbServerConfiguration -EnableSMB2Protocol $false
  • Enable:
    • Set-SmbServerConfiguration -EnableSMB2Protocol $true

Note: You do not have to restart the device after running the Set-SmbServerConfiguration cmdlet.


Resources:
How does CPM Manage Windows Accounts Passwords

Windows System Error Codes
Windows Network Management Error Codes
Windows Routing and Remote Access Error Codes
Windows Sockets Error Codes
 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000xrOCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail