Page MenuHomePhabricator

sftp gives bogus "Couldn't stat remote file: No such file or directory"
Closed, InvalidPublic

Description

sftp used to work for me, but now when sftp-ing to tin.eqiad.wmnet I get:

sftp> put file.ext
Resuming upload of file.ext to /home/mattflaschen/file.ext
Couldn't stat remote file: No such file or directory

Real example at P4111 .

Event Timeline

Is there a file of that name there already? If not, maybe you don't want 'resume'...

https://www.freebsd.org/cgi/man.cgi?query=sftp&sektion=1

put [-afPpr] local-path [remote-path]

             Upload local-path and store it on the remote machine.  If the
             remote path name is not specified, it is given the same name it
             has on the local machine.  local-path may contain glob(3)
             characters and may match multiple files.  If it does and
             remote-path is specified, then remote-path must specify a
             directory.

             If the -a flag is specified, then attempt to resume partial
             transfers of existing files.

What Ariel said, the "resume" part makes it sound like you specified -a, but in your example it doesn't show up , so that's a bit strange. Is it possible you enabled resume in another way , like in a config file? Could you try disabling it?

Sorry, this was indeed a local issue.