I'm trying to setup a sftp server over GCS.
An example gcsfuse mount in the container is
gcsfuse -o nonempty --only-dir user1 $BUCKET /home/user1/ftp
When I upload two files using sftp:
sftp> put 1024K.txt
Uploading 1024K.txt to /ftp/1024K.txt
1024K.txt 100% 1025KB 426.0KB/s 00:02
sftp> put 8K.txt
Uploading 8K.txt to /ftp/8K.txt
8K.txt 100% 8200 117.6KB/s 00:00
Couldn't close file: Failure
but both files are transferred ok:
sftp> ls -l
-rw-r--r-- 1 1003 1003 1049600 Mar 15 13:33 1024K.txt
-rw-r--r-- 1 1003 1003 8200 Mar 15 13:33 8K.txt
- I am running on a standard debian-stretch instance.
- The instance has storage R/W permission.
- I have tried some gcsfuse options with no success: --type-cache-ttl 0 --stat-cache-ttl 0 --implicit-dirs
- I tried ssh debug logging on the client and server - no new information.
As the large file upload is successful, I don't think it relates to permissions or sftp setup. What could cause the small file upload to fail?
(Edited to remove the reference to K8 and GKE as the behaviour is reproducible without)