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

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

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 2016Posts: 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

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

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.

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 2016Posts: 41

I ran it in debugger and normal mode. Same issue

Fri Jul 22, 2016 10:44 am

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

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 2016Posts: 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

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

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 2016Posts: 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

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

And the scheduler version is legacy 3.6. Am I correct?

Fri Jul 22, 2016 2:42 pm

rhubman16

Joined: 08 Mar 2016Posts: 41

No it is the new version of scheduler. MP 5.3

Fri Jul 22, 2016 2:47 pm

SysOpSite Admin

Joined: 26 Nov 2006Posts: 6573

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.