You get the following exception when using the Ssh plugin for remote connectivity:
com.jcraft.jsch.JSchException: Auth fail
You see the following error:
com.midvision.rapiddeploy.exceptions.CommandInvocationException: com.jcraft.jsch.JSchException: failed to send channel request
Check your sshd_config, specifically the following and set them
UsePAM yes PermitUserEnvironment yes Subsystem sftp /usr/libexec/openssh/sftp-server
Restart the Ssh daemon with:
stopsrc -s sshd startsrc -s sshd
You get the following exception when performing a copy using the Ssh plugin:
SCP Copy returned an error: com.jcraft.jsch.JSchException: Could not get '<source directory>' to '<target directory>' - 4:
You can occasionally get this exception on Unix/Linux hosts when one of the following conditions is met:
You get the following exception when performing a copy using the Ssh plugin:
2013-08-06 13:32:16,171 [main] DEBUG com.midvision.rapiddeploy.utilities.exec.SshExec - Starting File Upload for source: path/to/source/file, to target: /path/to/target/file...Exception 3: Permission deniedat com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2289)
Check that the path to the target directory and file /path/to/target/file above, is writeable by the user connecting via Ssh. If not, alter the permissions so that the target is writeable, for example by using the chmod command.
You see the following exception after the deployment has copied the necessary files to the target, as the orchestration command is invoked:
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 49.0) SSH Command Execution Error (details follow): CommandExecutionException [RapidDeployBusinessException [com.midvision.rapiddeploy.exceptions.CommandExecutionException: SSHEXEC Command execution returned a non-zero error code: 1]]
The problem is that the executable was compiled with a Java version later than the current runtime version. RapidDeploy requires the runtime version be at least 1.6 to run the orchestration. To determine if the runtime Java supports the level of Java with which the program was compiled, follow these steps:
Check the runtime version of Java.
java -version For example, the output might look like this: java version "1.4.2" Java 2 Runtime Environment, Standard Edition (build 1.4.2)
You can resolve this issue by doing one of the following things:
export JAVA_HOME=/path/to/java export PATH=${JAVA_HOME}/bin:${PATH}
联系客服