Troubleshooting

The following section provides information about common troubleshooting tips for end users.

1. Authorization failure: expected hostname

When authorization is enabled on the container you may need to use the proper hostname when referencing the DRS service rather than using localhost.

% $GLOBUS_LOCATION/bin/globus-replication-create -s \
 https://localhost:8443/wsrf/services/ReplicationService \
 -C mycredential.epr -V myreplicator.epr file:///scratch/testrun.req
Error: ; nested exception is:
        org.globus.common.ChainedIOException: Authentication failed [Caused by:
        Operation unauthorized (Mechanism level: Authorization failed. Expected 
        "/CN=host/loopback" target but received "/C=US/O=Globus Alliance/OU=
        Service/CN=host/myhost")]
        

2. Cannot find request file

When using the DRS, ensure that the request file's filename is correct, that it is reachable by the DRS service, and that it has the appropriate permissions for the DRS service to access it.

% $GLOBUS_LOCATION/bin/globus-replication-create -s \
 https://myhost:8443/wsrf/services/ReplicationService -C mycredential.epr \
 -V myreplicator.epr file:///scratch/testrun
Error: java.rmi.RemoteException: Unable to create resource; nested exception is:  
        org.globus.wsrf.ResourceException: Failed to create Replication: 
        /scratch/testrun (No such file or directory); nested exception is:
        java.io.FileNotFoundException: /scratch/testrun (No such file or directory)
        

3. Malformed request file

It is important to ensure that the request file is well-formed as specified. A malformed request file will result in a runtime exception.

% $GLOBUS_LOCATION/bin/globus-replication-create -s \
 https://myhost:8443/wsrf/services/ReplicationService -C mycredential.epr \
 -V myreplicator.epr file:///scratch/testrun.req
Error: java.rmi.RemoteException: Unable to create resource; nested exception is:  
        org.globus.wsrf.ResourceException: Failed to create Replication: String
        index out of range: -1; nested exception is:
        java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        

The above error was produced by replacing a delimiting tab character with space characters.