Linux discovery fails with "string reference not set to an instance of a string"

  • 7011257
  • 25-Oct-2012
  • 25-Oct-2012

Environment

PlateSpin Migrate

Situation

Discovery of a Linux workload fails with an error similar to the following:
 
"Failed copying C:\Program Files...\getMachineInfo.x86....tar.gz to /tmp/ofx.27590....tar.gz
String reference not set to an instance of a String"

Resolution

In order to resolve this issue it is necessary to enable SFTP on the target workload:
 
1. Run the following command on the workload that needs to be discovered:
 
vi /etc/ssh/sshd_config
 
2. Locate the following line:
 
Subsystem       sftp    /usr/libexec/openssh/sftp-server
 
3. Removing the "#" from the start of the line, if it exists
4. Directly underneath that line add the following:
 
sftp internal-sftp
 
5. Save and exit the file
6. Run the following command:
 
service sshd reload

Cause

This error occurs because SFTP is not configured on the workload being discovered.  SFTP is necessary for the transferring of files to the workload, in order to complete the discovery process.