Error: Failed to copy "X" to "Y" due to "No such device" during replicating TIBCO ActiveMatrix Administrator Server.

Error: Failed to copy "X" to "Y" due to "No such device" during replicating TIBCO ActiveMatrix Administrator Server.

book

Article ID: KB0093275

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) -
TIBCO ActiveMatrix BusinessWorks Service Engine -

Description

Description:
During replicating TIBCO ActiveMatrix Administrator Server, the ant script failed to copy certificate due to "No such device".
Symptoms:

Full Error message found in the log of TIBCO Configuration Tool (TCT) during replicating:


"/opt/TIBCO/SOFT/bpm_home/tct/components/shared/1.0.0/plugins/com.tibco.tct.admin.replicate_1.4.3.003/res/move-keystores.xml:40: Failed to copy /glusterfs/shared/tibsystemnode/admin/amxadmin/shared/TCTKeystores/cacerts to /opt/TIBCO/SOFT/tibcojre64/1.7.0/lib/security/cacerts due to No such device"

The shared file system has been mounted successfully. The current user who runs TCT can create/read/update/delete any files and folders in this shared file system.

Cause:
During replicating TIBCO ActiveMatrix Administrator Server, Primary administrator and secondary administrator need a shared file system and this shared file system must support the mmap method. 

Issue/Introduction

Error: Failed to copy "X" to "Y" due to "No such device" during replicating TIBCO ActiveMatrix Administrator Server.

Resolution

The test below would verify whether the method mmap is supported on a specific shared file system. If it is not supported, contact your system administrator. If it is supported but the problem persists, contact TIBCO Support for further troubleshooting. 

Here are the steps: (/glusterfs/Common/java is shared file system)

1). cp jre7_u51_64.zip /glusterfs/Common/java
2). cd /glusterfs/fexshared/Common/java
3). unzip jre7_u51_64.zip
4). cd /glusterfs/fexshared/Common/java/jre7_u51_64/bin

The result of mmap not supported:
./java -version
mmap failed for CEN and END part of zip file
Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /glusterfs/Common/java/jre7_u51_64/lib/rt.jar

The result of mmap supported:
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Additional Information

A similar issue discussed here:
http://stackoverflow.com/questions/14344799/java-nio-no-such-device-exception-on-linux-but-works-when-u sing-fileutils

The Redhat bug regarding mmap failure:
https://bugzilla.redhat.com/show_bug.cgi?id=1204247