Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Keep remote directory up to date

Thanks for the logs.

This issue has been added to the tracker:
https://winscp.net/tracker/1380

I'm sending you a development version.
hajekj

Sorry for late response - been overhauled with work. I think I forgot to click "Add attachment" when submitting last time. Added now, attached as private file.

Also, it appears to be only happening with some directories for sync while others are fine - no idea how to explain this behavior.
martin

Can you please try again? There's no file attached.
hajekj

Attached it as private file..
martin

hajekj wrote:

I uploaded the file - I am using Windows 10 10586 build, it seems to be doing only with this site/files - others seem to be just fine - I am not sure why it is happening.

Where did you upload it to?
hajekj

I uploaded the file - I am using Windows 10 10586 build, it seems to be doing only with this site/files - others seem to be just fine - I am not sure why it is happening.
martin

hajekj wrote:

This issue is back in 5.7.6

Can you attach a complete log with some comment?
hajekj

This issue is back in 5.7.6
hajekj

Just e-mailed it to you.
martin

Thanks. Though there's no attachment. Can you to submit it again? Or even better, email it to me.
hajekj

I have ran the program and reproduced the issue with the version you sent me, the log is attached below (as private file).

After the first synchronization, which uploaded all the files again, I made change to file "subfolder2/file2.txt" but the entire content of subfolder2 got reuploaded.

The FTP is running on IIS, and you can create the same environment without any signup required here (select Web App) so you can test it and try to reproduce. I can eventually record a video of the reproduction steps.
martin

I wasn't able to reproduce the problem.

I'm sending you an email with a debug version of WinSCP to address you have used to register on this forum.
martin

Thanks for the log. I'll try to reproduce the problem on my side.
hajekj

I created a new Azure Website for this since the logs could contain sensitive information. But the behavior was reproduced:
1. I connected to the site
2. I ran "keep remote directory up to date" with Synchronize on start triggered
3. All files got uploaded again
4. I then changed one file in a folder and the whole folder got uploaded again (without the subfolders, only the contents)
martin

Re: Keep remote directory up to date

Please post a complete log showing the synchronization.
hajekj

Keep remote directory up to date

When using the Keep remote directory up to date feature (with Azure Web Sites) all files get reuploaded on initial synchronization, and on modification of one file in a folder, all files within that folder get reuploaded.
The issue appears to be in the timestamps of files. Either please add an option to keep the directory up to date based on file size (just like when running Synchronization) or fix this issue somehow. From the logs, I can see that the the time returned from running
MDTM /site/wwwroot/.deployment

213 20150601202053

seems to return time with seconds, however in the directory listing, seconds are just displayed as 00. Is there any chance for a fix or solution?

Log is pasted below (some parts were redacted for security reasons).

--------------------------------------------------------------------------

WinSCP Version 5.7.4 (Build 5553) (OS 10.0.10130 - Windows 10 Pro Insider Preview)
Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
Log level: Normal
Local account: XXXXXXXXXXXXXXX
Working directory: C:\Program Files (x86)\WinSCP
Process ID: 2148
Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
Time zone: Current: GMT+2, Standard: GMT+1 (Central Europe Standard Time), DST: GMT+2 (Central Europe Daylight Time), DST Start: 3/29/2015, DST End: 10/25/2015
Login time: Sunday, June 21, 2015 23:35:13
--------------------------------------------------------------------------
Session name: XXXXXXXXXXXXXXXXXXXXXX (Site)
Host name: waws-prod-am2-015.ftp.azurewebsites.windows.net (Port: 21)
User name: XXXXXXXXXXXXXXXX (Password: Yes, Key file: No)
Transfer Protocol: FTP
Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
Disable Nagle: No
Proxy: none
Send buffer: 262144
UTF: 2
FTP: FTPS: Explicit TLS; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
Session reuse: Yes
TLS/SSL versions: TLSv1.0-TLSv1.2
Local directory: default, Remote directory: /site/wwwroot, Update: No, Cache: No
Cache directory changes: No, Permanent: Yes
Timezone offset: 0h 0m
--------------------------------------------------------------------------
Connecting to waws-prod-am2-015.ftp.azurewebsites.windows.net ...
Connected with waws-prod-am2-015.ftp.azurewebsites.windows.net, negotiating TLS connection...
220 Microsoft FTP Service
AUTH TLS
234 AUTH command ok. Expecting TLS Negotiation.
Verifying certificate for "" with fingerprint 94:af:11:07:46:13:1b:9d:ef:b4:3c:77:23:c6:43:1a:06:1a:cd:76 and 20 failures
Certificate verified against Windows certificate store
Certificate subject alternative name "waws-prod-am2-015.ftp.azurewebsites.windows.net" matches hostname
Using TLSv1.2, cipher TLSv1/SSLv3: ECDHE-RSA-AES256-SHA384, 2048 bit RSA
TLS connection established. Waiting for welcome message...
USER XXXXXXXXXXXXXX
331 Password required
PASS **********
230 User logged in.
SYST
215 Windows_NT
FEAT
211-Extended features supported:
 LANG EN*
 UTF8
 AUTH TLS;TLS-C;SSL;TLS-P;
 PBSZ
 PROT C;P;
 CCC
 HOST
 SIZE
 MDTM
 REST STREAM
