[GH-ISSUE #1084] cannot fstat 'directory_mount/file': No such file or directory #587

Closed
opened 2026-03-04 01:46:59 +03:00 by kerem · 2 comments
Owner

Originally created by @hadoopTrainingDc on GitHub (Jul 10, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1084

Version of s3fs being used
1.85

Kernel information
3.10.0-957.1.3.el7.x86_64

System Information
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

When I copy a file to a directory mount, then if I wanna make sure that the file exists, I do: "ls -l" on the target folder, and it works. But, when I delete that file from the directory mount and if I want to copy the same file again to the directory mount an error shows up:
"cannot fstat 'directory_mount/file': No such file or directory"

But if enter other command like ls -l to the mounted folder, and I try to copy it again, it works.

I think something on the cache is keeping info of the file deleted.

Originally created by @hadoopTrainingDc on GitHub (Jul 10, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1084 Version of s3fs being used 1.85 Kernel information 3.10.0-957.1.3.el7.x86_64 System Information NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" When I copy a file to a directory mount, then if I wanna make sure that the file exists, I do: "ls -l" on the target folder, and it works. But, when I delete that file from the directory mount and if I want to copy the same file again to the directory mount an error shows up: "cannot fstat 'directory_mount/file': No such file or directory" But if enter other command like ls -l to the mounted folder, and I try to copy it again, it works. I think something on the cache is keeping info of the file deleted.
kerem 2026-03-04 01:46:59 +03:00
  • closed this issue
  • added the
    need info
    label
Author
Owner

@gaul commented on GitHub (Jul 11, 2019):

Can you provide the exact command and s3fs arguments you tested with? The following works for me:

dd if=/dev/urandom of=${TEST_TEXT_FILE} bs=1M count=25
ls -l ${TEST_TEXT_FILE}
rm -f ${TEST_TEXT_FILE}
dd if=/dev/urandom of=${TEST_TEXT_FILE} bs=1M count=25
ls -l ${TEST_TEXT_FILE}
<!-- gh-comment-id:510289123 --> @gaul commented on GitHub (Jul 11, 2019): Can you provide the exact command and s3fs arguments you tested with? The following works for me: ```bash dd if=/dev/urandom of=${TEST_TEXT_FILE} bs=1M count=25 ls -l ${TEST_TEXT_FILE} rm -f ${TEST_TEXT_FILE} dd if=/dev/urandom of=${TEST_TEXT_FILE} bs=1M count=25 ls -l ${TEST_TEXT_FILE} ```
Author
Owner

@gaul commented on GitHub (Feb 3, 2020):

Closing due to inactivity. Please reopen if symptoms persist.

<!-- gh-comment-id:581288909 --> @gaul commented on GitHub (Feb 3, 2020): Closing due to inactivity. Please reopen if symptoms persist.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#587
No description provided.