SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SFTP in script

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
SFTP in script
Author Message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post SFTP in script Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I ran it in debugger and normal mode. Same issue
Fri Jul 22, 2016 10:44 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
Server 2012 R2

Nothing in the event log that would be specific to SFTP connection.

Thanks
Rob
Fri Jul 22, 2016 1:30 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
And the scheduler version is legacy 3.6. Am I correct?
Fri Jul 22, 2016 2:42 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
No it is the new version of scheduler. MP 5.3
Fri Jul 22, 2016 2:47 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7833

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.