On-Premise Agent stuck in "Updating Connector" status after CRM Connector Update

On-Premise Agent stuck in "Updating Connector" status after CRM Connector Update

book

Article ID: KB0078589

calendar_today

Updated On:

Products Versions
TIBCO Cloud Integration - Connect ( Scribe ) R5

Description

Issue:  When TIBCO Scribe® periodically updates the Microsoft Dynamics 365/CRM connector, each agent will pull down the new connector code.  If the connector update process is unsuccessful for an on-premise agent, the agent status may display in the UI as “Updating Connector”. 

Review the ConnectorUpdateError.log located in the C:\Program Files (x86)\Scribe Software\Scribe Online Agent\logs folder.  If the log contains the error “Access to the path 'Scribe.Adapter.Crm.Plugins.dll' is denied”, the agent service was unable to delete the existing folder.  To resolve, proceed with the resolution steps below.

If the log contains a different error message, please create a case with TIBCO Scribe® Support (http://support.tibco.com) for assistance in resolving the error.

Sample ConnectorUpdateError.log error:
Exception: System.UnauthorizedAccessException
Exception Type : UnauthorizedAccessException
Message : Access to the path 'Scribe.Adapter.Crm.Plugins.dll' is denied.
StackTrace : at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at Scribe.Connector.UpdateConsole.DeleteStrategy.DeleteDirectory(String folderName, WriteMessageAndSleepDelegate writeMessageAndSleep)
at Scribe.Connector.UpdateConsole.Program.Main(String[] args)

Issue/Introduction

When Scribe periodically updates the Microsoft Dynamics 365/CRM connector, each agent will pull down the new connector code. If the connector update process is unsuccessful for an on-premise agent, the agent status may display in the UI as “Updating Connector”.

Resolution

  1. Log onto the server where the agent is installed and stop the Scribe Online Agent service.
  2. Move the C:\Program Files (x86)\Scribe Software\Scribe Online Agent\Connectors\Scribe.Adapter.Crm folder to another folder as a backup.  Do not rename the folder in place.
  3. Start the Scribe Online Agent service.
  4. The agent connector update process will recreate the Scribe.Adapter.Crm folder