Author |
Message |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
SFTP in script |
|
I have moved from another server and older version of 24x7 to the newer version.
I am trying to move the existing scripts over but the ones I have that use SFTP are failing. when I debug it, it gets to the line to make the connection, a black window opens but nothing ever happens.
I am not sure what the issue is, since it worked on the older version.
Any assistance would be appreciated.
|
|
Thu Jul 21, 2016 9:31 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Please enable tracing option in the Tools/Options menu (Trace Enabled), restart the scheduler and rerun the job. Review ftp.log file, which should help you with identifying the problem. If not sure what the messages mean, please post relevant portion of the log here.
|
|
Fri Jul 22, 2016 9:08 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
The log files does not show anything, just the date.
When I run it a SFTP terminal window pops up with a connect button and I hit connect but nothing happens.
|
|
Fri Jul 22, 2016 10:16 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Is there sftp.log or any other log file recently updated? There's got to be something where more info is logged in trace mode.
Do you have a local firewall enabled on the new system?
|
|
Fri Jul 22, 2016 10:21 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
the ftp.log updates but this is what is shows:
**** 7/21/2016 09:22:19 ****
**** 7/22/2016 10:09:18 ****
**** 7/22/2016 10:10:50 ****
**** 7/22/2016 10:14:32 ****
I have the firewall disabled. I dont see any sftp.log file. The debug log shows this:
7/22/2016 10:14:32.689 0 0 0 DEBUG [THREAD 4004] SSH Connecting to sftp.xxx.com
7/22/2016 10:15:00.173 0 0 0 DEBUG [THREAD 6192] ScriptEngine Instance 3539704 - SharedObjectGet - Script Library FAILED or NOT LOADED yet
7/22/2016 10:15:00.173 0 0 0 DEBUG [THREAD 6192] ScriptEngine Instance 3539704 - Script Library loading from file
7/22/2016 10:15:00.205 0 0 0 DEBUG [THREAD 6192] ScriptEngine Instance 3539704 - Script Library found; loaded 7 statements.
|
|
Fri Jul 22, 2016 10:26 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
I don't see anything there related to your job run? Are you running it in the debugger? What happens when you run it normally?
|
|
Fri Jul 22, 2016 10:32 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
I ran it in debugger and normal mode. Same issue
|
|
Fri Jul 22, 2016 10:44 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Are there any statements in the job script after the sftp related code? If yes, do they get executed or the job just aborts on sftp step without reporting any errors? Same result in normal run time mode?
|
|
Fri Jul 22, 2016 10:44 am |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
There are statements after the SFTP commands but it just hangs there, it never moves on. If I have the job scheduled to run every hour, I get a process that starts in task manager every hour but never goes away.
I am running the FTPFileExists command but it doesnt appear to move past that step.
Thanks
Rob
|
|
Fri Jul 22, 2016 10:48 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Which OS is on the new server?
Are there any messages in the Windows Security or Application Event logs related timing- wise to the sftp operation hanging?
|
|
Fri Jul 22, 2016 12:55 pm |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
Server 2012 R2
Nothing in the event log that would be specific to SFTP connection.
Thanks
Rob
|
|
Fri Jul 22, 2016 1:30 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
And the scheduler version is legacy 3.6. Am I correct?
|
|
Fri Jul 22, 2016 2:42 pm |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
No it is the new version of scheduler. MP 5.3
|
|
Fri Jul 22, 2016 2:47 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Please try sftp functions available in the JavaScript. The syntax is almost the same.
If you use JAL, its old sftp functions may not work correctly on your system type.
|
|
Fri Jul 22, 2016 4:08 pm |
|
 |
|