Failed to retrieve file attributes to detect timezone diff

Advertisement

umur
Joined:
Posts:
1
Location:
Germany

Failed to retrieve file attributes to detect timezone diff

Hello everyone,

I have been using Asus DSL-AX82U with custom firmware (3004.388.6_2-gnuton1).
I have connected a USB storage device to use it as FTP server and it works well.

I have also wrote a script to update the files in the ftp server if there are any new or changed files in my local repo.

Here is the script
@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Users\***\Desktop\delete\WinSCP Automation\WinSCP Single.log" /ini=nul ^
  /command ^
    "open ftp://***:***@192.168.50.1/" ^
    "lcd ""C:\Users\karabulu\Desktop\delete\FreeFileSync PC""" ^
    "cd /PIMRC_USB/FreeFileSyncRemote" ^
    "put -neweronly -rawtransfersettings[1] ExcludeHiddenFiles=1 *" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
For test purposes, I created a folder both in my FTP server and local repo and put two dummy files. Whenever I run the script, the files are uploaded again and again although they are not updated in my local repo. When I checked the log file, I see the log that
Failed to retrieve file /PIMRC_USB/FreeFileSyncRemote/Capture.JPG attributes to detect timezone difference
You can find the log file in the attachment.

Before you ask, I also attach the screenshot of the router time and share the vsftpd.config below. I have also rebooted the router, run service restart_vsftpd and turned off/on the FTP server. The problem persist and seems caused by WinSCP.
anonymous_enable=NO
nopriv_user=root
write_enable=YES
local_enable=YES
chroot_local_user=YES
local_umask=000
dirmessage_enable=NO
xferlog_enable=NO
syslog_enable=NO
connect_from_port_20=YES
use_localtime=YES
listen=YES
pasv_enable=YES
pasv_min_port=57530
pasv_max_port=57560
tcp_wrappers=NO
max_clients=5
ftp_username=anonymous
ftpd_banner=Welcome to ASUS DSL-AX82U FTP service.
ssl_enable=NO
Can anyone help here to identify the problem behind?

Description: Router NTP Config

NTP config.JPG

Description: WinSCP Log File

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,852
Location:
Prague, Czechia

Re: Failed to retrieve file attributes to detect timezone diff

Please post logs from two consecutive runs, showing how the same file is uploaded again.

Reply with quote

Advertisement

You can post new topics in this forum