Topic "Again a WinSCP and windows task scheduler problem"

Author Message
TheUntouchable
[View user's profile]

Joined: 2013-11-27
Posts: 4
Sorry, I know there are some of that topics in this Forum, but I can't find one matching my Problem Smile

I am using the following line in my Batch file to download files from a ftp Server:
Code:

.\Plugins\winscp.com /ini=.\Plugins\WinSCP.ini /log=log.txt /command "option batch abort" "option confirm off" "open ftp://user:password@%quellsrv%" "echo Wechsle Remote-Verzeichnis:" "cd %quellordner%" "echo Wechsle Lokales-Verzeichnis:" "lcd .\TMP\Downloads" "echo Downloade Dateien:" "get *.pdf" "exit" >>%logdateipfad%\%logdateinamen% 2>>&1


Normally, and if I am starting it manual, the output should be like this:

Code:

i - 27.11.2013-14:25:37 Download wird gestartet..

batch           abort     
confirm         off       
Connecting to IP ...
Connected with IP. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user@IP
Wechsle Remote-Verzeichnis:
/path/
Wechsle Lokales-Verzeichnis:
C:\Script\TMP\Downloads
Downloade Dateien:
test.pdf                  |            0 B |    0,0 KiB/s | binary |   0%
Session 'user@ip' closed.
No session.

i - 27.11.2013-14:30:59 ..abgeschlossen!


But if i start it with the same user and with the wts, it just Displays this:

Code:

i - 27.11.2013-14:25:38 Download wird gestartet..



 i - 27.11.2013-14:30:59 ..abgeschlossen!


I tried 1000 things but i couldn get this fixed!

Any hints?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What is exit code of WinSCP? If it is 3, it would be this bug:
https://winscp.net/tracker/show_bug.cgi?id=996
_________________
Martin Prikryl
TheUntouchable
[View user's profile]

Joined: 2013-11-27
Posts: 4
Hi prikryl,

thanks for your fast reply Smile

Yes, the error code is 3. Running WinSCP 5.1.7. So I have to update and reboot the server? Could get difficult as this server is the main fileserver.. Sad
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
TheUntouchable wrote:
Yes, the error code is 3. Running WinSCP 5.1.7. So I have to update and reboot the server? Could get difficult as this server is the main fileserver.. Sad

It's probably enough to somehow reset the Scheduler session. But not really sure how to do it. Maybe restarting the Scheduler service may help. Or setting the task to run under a different account. If either of these help, let us know.
_________________
Martin Prikryl
TheUntouchable
[View user's profile]

Joined: 2013-11-27
Posts: 4
Tried your mentioned suggestions but sadly they are not the solution..

Killed the Scheduler, but it's an integrated service in the svchost service and everything is greyed out in the service msc for it, so no change to restart it again. Before that I tried changing the user of the task with no luck.

So it seems I have no other chance except to reboot.
TheUntouchable
[View user's profile]

Joined: 2013-11-27
Posts: 4
We rebooted our fileserver last night and till now the problem is gone. Smile
kambbado

Guest


Since two weeks ago I have been getting "exit code 3" error, prior to that there was not issues. I'm running the script as a Windows Schedule Task.
I tried the latest version of WinSCP and WinSCPnet.dll, changed the XmlLogPath, and still the same error. I'm going to reboot the server, hopefully tomorrow, if that resolves the issue, I will post it here my results.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License