WinSCP errors in Azure WebApps enviroment throwing errors
I'm using winscp to sync folders using FTP between 2 locations.
I'm using WinSCP portable in version : Product version : 5.17.9.0 , File version: 5.17.9.10905
Here is the command line :
Script (sync-live-images.txt) content , I've removed any sensitve date from the script below:
We are using Azure Web Apps enviroment and we run WinSCP as webjob.
We have tried to find solution on your forum already using below links, however we are not using Windows Server or IIS so solutions provided don't help in our situation:
https://winscp.net/forum/viewtopic.php?t=22802
https://winscp.net/forum/viewtopic.php?t=22323
Script is usually working correctly but every 2 to 12 executions which are in delay of 1 minute we are getting errors :
I'm attaching Win SCP log file for your reference.
I'm using WinSCP portable in version : Product version : 5.17.9.0 , File version: 5.17.9.10905
Here is the command line :
winscp.com /log=winscp.log /timeout=30 /script=sync-live-images.txt exit
option confirm off open ftp\user:password@IP synchronize remote -criteria=either "path1" "path2" close exit
We have tried to find solution on your forum already using below links, however we are not using Windows Server or IIS so solutions provided don't help in our situation:
https://winscp.net/forum/viewtopic.php?t=22802
https://winscp.net/forum/viewtopic.php?t=22323
Script is usually working correctly but every 2 to 12 executions which are in delay of 1 minute we are getting errors :
[02/23/2021 11:21:00 > f345ae: SYS INFO] Status changed to Initializing [02/23/2021 11:21:00 > f345ae: SYS INFO] Job directory change detected: Job file 'winscp.log' timestamp differs between source and working directories. [02/23/2021 11:21:00 > f345ae: SYS INFO] Run script 'sync-live-images.bat' with script host - 'WindowsScriptHost' [02/23/2021 11:21:00 > f345ae: SYS INFO] Status changed to Running [02/23/2021 11:21:00 > f345ae: INFO] [02/23/2021 11:21:00 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\u5yfg3zy.mk1>winscp.com /log=winscp.log /timeout=30 /script=sync-live-images.txt [02/23/2021 11:21:01 > f345ae: INFO] [02/23/2021 11:21:01 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\u5yfg3zy.mk1>exit [02/23/2021 11:21:01 > f345ae: SYS INFO] Status changed to Failed [02/23/2021 11:21:01 > f345ae: SYS ERR ] Job failed due to exit code -1073741819 [02/23/2021 11:24:00 > f345ae: SYS INFO] Status changed to Initializing [02/23/2021 11:24:00 > f345ae: SYS INFO] Job directory change detected: Job file 'winscp.log' timestamp differs between source and working directories. [02/23/2021 11:24:01 > f345ae: SYS INFO] Run script 'sync-live-images.bat' with script host - 'WindowsScriptHost' [02/23/2021 11:24:01 > f345ae: SYS INFO] Status changed to Running [02/23/2021 11:24:01 > f345ae: INFO] [02/23/2021 11:24:01 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\rho4kko4.ga3>winscp.com /log=winscp.log /timeout=30 /script=sync-live-images.txt [02/23/2021 11:24:01 > f345ae: INFO] [02/23/2021 11:24:01 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\rho4kko4.ga3>exit [02/23/2021 11:24:01 > f345ae: SYS INFO] Status changed to Failed [02/23/2021 11:24:01 > f345ae: SYS ERR ] Job failed due to exit code -1073741819 [02/23/2021 11:40:00 > f345ae: SYS INFO] Status changed to Initializing [02/23/2021 11:40:00 > f345ae: SYS INFO] Job directory change detected: Job file 'winscp.log' timestamp differs between source and working directories. [02/23/2021 11:40:00 > f345ae: SYS INFO] Run script 'sync-live-images.bat' with script host - 'WindowsScriptHost' [02/23/2021 11:40:00 > f345ae: SYS INFO] Status changed to Running [02/23/2021 11:40:00 > f345ae: INFO] [02/23/2021 11:40:00 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\zd1eaccq.c5d>winscp.com /log=winscp.log /timeout=30 /script=sync-live-images.txt [02/23/2021 11:40:01 > f345ae: INFO] [02/23/2021 11:40:01 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\zd1eaccq.c5d>exit [02/23/2021 11:40:01 > f345ae: SYS INFO] Status changed to Failed [02/23/2021 11:40:01 > f345ae: SYS ERR ] Job failed due to exit code -1073740791 [02/23/2021 11:40:00 > f345ae: SYS INFO] Status changed to Initializing [02/23/2021 11:40:00 > f345ae: SYS INFO] Job directory change detected: Job file 'winscp.log' timestamp differs between source and working directories. [02/23/2021 11:40:00 > f345ae: SYS INFO] Run script 'sync-live-images.bat' with script host - 'WindowsScriptHost' [02/23/2021 11:40:00 > f345ae: SYS INFO] Status changed to Running [02/23/2021 11:40:00 > f345ae: INFO] [02/23/2021 11:40:00 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\zd1eaccq.c5d>winscp.com /log=winscp.log /timeout=30 /script=sync-live-images.txt [02/23/2021 11:40:01 > f345ae: INFO] [02/23/2021 11:40:01 > f345ae: INFO] D:\local\Temp\jobs\triggered\SyncImagesEvery1minute\zd1eaccq.c5d>exit [02/23/2021 11:40:01 > f345ae: SYS INFO] Status changed to Failed [02/23/2021 11:40:01 > f345ae: SYS ERR ] Job failed due to exit code -1073740791