{"action":"created","issue":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/656","repository_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse","labels_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/656/comments","events_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/656/events","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/656","id":263981373,"number":656,"title":"Impossible to read large files from a mount in a raspberry pi 2","user":{"login":"gui-don","id":1037958,"avatar_url":"https://avatars2.githubusercontent.com/u/1037958?v=4","gravatar_id":"","url":"https://api.github.com/users/gui-don","html_url":"https://github.com/gui-don","followers_url":"https://api.github.com/users/gui-don/followers","following_url":"https://api.github.com/users/gui-don/following{/other_user}","gists_url":"https://api.github.com/users/gui-don/gists{/gist_id}","starred_url":"https://api.github.com/users/gui-don/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gui-don/subscriptions","organizations_url":"https://api.github.com/users/gui-don/orgs","repos_url":"https://api.github.com/users/gui-don/repos","events_url":"https://api.github.com/users/gui-don/events{/privacy}","received_events_url":"https://api.github.com/users/gui-don/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-09T18:11:08Z","updated_at":"2017-10-15T06:15:09Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nWhen I do a mv/cp of a large file in the local disk, I get an I/O error:\r\n> $ cp /mnt/s3/myBigFile ~/\r\n> `cp: error reading '/mnt/s3/myBigFile': Input/output error`\r\n\r\nSame with any software (e.g. video soft cannot read large videos):\r\n> $ mpv '/mnt/s3/myBigFile.mkv'\r\n> `Failed to recognize file format.`\r\n\r\nI get these errors in the journal:\r\n\r\n```\r\nfdcache.cpp:Open(839): ftruncate() or fsync returned err(22)\r\ns3fs[804]: s3fs.cpp:s3fs_read(2081): could not find opened fd(/myBigFile)\r\ns3fs[804]: s3fs.cpp:s3fs_read(2081): could not find opened fd(/myBigFile)\r\ns3fs[804]: s3fs.cpp:s3fs_read(2081): could not find opened fd(/myBigFile)\r\ns3fs[804]: s3fs.cpp:s3fs_release(2213): could not find fd(file=/myBigFile)\r\n```\r\n\r\nTested with different files.\r\nIt works with relatively small files, so I don’t think it’s permission-related.\r\nAlso, I use SSHFS on this rpi to retrieve the same files and never had any problem. Webdav also works correctly.\r\n\r\nHowever, s3fs works well on my laptop with the exact same configuration, except for kernel (4.13.3, amd64).\r\n\r\nAlso, thank you for your work!\r\n\r\n#### Steps to reproduce\r\n- Put a large file (more than 1.5GB) in a S3 bucket, from anywhere: `big.file`.\r\n- Create a mount point for the current user `mkdir /mnt/s3 && chown me:me /mnt/s3`\r\n- `s3fs my-bucket /mnt/s3 -o passwd_file=~/.config/s3fs-credentials,allow_other,connect_timeout=15,retries=3,noatime,curldbg -d`\r\n- Try to copy/read the big file. E.g. `cp /mnt/s3/big.file ~/`\r\n\r\n#### Additional Information\r\nHardware: Rpi 2 (armv7)\r\nDistro: Archlinux\r\nKernel: Linux 4.9.52-1\r\ns3fs version: 1.80\r\nfuse version: 2.9.7"},"comment":{"url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/comments/336689300","html_url":"https://github.com/s3fs-fuse/s3fs-fuse/issues/656#issuecomment-336689300","issue_url":"https://api.github.com/repos/s3fs-fuse/s3fs-fuse/issues/656","id":336689300,"user":{"login":"ggtakec","id":3221882,"avatar_url":"https://avatars1.githubusercontent.com/u/3221882?v=4","gravatar_id":"","url":"https://api.github.com/users/ggtakec","html_url":"https://github.com/ggtakec","followers_url":"https://api.github.com/users/ggtakec/followers","following_url":"https://api.github.com/users/ggtakec/following{/other_user}","gists_url":"https://api.github.com/users/ggtakec/gists{/gist_id}","starred_url":"https://api.github.com/users/ggtakec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggtakec/subscriptions","organizations_url":"https://api.github.com/users/ggtakec/orgs","repos_url":"https://api.github.com/users/ggtakec/repos","events_url":"https://api.github.com/users/ggtakec/events{/privacy}","received_events_url":"https://api.github.com/users/ggtakec/received_events","type":"User","site_admin":false},"created_at":"2017-10-15T06:15:09Z","updated_at":"2017-10-15T06:15:09Z","author_association":"OWNER","body":"@gui-don \r\nThis error appears to have received EINVAL(The argument length is negative or larger than the maximum file size) from ftruncate function.\r\nAlthough raspberry pi is not detailed, there seems to be some restriction in raspberry pi, like \"It works with relatively small files\" you indicate.\r\n\r\ns3fs opens a temporary file with tmpfile and changes its size with ftruncate.\r\nCould you check whether the size of ftruncate on raspberry pi is restricted?\r\n\r\nThanks in advance for your assistance."}}
{"actor":{"display_login":"ggtakec"}}