ERROR in Director-Broker sync while signing file java.io.FileNotFoundException

ERROR in Director-Broker sync while signing file java.io.FileNotFoundException

book

Article ID: KB0086818

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
The following error can appear when copying large resources directly to a shared resources location:

[LibrarySigner] while signing file java.io.FileNotFoundException: [GS_HOME]\datasynapse\webapps\livecluster\deploy\resources\shared\jar\[resource].zip (The process cannot access the file because it is being used by another process)

This error happens when large resources are manually copied into the shared directory. When UI is used to upload a resource, the Library Signer is turned off all awhile the file is not fully copied into the director. However, in manual deployment the Library Signer cannot be turned off so signing can fail when the file is locked during the copy process, . Signing will not repeat to prevent synchronising invalid or corrupted files.

There are a few workarounds for this issue:

   1. Simply copy the file before the final deployment from a temp directory on the director to the deployment directory.
   2. Once the file is available on the director but hasn't made it to the brokers, hit the Update button in the Resources Deployment page on the director. That will cause the file to be signed again and copy it to the director.
   3. Disable director side Resource Monitor (set it to 0) just before copying a large resource over a slow network. Re enable when the resource is copied.

Issue/Introduction

ERROR in Director-Broker sync while signing file java.io.FileNotFoundException