Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If the parameter 'jump_command' in a YADE profile for jumphost operation is wrong i.e. path-mismatch etc, YADE complete the operation without any error and return success code 0.
Please see the parameter
jump_command= /home/jenkins/sos-berlin.com/jade/jade_client.1.7.4321-RC1/xbin/jade.sh
Although YADE shows an error main ERROR 03:53:39,059 ERROR (SOSSSHJob2.java:357) ::CheckExitCode SOS-SSH-E-150: remote command terminated with exit code: 127
here also YADE throws an unrelated error
com.sos.JSHelper.Exceptions.JobSchedulerException: SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$'
YADE Profile
[jumphost_test_copyfrominternet] file_spec = ^.*\.txt$ operation = copyfrominternet ;; target_dir = /home/test/inbound/ target_protocol = local ;;target_port = 22 ;;; jump_host = gollum.sos jump_user = jenkins jump_ssh_auth_method = password jump_password = jenkins jump_protocol = sftp jump_port = 22 jump_command = /home/jenkins/sos-berlin.com/jade/jade_client.1.7.4321-RC1/xbin/jade.sh ;;; source_dir = /outbound source_protocol = ftp source_port = 21 source_host = mp.sos source_user = test source_password = test
YADE Log
test@homer:~/jade_client.1.7.4321-RC1/bin> ./jade4dmz.sh -settings=jade_jumhost.ini -profile=jumphost_test_copyfrominternet 0 [main] INFO com.sos.DataExchange.Jade4DMZ - Jade4DMZ --- $Id: Jade4DMZ.java 27842 2014-10-30 12:35:02Z oh $ 48 [main] INFO sos.net.ssh.SOSSSHJob2 - $Id: SOSSSHJob2.java 27529 2014-10-10 08:33:03Z ur $ main INFO 03:50:20,248 INFO (SOSDataExchangeEngine4DMZMain.java:103) ::Execute SOSDataExchange - Main routine started ... -- 1.7.4321-RC1 (2014-11-18 14:58, revision 28207) Copyright 2003-2014 SOS GmbH Berlin main INFO 03:50:20,254 INFO (Jade4DMZ.java:555) ::EstablishSSHConnection SOSSSHJobOptions.url (the url for the connection): SOSSSHJobOptions.raise_exception_on_error (Raise an Exception if an error occured): true SOSFtpOptionsSuperClass.jump_ssh_auth_file (This parameter specifies the path and name of a us): SOSFtpOptionsSuperClass.jump_ssh_auth_method (This parameter specifies the authentication method): password SOSSSHJobOptions.command (This parameter specifies a command that is to be executed): SOSSSHJobOptions.command_delimiter (Command delimiter characters are specified using this par): %% SOSSSHJobOptions.command_script (This parameter can be used as an alternative to command,): SOSSSHJobOptions.command_script_file (This parameter can be used as an alternative to command,): SOSSSHJobOptions.command_script_param (This parameter contains a parameterstring, which will be): gollum.sos (192.11.0.120) SOSSSHJobOptions.protocol (Type of requested Datatransfer The values ftp, sftp): ssh SOSSSHJobOptions.ignore_error (Should the value true be specified, then execution errors): false SOSSSHJobOptions.ignore_exit_code (This parameter configures one or more exit codes which wi): SOSSSHJobOptions.ignore_signal (Should the value true be specified, then on): false SOSSSHJobOptions.ignore_stderr (This job checks if any output to stderr has been created): false SOSFtpOptionsSuperClass.jump_password (Password for authentication with the jump_host.): ***** SOSFtpOptionsSuperClass.jump_port (Port on the jump_host by which files should be tra): 22 SOSSSHJobOptions.proxy_host (The value of this parameter is the host name or the IP ad): SOSSSHJobOptions.proxy_password (This parameter specifies the password for the proxy serve): ***** SOSSSHJobOptions.proxy_port (This parameter specifies the port number of the proxy,): 0 SOSSSHJobOptions.proxy_user (The value of this parameter specifies the user account fo): user SOSSSHJobOptions.simulate_shell (Should the value true be specified for this parameter,): false SOSSSHJobOptions.simulate_shell_inactivity_timeout (If no new characters are written to stdout or stderr afte): 0 SOSSSHJobOptions.simulate_shell_login_timeout (If no new characters are written to stdout or stderr afte): 0 SOSSSHJobOptions.simulate_shell_prompt_trigger (The expected comman line prompt. Using this prompt the jo): SOSFtpOptionsSuperClass.jump_user (User name for authentication with the jump_host.): jenkins SOSSSHJobOptions.ignore_hangup_signal (Should the value true be specified, then execution errors): true SOSSSHJobOptions.Base_Directory (A Base Directory for all relative FileNames used by SOSOptionFileName): /home/test/jade_client.1.7.4321-RC1/bin .CreateFolder (Folder anlegen, wenn noch nicht vorhanden): true SOSSSHJobOptions.Date_Format_Mask (General Mask for date fomatting): yyyy-MM-dd SOSSSHJobOptions.Time_Format_Mask (General Mask for time formatting): HH:mm:ss SOSSSHJobOptions.Scheduler_Hot_Folder (Pathname to the JobScheduler live-folder): null/config/live .CreateFolder (Folder anlegen, wenn noch nicht vorhanden): true SOSSSHJobOptions.Scheduler_Data (Data Folder of JobScheduler Installation): .CreateFolder (Folder anlegen, wenn noch nicht vorhanden): true SOSSSHJobOptions.Scheduler_Home (Home Root Folder of JobScheduler): .CreateFolder (Folder anlegen, wenn noch nicht vorhanden): true SOSSSHJobOptions.local_user (Name of local user): test SOSSSHJobOptions.Locale (I18N is for internationalization of Application): en_US SOSSSHJobOptions.CheckNotProcessedOptions (If this Option is set to true, all not processed or recognized options are reported as a warning): false SOSSSHJobOptions.XmlId (This ist the ...): root SOSSSHJobOptions.TestMode (Test Modus schalten ): false SOSSSHJobOptions.Debug (Debug-Modus schalten (true/false)): false SOSSSHJobOptions.DebugLevel (DebugLevel): 0 SOSSSHJobOptions.log_filename (Name der Datei mit den Logging-Eintr�gen): stdout SOSSSHJobOptions.log4j_Property_FileName (Name of the LOG4J Property File): ./log4j.properties SOSSSHJobOptions.ApplicationName (Name of the Application): SOSSSHJobOptions.ApplicationDocuUrl (The Url of the Documentation of this Application): SOSSSHJobOptions.AllowEmptyParameterList (If true, an empty parameter list leads not into an error): true main INFO 03:50:20,474 INFO (SOSSSH2TriLeadImpl.java:595) ::Authenticate SOSVfs_D_133: user 'jenkins' logged in. main INFO 03:50:20,632 INFO (SOSSSHJob2.java:444) ::CheckStdOut stdout = 22286 main INFO 03:50:22,102 INFO (SOSSSHJob2.java:444) ::CheckStdOut stdout = 22300 main INFO 03:50:22,102 INFO (SOSSSHJob2.java:389) ::CheckStdErr stderr = bash: /home/jenkins/sos-berlin.com/jade/jade_client.1.7.4321-RC1/xbin/jade.sh: No such file or directory main INFO 03:50:22,102 INFO (SOSSSHJob2.java:393) ::CheckStdErr SOS-SSH-I-150: output to stderr is ignored: bash: /home/jenkins/sos-berlin.com/jade/jade_client.1.7.4321-RC1/xbin/jade.sh: No such file or directory main ERROR 03:50:22,103 ERROR (SOSSSHJob2.java:357) ::CheckExitCode SOS-SSH-E-150: remote command terminated with exit code: 127 main INFO 03:50:23,517 INFO (SOSDataExchangeEngine.java:275) ::Execute $Id: SOSDataExchangeEngine.java 27865 2014-10-31 15:45:55Z oh $ -- 1.7.4321-RC1 (2014-11-18 14:58, revision 28207) Copyright 2003-2014 SOS GmbH Berlin main INFO 03:50:23,518 INFO (SOSOptionLogFileName.java:179) ::setLogger setLogger without instance of logger called. main INFO 03:50:23,524 INFO (SOSDataExchangeEngine.java:289) ::Execute ************************************************************************* * * * JADE - JobScheduler Advanced Data Exchange * * ---www.sos-berlin.com--------------------- * * * ************************************************************************* version = $Id: SOSDataExchangeEngine.java 27865 2014-10-31 15:45:55Z oh $ -- 1.7.4321-RC1 (2014-11-18 14:58, revision 28207) Copyright 2003-2014 SOS GmbH Berlin date = 2014-11-19 15:50:23 operation = copy protocol = local port = 21 file specification = ^.*/.txt$ file path = local host = homer local directory = /outbound/ target host = target directory = /home/test/inbound/ pid = 6680 ************************************************************************* main INFO 03:50:23,926 INFO (SOSDataExchangeEngine.java:783) ::setInfo 0 files found for regexp '^.*\.txt$'. main INFO 03:50:23,926 INFO (SOSDataExchangeEngine.java:620) ::printState SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' main INFO 03:50:23,927 INFO (SOSDataExchangeEngine.java:648) ::printState SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' main INFO 03:50:23,927 INFO (SOSDataExchangeEngine.java:984) ::transfer SOSJADE_E_0101: data transfer ended with error 'SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$'' com.sos.JSHelper.Exceptions.JobSchedulerException: SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' at com.sos.DataExchange.SOSDataExchangeEngine.printState(SOSDataExchangeEngine.java:621) at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:969) at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292) at com.sos.DataExchange.Jade4DMZ.StartTransferFromDMZ2Intranet(Jade4DMZ.java:227) at com.sos.DataExchange.Jade4DMZ.Execute(Jade4DMZ.java:185) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.Execute(SOSDataExchangeEngine4DMZMain.java:107) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.main(SOSDataExchangeEngine4DMZMain.java:62) com.sos.JSHelper.Exceptions.JobSchedulerException: SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' at com.sos.DataExchange.SOSDataExchangeEngine.printState(SOSDataExchangeEngine.java:621) at com.sos.DataExchange.SOSDataExchangeEngine.transfer(SOSDataExchangeEngine.java:969) at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:292) at com.sos.DataExchange.Jade4DMZ.StartTransferFromDMZ2Intranet(Jade4DMZ.java:227) at com.sos.DataExchange.Jade4DMZ.Execute(Jade4DMZ.java:185) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.Execute(SOSDataExchangeEngine4DMZMain.java:107) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.main(SOSDataExchangeEngine4DMZMain.java:62) main INFO 03:50:23,930 INFO (SOSDataExchangeEngine.java:304) ::Execute Elapsed time = 413, per File = 413, total bytes = 0 main INFO 03:50:23,931 INFO (SOSDataExchangeEngine.java:314) ::Execute ************************************************************************* execution status = failure. Errors reported. successful transfers = 0 failed transfers = 0 last error = SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' (SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$') ************************************************************************* com.sos.JSHelper.Exceptions.JobSchedulerException: SOSJADE_E_0100: No filename found which match the criteria as specified using the regular expression '^.*\.txt$' at com.sos.DataExchange.SOSDataExchangeEngine.Execute(SOSDataExchangeEngine.java:295) at com.sos.DataExchange.Jade4DMZ.StartTransferFromDMZ2Intranet(Jade4DMZ.java:227) at com.sos.DataExchange.Jade4DMZ.Execute(Jade4DMZ.java:185) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.Execute(SOSDataExchangeEngine4DMZMain.java:107) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.main(SOSDataExchangeEngine4DMZMain.java:62) com.sos.JSHelper.Exceptions.JobSchedulerException: Transfer failed at com.sos.DataExchange.Jade4DMZ.StartTransferFromDMZ2Intranet(Jade4DMZ.java:236) at com.sos.DataExchange.Jade4DMZ.Execute(Jade4DMZ.java:185) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.Execute(SOSDataExchangeEngine4DMZMain.java:107) at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.main(SOSDataExchangeEngine4DMZMain.java:62) main INFO 03:50:23,950 INFO (SOSSSHJob2.java:444) ::CheckStdOut stdout = 22333 main INFO 03:50:23,951 INFO (SOSDataExchangeEngine4DMZMain.java:118) ::Execute SOSDataExchangeEngine4DMZMain::Execute - ended without errorsended without errors test@homer:~/jade_client.1.7.4321-RC1/bin> echo $? 0 test@homer:~/jade_client.1.7.4321-RC1/bin>
Attachments
Issue Links
- relates to
-
YADE-224 YADE operation copytointernet ended succesfully even jump_command path is wrong in the profile
- Released