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

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.