211 END
OPTS UTF8 ON
200 OPTS UTF8 command successful - UTF8 encoding now ON.
PBSZ 0
200 PBSZ command successful.
PROT P
200 PROT command successful.
Connected
--------------------------------------------------------------------------
Using FTP protocol.
Doing startup conversation with host.
PWD
257 "/" is current directory.
Changing directory to "/site/wwwroot".
CWD /site/wwwroot
250 CWD command successful.
Getting current directory name.
PWD
257 "/site/wwwroot" is current directory.
Retrieving directory listing...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (23,100,2,128,40,41).
LIST -a
Connecting to 23.100.2.128:10281 ...
150 Opening ASCII mode data connection.
Session ID reused
TLS connection established
226 Transfer complete.
06-01-15  08:20PM                   28 .deployment
06-02-15  01:31PM                 2127 app.php
06-02-15  07:43AM                  642 composer.json
06-02-15  08:39AM                19669 composer.lock
06-01-15  09:35PM              1104838 composer.phar
04-26-15  09:48AM       <DIR>          css
04-26-15  09:48AM       <DIR>          img
06-02-15  02:05PM       <DIR>          includes
03-14-15  09:19AM                   33 index.php
04-26-15  09:48AM       <DIR>          js
06-02-15  05:02PM       <DIR>          libs
04-26-15  09:48AM       <DIR>          other
06-02-15  10:57AM       <DIR>          pages
01-06-15  07:58AM                 1096 web.config
Directory listing successful
Detecting timezone difference...
Retrieving file information...
PWD
257 "/site/wwwroot" is current directory.
CWD /site/wwwroot/.deployment
550 The system cannot find the path specified.
TYPE I
200 Type set to I.
SIZE /site/wwwroot/.deployment
213 28
MDTM /site/wwwroot/.deployment
213 20150601202053
Retrieving file information successful
Timezone difference of -2 detected using file /site/wwwroot/.deployment
..;D;0;1899-12-30T01:00:00.000Z;"" [0];"" [0];---------;0
.deployment;-;28;2015-06-01T20:20:00.000Z;"" [0];"" [0];---------;2
app.php;-;2127;2015-06-02T13:31:00.000Z;"" [0];"" [0];---------;0
composer.json;-;642;2015-06-02T07:43:00.000Z;"" [0];"" [0];---------;0
composer.lock;-;19669;2015-06-02T08:39:00.000Z;"" [0];"" [0];---------;0
composer.phar;-;1104838;2015-06-01T21:35:00.000Z;"" [0];"" [0];---------;0
css;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0
img;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0
includes;D;0;2015-06-02T14:05:00.000Z;"" [0];"" [0];---------;0
index.php;-;33;2015-03-14T10:19:00.000Z;"" [0];"" [0];---------;0
js;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0
libs;D;0;2015-06-02T17:02:00.000Z;"" [0];"" [0];---------;0
other;D;0;2015-04-26T09:48:00.000Z;"" [0];"" [0];---------;0
pages;D;0;2015-06-02T10:57:00.000Z;"" [0];"" [0];---------;0
web.config;-;1096;2015-01-06T08:58:00.000Z;"" [0];"" [0];---------;0
Startup conversation with host finished.
Not refreshing directory, caching is off.
Sending dummy command to keep session alive.
REST 0
350 Restarting at 0.
Sending dummy command to keep session alive.
TYPE I
200 Type set to I.
Sending dummy command to keep session alive.
TYPE A
200 Type set to A.
Sending dummy command to keep session alive.
PWD
257 "/site/wwwroot" is current directory.
Dummy directory read to keep session alive.
Retrieving directory listing...
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (23,100,2,128,40,42).
LIST -a
Connecting to 23.100.2.128:10282 ...
150 Opening ASCII mode data connection.
Session ID reused
TLS connection established
226 Transfer complete.
06-01-15  08:20PM                   28 .deployment
06-02-15  01:31PM                 2127 app.php
06-02-15  07:43AM                  642 composer.json
06-02-15  08:39AM                19669 composer.lock
06-01-15  09:35PM              1104838 composer.phar
04-26-15  09:48AM       <DIR>          css
04-26-15  09:48AM       <DIR>          img
06-02-15  02:05PM       <DIR>          includes
03-14-15  09:19AM                   33 index.php
04-26-15  09:48AM       <DIR>          js
06-02-15  05:02PM       <DIR>          libs
04-26-15  09:48AM       <DIR>          other
06-02-15  10:57AM       <DIR>          pages
01-06-15  07:58AM                 1096 web.config
Directory listing successful