LittleFlower2019 / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

can't upload files with ftp over s3fs #386

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Detailed description of observed behavior:

I've set up an ftp server with vsftpd, and created a user with a home directory 
under a dir mounted with s3fs.
I am able to connect with this user to the ftp,
get a dir list, and download files.
But when I upload a file, the ftp gives an error:

Copying files to remote side failed.
OOPS: ftruncate

after that an empty file is created on the server (with the name of that file)

Is there something else I should be doing?

Thanks.

===================================================================
The following information is very important in order to help us to help
you.  Omission of the following details may delay your support request or
receive no attention at all.
===================================================================
Version of s3fs being used (s3fs --version):
1.73

Version of fuse being used (pkg-config --modversion fuse):
2.8.6

System information (uname -a):
Linux --- 3.2.0-31-virtual #50-Ubuntu SMP Fri Sep 7 17:02:15 UTC 2012 i686 i686 
i386 GNU/Linux

Distro (cat /etc/issue):
Ubuntu 12.04.2 LTS \n \l

s3fs command line used (if applicable):
/usr/bin/s3fs -o allow_other -o default_acl="public-read-write" -o use_rrs=1 
bucket_name /mnt/ftp

/etc/fstab entry (if applicable):
LABEL=cloudimg-rootfs   /        ext4   defaults        0 0
/dev/xvda3      none    swap    sw,comment=cloudconfig  0       0

s3fs syslog messages (grep s3fs /var/log/syslog):
s3fs: init $Rev: 474 $

also, here is the stdout after running with -f (only the logs after the 
beginning of the upload):
s3fs_getattr(676): [path=/xxx]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=14]
s3fs_getattr(676): [path=/xxx/yyy.txt]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=15]
    HeadRequest(1619): [tpath=/xxx/yyy.txt]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
    HeadRequest(1619): [tpath=/xxx/yyy.txt/]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
    HeadRequest(1619): [tpath=/xxx/yyy.txt_$folder$]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
  list_bucket(2147): [path=/xxx/yyy.txt]
    ListBucketRequest(1970): [tpath=/xxx/yyy.txt]
    RequestPerform(1232): HTTP response code 200
s3fs_create(780): [path=/xxx/yyy.txt][mode=100600][flags=34881]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=16]
    HeadRequest(1619): [tpath=/xxx/yyy.txt]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
    HeadRequest(1619): [tpath=/xxx/yyy.txt/]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
    HeadRequest(1619): [tpath=/xxx/yyy.txt_$folder$]
    RequestPerform(1232): HTTP response code 404
    RequestPerform(1256): HTTP response code 404 was returned, returning ENOENT
  list_bucket(2147): [path=/xxx/yyy.txt]
    ListBucketRequest(1970): [tpath=/xxx/yyy.txt]
    RequestPerform(1232): HTTP response code 200
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=17]
    create_file_object(740): [path=/xxx/yyy.txt][mode=100600]
    PutRequest(1741): [tpath=/xxx/yyy.txt]
    PutRequest(1755): create zero byte file object.
    PutRequest(1834): uploading... [path=/xxx/yyy.txt][fd=-1][size=0]
    RequestPerform(1232): HTTP response code 200
    DelStat(341): delete stat cache entry[path=/xxx/yyy.txt]
s3fs_getattr(676): [path=/xxx/yyy.txt]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=18]
    HeadRequest(1619): [tpath=/xxx/yyy.txt]
    RequestPerform(1232): HTTP response code 200
    AddStat(234): add stat cache entry[path=/xxx/yyy.txt]
    GetStat(158): stat cache hit [path=/xxx/yyy.txt][time=1384278837][hit count=0]
s3fs_truncate(1776): [path=/xxx/yyy.txt][size=0]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=19]
    GetStat(158): stat cache hit [path=/xxx/yyy.txt][time=1384278837][hit count=1]
    GetStat(158): stat cache hit [path=/xxx/yyy.txt][time=1384278837][hit count=2]
s3fs_truncate(1793): could not download file(/xxx/yyy.txt): errno=0
s3fs_flush(1925): [path=/xxx/yyy.txt][fd=5]
    GetStat(158): stat cache hit [path=/xxx/][time=1384278801][hit count=20]
    GetStat(158): stat cache hit [path=/xxx/yyy.txt][time=1384278837][hit count=3]
    GetStat(158): stat cache hit [path=/xxx/yyy.txt][time=1384278837][hit count=4]
s3fs_release(1963): [path=/xxx/yyy.txt][fd=5]
    DelStat(341): delete stat cache entry[path=/xxx/yyy.txt]

Original issue reported on code.google.com by kat...@gmail.com on 12 Nov 2013 at 6:01

GoogleCodeExporter commented 8 years ago
I've installed the latest version from svn, and it seems to be working fine now.
I'm a bit reluctant of using an unstable version in production though.
Are there any estimation on when the next release will be?

thanks.

Original comment by kat...@gmail.com on 13 Nov 2013 at 8:32

GoogleCodeExporter commented 8 years ago
Hi, katzav

I closed this issue.
And I'll update s3fs new version soon.
When I update s3fs, please use latest version.

Thanks a lot.

Original comment by ggta...@gmail.com on 13 Nov 2013 at 2:14