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: Error Code 1314 for Google Drive

The problem is about a local file/folder. So no sudo can help here (even if you could use it the way you have tried).

Is this even WinSCP issue? Can you write to that folder anyhow from your scheduled task? For a test, what if you do this in your batch file instead of calling winscp.com?
echo foo > G:\***********\AM.R0A7F.00.EHE.D.2025.199

Would the file be created?
table.kenny

*********** = censorship of identifying data
2025-07-20 15:27:16.929 WinSCP Version 6.5.2 (Build 16354 2025-06-18) (OS 10.0.26100 – Windows 11 Education)
. 2025-07-20 15:27:16.929 Configuration: nul
. 2025-07-20 15:27:16.929 Log level: Normal
. 2025-07-20 15:27:16.929 Local account: ***********\Table
. 2025-07-20 15:27:16.929 Working directory: C:\Users\Table\AppData\Local\Programs\WinSCP
. 2025-07-20 15:27:16.929 Process ID: 21952
. 2025-07-20 15:27:16.943 Ancestor processes: WinSCP, cmd, ...
. 2025-07-20 15:27:16.943 Command-line: "C:\Users\Table\AppData\Local\Programs\WinSCP\WinSCP.exe" /console=6.5.2 /consoleinstance=_17440_205 "/script=transferscript.txt" "/log=winscp.log" "/ini=nul"
. 2025-07-20 15:27:16.943 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/9/2025, DST End: 11/2/2025
. 2025-07-20 15:27:16.945 Login time: Sunday, July 20, 2025 3:27:16 PM
. 2025-07-20 15:27:16.945 --------------------------------------------------------------------------
. 2025-07-20 15:27:16.945 Script: Retrospectively logging previous script records:
> 2025-07-20 15:27:16.945 Script: open scp://myshake:***@rs.local/ -hostkey="***********" -rawsettings SourceAddress="***********"
. 2025-07-20 15:27:16.945 --------------------------------------------------------------------------
. 2025-07-20 15:27:16.945 Session name: myshake@rs.local (Ad-Hoc site)
. 2025-07-20 15:27:16.945 Host name: rs.local (Port: 22)
. 2025-07-20 15:27:16.945 User name: myshake (Password: Yes, Key file: No, Passphrase: No)
. 2025-07-20 15:27:16.945 Tunnel: No
. 2025-07-20 15:27:16.945 Transfer Protocol: SCP
. 2025-07-20 15:27:16.945 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2025-07-20 15:27:16.945 Disable Nagle: No
. 2025-07-20 15:27:16.945 Proxy: None
. 2025-07-20 15:27:16.945 Send buffer: 262144
. 2025-07-20 15:27:16.945 Source address: ***********
. 2025-07-20 15:27:16.945 Compression: No
. 2025-07-20 15:27:16.945 Bypass authentication: No
. 2025-07-20 15:27:16.945 Try agent: Yes; Agent forwarding: No; KI: Yes; GSSAPI: Yes
. 2025-07-20 15:27:16.945 GSSAPI: KEX: No; Forwarding: No; Libs: gssapi32,sspi,custom; Custom:
. 2025-07-20 15:27:16.945 Ciphers: aes,chacha20,aesgcm,3des,WARN,des,blowfish,arcfour; Ssh2DES: No
. 2025-07-20 15:27:16.945 KEX: ntru-curve25519,mlkem-curve25519,mlkem-nist,ecdh,dh-gex-sha1,dh-group18-sha512,dh-group17-sha512,dh-group16-sha512,dh-group15-sha512,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2025-07-20 15:27:16.945 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2025-07-20 15:27:16.945 Simple channel: Yes
. 2025-07-20 15:27:16.945 Return code variable: Autodetect; Lookup user groups: Auto
. 2025-07-20 15:27:16.945 Shell: default
. 2025-07-20 15:27:16.945 EOL: LF, UTF: Auto
. 2025-07-20 15:27:16.945 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2025-07-20 15:27:16.945 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2025-07-20 15:27:16.945 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2025-07-20 15:27:16.945 Cache directory changes: Yes, Permanent: Yes
. 2025-07-20 15:27:16.945 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2025-07-20 15:27:16.945 DST mode: Unix;Timezone offset: 0h 0m
. 2025-07-20 15:27:16.945 --------------------------------------------------------------------------
< 2025-07-20 15:27:16.945 Script: Searching for host...
. 2025-07-20 15:27:16.945 Looking up host "rs.local" for SSH connection
. 2025-07-20 15:27:19.726 Connecting to *********** port 22
. 2025-07-20 15:27:21.759 Failed to connect to ***********: Network error: Connection refused
. 2025-07-20 15:27:21.759 Connecting to *********** port 22
. 2025-07-20 15:27:23.803 Failed to connect to ***********: Network error: Connection refused
. 2025-07-20 15:27:23.803 Connecting to *********** port 22
. 2025-07-20 15:27:23.803 Connected to *********** (from ***********)
< 2025-07-20 15:27:23.806 Script: Connecting to host...
. 2025-07-20 15:27:23.806 We claim version: SSH-2.0-WinSCP_release_6.5.2
. 2025-07-20 15:27:23.806 Connected to *********** (from ***********)
. 2025-07-20 15:27:23.834 Remote version: SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2
. 2025-07-20 15:27:23.834 Using SSH protocol version 2
. 2025-07-20 15:27:23.834 Have a known host key of type ssh-ed25519
. 2025-07-20 15:27:23.840 Doing ECDH key exchange with curve Curve25519, using hash SHA-256
. 2025-07-20 15:27:23.907 Server also has ecdsa-sha2-nistp256/rsa-sha2-512/rsa-sha2-256/ssh-rsa host keys, but we don't know any of them
. 2025-07-20 15:27:23.907 Host key fingerprint is:
. 2025-07-20 15:27:23.907 ***********
< 2025-07-20 15:27:23.907 Script: Authenticating...
. 2025-07-20 15:27:23.907 Host key matches configured key fingerprint
. 2025-07-20 15:27:23.907 Initialised AES-256 SDCTR (AES-NI accelerated) [aes256-ctr] outbound encryption
. 2025-07-20 15:27:23.907 Initialised HMAC-SHA-256 outbound MAC algorithm
. 2025-07-20 15:27:23.907 Initialised AES-256 SDCTR (AES-NI accelerated) [aes256-ctr] inbound encryption
. 2025-07-20 15:27:23.907 Initialised HMAC-SHA-256 inbound MAC algorithm
! 2025-07-20 15:27:23.920 Using username "myshake".
< 2025-07-20 15:27:23.920 Script: Using username "myshake".
. 2025-07-20 15:27:23.928 Server offered these authentication methods: publickey,password
. 2025-07-20 15:27:23.928 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2025-07-20 15:27:23.928 Using stored password.
< 2025-07-20 15:27:23.928 Script: Authenticating with pre-entered password.
. 2025-07-20 15:27:23.928 Sent password
. 2025-07-20 15:27:24.005 Access granted
. 2025-07-20 15:27:24.005 Opening main session channel
. 2025-07-20 15:27:24.117 Opened main channel
. 2025-07-20 15:27:24.117 Started a shell/command
< 2025-07-20 15:27:24.117 Script: Authenticated.
. 2025-07-20 15:27:24.117 --------------------------------------------------------------------------
. 2025-07-20 15:27:24.127 Using SCP protocol.
. 2025-07-20 15:27:24.127 Doing startup conversation with host.
< 2025-07-20 15:27:24.127 Script: Starting the session...
. 2025-07-20 15:27:24.127 Skipping host startup message (if any).
> 2025-07-20 15:27:24.127 echo "WinSCP: this is end-of-file:0"
< 2025-07-20 15:27:24.127 Linux raspberryshake 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
< 2025-07-20 15:27:24.127 WELCOME TO RASPBERRY SHAKE!
< 2025-07-20 15:27:24.127 Developed by:
< 2025-07-20 15:27:24.127  Raspberry Shake: https://raspberryshake.org
< 2025-07-20 15:27:24.127 STATION:   AM.R0A7F.00
< 2025-07-20 15:27:24.127 IP-ADDR:   NONE
< 2025-07-20 15:27:24.127 You have new mail.
< 2025-07-20 15:27:24.138 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.138 Detecting variable containing return code of last command.
. 2025-07-20 15:27:24.138 Trying "$status".
> 2025-07-20 15:27:24.138 echo "$status" ; echo "WinSCP: this is end-of-file:0"
< 2025-07-20 15:27:24.138 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.138 The response is not numerical exit code
. 2025-07-20 15:27:24.138 Trying "$?".
> 2025-07-20 15:27:24.138 echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 2025-07-20 15:27:24.138 0
< 2025-07-20 15:27:24.138 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.138 Return code variable "$?" selected.
> 2025-07-20 15:27:24.138 printenv LANG ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.138 en_GB.UTF-8
< 2025-07-20 15:27:24.138 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.138 We will use UTF-8
. 2025-07-20 15:27:24.138 Clearing all aliases.
> 2025-07-20 15:27:24.138 unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 5: unalias: ls: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 6: unalias: echo: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 7: unalias: pwd: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 8: unalias: cd: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 9: unalias: groups: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 10: unalias: scp: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 11: unalias: rm: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 12: unalias: mv: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 13: unalias: mkdir: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 14: unalias: chmod: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 15: unalias: chgrp: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 16: unalias: chown: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 17: unalias: unset: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 18: unalias: unalias: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.148 -bash: line 19: unalias: ln: not found
< 2025-07-20 15:27:24.148 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.148 unalias "cp" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.158 -bash: line 20: unalias: cp: not found
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:1
> 2025-07-20 15:27:24.158 unalias "printenv" ; echo "WinSCP: this is end-of-file:$?"
! 2025-07-20 15:27:24.158 -bash: line 21: unalias: printenv: not found
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:1
. 2025-07-20 15:27:24.158 Clearing national user variables.
> 2025-07-20 15:27:24.158 unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "BLOCK_SIZE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
> 2025-07-20 15:27:24.158 unset "LS_BLOCK_SIZE" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.158 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.158 Looking up groups and users.
> 2025-07-20 15:27:24.158 groups ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.168 myshake dialout cdrom sudo audio video plugdev games users input netdev docker gpio i2c spi
< 2025-07-20 15:27:24.168 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.168 Following groups found:
. 2025-07-20 15:27:24.168   "myshake" [0]
. 2025-07-20 15:27:24.168   "dialout" [0]
. 2025-07-20 15:27:24.168   "cdrom" [0]
. 2025-07-20 15:27:24.168   "sudo" [0]
. 2025-07-20 15:27:24.168   "audio" [0]
. 2025-07-20 15:27:24.168   "video" [0]
. 2025-07-20 15:27:24.168   "plugdev" [0]
. 2025-07-20 15:27:24.168   "games" [0]
. 2025-07-20 15:27:24.168   "users" [0]
. 2025-07-20 15:27:24.168   "input" [0]
. 2025-07-20 15:27:24.168   "netdev" [0]
. 2025-07-20 15:27:24.168   "docker" [0]
. 2025-07-20 15:27:24.168   "gpio" [0]
. 2025-07-20 15:27:24.168   "i2c" [0]
. 2025-07-20 15:27:24.168   "spi" [0]
. 2025-07-20 15:27:24.168 Following membership found:
. 2025-07-20 15:27:24.168   "myshake" [0]
. 2025-07-20 15:27:24.168   "dialout" [0]
. 2025-07-20 15:27:24.168   "cdrom" [0]
. 2025-07-20 15:27:24.168   "sudo" [0]
. 2025-07-20 15:27:24.168   "audio" [0]
. 2025-07-20 15:27:24.168   "video" [0]
. 2025-07-20 15:27:24.168   "plugdev" [0]
. 2025-07-20 15:27:24.168   "games" [0]
. 2025-07-20 15:27:24.168   "users" [0]
. 2025-07-20 15:27:24.168   "input" [0]
. 2025-07-20 15:27:24.168   "netdev" [0]
. 2025-07-20 15:27:24.168   "docker" [0]
. 2025-07-20 15:27:24.168   "gpio" [0]
. 2025-07-20 15:27:24.168   "i2c" [0]
. 2025-07-20 15:27:24.168   "spi" [0]
. 2025-07-20 15:27:24.168 No users found.
. 2025-07-20 15:27:24.168 Getting current directory name.
> 2025-07-20 15:27:24.168 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.168 /home/myshake
< 2025-07-20 15:27:24.168 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.168 Startup conversation with host finished.
< 2025-07-20 15:27:24.168 Script: Session started.
< 2025-07-20 15:27:24.168 Script: Active session: [1] myshake@rs.local
> 2025-07-20 15:27:24.168 Script: get "/opt/data/archive/2025/AM/R0A7F/EHE.D/*" "G:\***********"
. 2025-07-20 15:27:24.168 Listing directory "/opt/data/archive/2025/AM/R0A7F/EHE.D".
> 2025-07-20 15:27:24.168 ls -la --full-time "/opt/data/archive/2025/AM/R0A7F/EHE.D" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.180 total 42920
< 2025-07-20 15:27:24.180 drwxr-xr-x 2 root root     4096 2025-07-20 00:00:04.025851741 +0000 .
< 2025-07-20 15:27:24.180 drwxr-xr-x 5 root root     4096 2025-04-07 17:26:31.742995843 +0000 ..
< 2025-07-20 15:27:24.180 -rw-r--r-- 1 root root 16635392 2025-07-19 00:00:01.485384499 +0000 AM.R0A7F.00.EHE.D.2025.199
< 2025-07-20 15:27:24.180 -rw-r--r-- 1 root root 16851968 2025-07-20 00:00:01.525867352 +0000 AM.R0A7F.00.EHE.D.2025.200
< 2025-07-20 15:27:24.180 -rw-r--r-- 1 root root 10436096 2025-07-20 15:27:19.868438813 +0000 AM.R0A7F.00.EHE.D.2025.201
< 2025-07-20 15:27:24.180 WinSCP: this is end-of-file:0
. 2025-07-20 15:27:24.180 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediately.
. 2025-07-20 15:27:24.180 .;d;0;2025-07-20T04:00:04.000Z;4;"root" [0];"root" [0];rwxr-xr-x;0
. 2025-07-20 15:27:24.180 ..;d;0;2025-04-07T21:26:31.000Z;4;"root" [0];"root" [0];rwxr-xr-x;0
. 2025-07-20 15:27:24.180 AM.R0A7F.00.EHE.D.2025.199;-;16635392;2025-07-19T04:00:01.000Z;4;"root" [0];"root" [0];rw-r--r--;0
. 2025-07-20 15:27:24.180 AM.R0A7F.00.EHE.D.2025.200;-;16851968;2025-07-20T04:00:01.000Z;4;"root" [0];"root" [0];rw-r--r--;0
. 2025-07-20 15:27:24.180 AM.R0A7F.00.EHE.D.2025.201;-;10436096;2025-07-20T19:27:19.000Z;4;"root" [0];"root" [0];rw-r--r--;0
. 2025-07-20 15:27:24.180 Copying 3 files/directories to local directory "G:\Shared drives\LRSSI Storage\Data\Earthquake\" - total size: 43,923,456
. 2025-07-20 15:27:24.180   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0001; Resume: S (102400); CalcS: No; Mask:
. 2025-07-20 15:27:24.180   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2025-07-20 15:27:24.180   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2025-07-20 15:27:24.180 Copying 3 files/directories to local directory "G:\Shared drives\LRSSI Storage\Data\Earthquake\"
. 2025-07-20 15:27:24.180   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0001; Resume: S (102400); CalcS: No; Mask:
. 2025-07-20 15:27:24.180   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2025-07-20 15:27:24.181   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2025-07-20 15:27:24.181 echo "WinSCP: this is begin-of-file" ; scp -r -p -d -f "/opt/data/archive/2025/AM/R0A7F/EHE.D/AM.R0A7F.00.EHE.D.2025.199" ; echo "WinSCP: this is end-of-file:$?"
< 2025-07-20 15:27:24.182 WinSCP: this is begin-of-file
. 2025-07-20 15:27:24.182 Sending NULL.
< 2025-07-20 15:27:24.182 T1752883201 0 1752796804 0
. 2025-07-20 15:27:24.182 Sending NULL.
< 2025-07-20 15:27:24.182 C0644 16635392 AM.R0A7F.00.EHE.D.2025.199
. 2025-07-20 15:27:24.182 File: '/opt/data/archive/2025/AM/R0A7F/EHE.D/AM.R0A7F.00.EHE.D.2025.199' [2025-07-19T00:00:01.000Z] [16635392]
* 2025-07-20 15:27:24.203 (EOSError) System Error.  Code: 1314.
* 2025-07-20 15:27:24.203 A required privilege is not held by the client
. 2025-07-20 15:27:24.203 Asking user:
. 2025-07-20 15:27:24.203 Can't create file 'G:\Shared drives\LRSSI Storage\Data\Earthquake\AM.R0A7F.00.EHE.D.2025.199'. ("System Error.  Code: 1314.
. 2025-07-20 15:27:24.203 A required privilege is not held by the client")
< 2025-07-20 15:27:24.203 Script: Can't create file 'G:\***********\AM.R0A7F.00.EHE.D.2025.199'.
< 2025-07-20 15:27:24.205 Script: System Error.  Code: 1314.
< 2025-07-20 15:27:24.205 A required privilege is not held by the client
. 2025-07-20 15:27:24.205 Answer: Abort
. 2025-07-20 15:27:24.209 Sending SCP error (1) to remote side:
> 2025-07-20 15:27:24.209 scp: error
. 2025-07-20 15:27:24.213 Asking user:
. 2025-07-20 15:27:24.213 Copying file '/opt/data/archive/2025/AM/R0A7F/EHE.D/AM.R0A7F.00.EHE.D.2025.199' failed. ("Can't create file 'G:\***********\AM.R0A7F.00.EHE.D.2025.199'.")
< 2025-07-20 15:27:24.213 Script: Copying file '/opt/data/archive/2025/AM/R0A7F/EHE.D/AM.R0A7F.00.EHE.D.2025.199' failed.
< 2025-07-20 15:27:24.213 Script: Can't create file 'G:\***********\AM.R0A7F.00.EHE.D.2025.199'.
. 2025-07-20 15:27:24.213 Answer: Abort
* 2025-07-20 15:27:24.213 (EScpFileSkipped) Can't create file 'G:\***********\AM.R0A7F.00.EHE.D.2025.199'.
< 2025-07-20 15:27:24.213 WinSCP: this is end-of-file:1
. 2025-07-20 15:27:24.213 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2025-07-20 15:27:24.213 Script: Failed
. 2025-07-20 15:27:24.213 Script: Exit code: 1
. 2025-07-20 15:27:24.213 Closing connection.
. 2025-07-20 15:27:24.213 Sending special code: 1
. 2025-07-20 15:27:24.216 Session sent command exit status 0
. 2025-07-20 15:27:24.216 Main session channel closed
. 2025-07-20 15:27:24.217 All channels closed
. 2025-07-20
martin

