sYbb12
(Stefan)
March 30, 2022, 3:08pm
1
hi guys, I have exactly that problem mentioned here:
Note that, despite the scary looking message, this isn't actually an ERROR and everything works just fine with that message.
@ivandeex maybe we should make this a bit less scary? It probably only needs to be emitted once per backend also.
I also know that the files are actually copied fine, but my backend system relies on the error code returned by rclone. In this situation (getting more and more daily), rclone always returns an error, so my backend thinks: "Oh shit, files are not copied, alert!!"
Can I make this ignore somehow, so that the result code is a success again? The solution mentioned here just works for SFTP, but not for FTP (I tried):
What is the problem you are having with rclone?
Error when sending files to sftp.
What is your rclone version (output from rclone version)
rclone v1.54.1
os/arch: linux/amd64
go version: go1.15.8
Which OS you are using and how many bits (eg Windows 7, 64 bit)
CentOS Linux release 7.8.2003
x86_64
Which cloud storage system are you using? (eg Google Drive)
sftp
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone move ~/test.file master:/test/upload/ -vv --transfers 1…
Thanks, Stefan
ncw
(Nick Craig-Wood)
March 31, 2022, 3:52pm
2
Do you want to send a patch for this line of code?
}
o.fs.putFtpConnection(&c, err)
}
}
return o.info.ModTime
}
// SetModTime sets the modification time of the object
func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error {
if !o.fs.fSetTime {
fs.Errorf(o.fs, "SetModTime is not supported")
return nil
}
c, err := o.fs.getFtpConnection(ctx)
if err != nil {
return err
}
path := path.Join(o.fs.root, o.remote)
path = o.fs.opt.Enc.FromStandardPath(path)
err = c.SetTime(path, modTime.In(time.UTC))
if err == nil && o.info != nil {
It needs to be fs.Debugf
rather than fs.Errorf
to be a bit less noisy.
Link to this forum message in the commit message.
sYbb12
(Stefan)
March 31, 2022, 4:15pm
3
Would this change also result in another error code? And sorry, cannot send a patch or something, I am not a developer
ncw
(Nick Craig-Wood)
March 31, 2022, 9:41pm
4
It would stop that error message being printed in the log.
That error message doesn't cause a non zero return code - if you've got that it is a different cause and the end of the log will say why.
system
(system)
Closed
May 31, 2022, 5:42pm
5
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.