RSM - ANSYS.Scripting.Process.Fatal Command Exception: rcp::not a plain fileServer stack trace: at ScriptDevelop. RPCCommand. apr_OnReceivedStdErrMess


Problem Description: When running the RSM 11.0 "Test Server", the following error occurs:

ANSYS.Scripting.Process.FatalCommandException:rcp::not a plain fileServer stack trace: at ScriptDevelop.RPCCommand.apr_OnReceivedStdErrMess
The previous command failed to complete successfully: retrying in 10 seconds

Resolution: Based on the "ls" output of the RSM log, the "ls" output does not conform to the POSIX locale. The environment variable LANG is overriding the default POSIX locale output. If you unset LANG from the Unix/Linux account it displays the default date and time for the command `ls `l``

However, instead of removing this environment, RSM can be fixed to work by changing this line in Operations.cs file under C:program filesAnsys Incv110RSMConfigscripts:

CommandLineCommand command = commandFactory.CreateRemoteShellCommand( string.Format( "ls -l {0} | awk '{{OFS=""|{1}|"""; print $5, $9}}'", targetPath, randomNumber ), "" );

to

CommandLineCommand command = commandFactory.CreateRemoteShellCommand( string.Format( "ls -l {0} | awk '{{OFS=""|{1}|"""; print $5, $NF}}'", targetPath, randomNumber ), "" )





Show Form
No comments yet. Be the first to add a comment!