STC Failure Occurred Mid Transfer (6, 'closehandle', 'the handle is invalid.')

Problem

This article describes the cause and possible solution for the error: STC Failure Occurred Mid Transfer (6, 'closehandle', 'the handle is invalid.')

IMPORTANT  Shadowsnap is now End of Support. Please migrate from the shadowsnap agent to the latest compatible Datto Windows Agent or Agentless solution. For information on this process, please refer to: How to move from ShadowSnap to the Datto Windows Agent

Cause

This error typically appears when there is an issue with the ShadowSnap agent communications. This is a Python error that could signify a corrupted ShadowSnap install.

Solution

  1. Ensure that there are antivirus exceptions for the StorageCraft directories and services.
  2. Force a differential merge from the Advanced section under the Configure Agent Settings page.
  3. If the issue persists, reinstall the ShadowSnap agent by following the steps described in Using PsExec To Install The ShadowSnap Software.
  4. If backups continue to be unsuccessful, contact Datto Technical Support for further assistance.