Re: Error Code 1314 for Google Drive

Please post complete log.
table.kenny

Error Code 1314 for Google Drive

Hi all,

I automated an automatic file transfer process with WinSCP and Microsoft Task Scheduler that had been working fine for approximately a month before something went wrong. I'm trying to move data into a shared Google Drive (owned by the same account running my computer) every time it updates, and so I have a Windows batch script running a script in a separate text file opened in winscp.log on Terminal.

The code is as follows:
Batch script:
@echo off
cd ../..
cd [filepath to WinSCP folder]
winscp.com /script={text file name}.txt /log=winscp.log /ini=nul
exit

.txt file:
open {scp address, with password, hostkey, rawsettings, and ethernet sourceaddress copy-pasted from winSCP}
get "{filepath of file folder}/*" "G:\Shared drives\{folder}"
exit

Checked winscp.log and found the error to be in the file upload stage:
Script: System Error. Code: 1314. A required privilege is not held by the client.

I enabled all possible administrative permissions on the account in both settings and Local Security Policy, added sudo before get (which the computer didn't recognize), made sure to deselect "deny log on as a batch job," made sure I had administrative access, etc.. I'm able to upload and update files on Google Drive manually and with other automated processes, just not with WinSCP. The task is running fine, it's just that error. Does anyone have a solution? Thanks.

Computer, running Windows 10, is connected via ethernet connection to a Raspberry Pi importing data onto a constantly (every 10 millisecond) updating file.