[GH-ISSUE #45] incron / lsyncd (inotify or fsevents) not detecting changes at s3. #25

Closed
opened 2026-03-04 01:41:18 +03:00 by kerem · 9 comments
Owner

Originally created by @paulm17 on GitHub (Jun 28, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/45

Hi,

I've been pulling my hair out all day on finding out why an s3fs mounted directory won't be updated via incron or lsyncd.

Then I happened to come across this:

http://unix.stackexchange.com/questions/100837/incrontab-doesnt-detect-modifications-on-a-s3fs-mount

I am running the latest fuse:

fuse-devel-2.9.3-1.el6.x86_64
fuse-libs-2.9.3-1.el6.x86_64
fuse-2.9.3-1.el6.x86_64

I created the rpms myself for centos 6.5.

and the latest s3fs:

[root@ip-10-0-4-78 www]# s3fs --v
Amazon Simple Storage Service File System V1.77 with OpenSSL

Yet, when the s3 bucket is updated, the change is available when i view the s3fs mount point but incron or lsyncd do not update nor to they do suggest any activity in their logs.

However, if I go into the s3fs mount and I do an update there. Everything works as it should.

So why am I having the issue of nothing being detected when a change at s3 happens?

Thanks

Originally created by @paulm17 on GitHub (Jun 28, 2014). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/45 Hi, I've been pulling my hair out all day on finding out why an s3fs mounted directory won't be updated via incron or lsyncd. Then I happened to come across this: ``` http://unix.stackexchange.com/questions/100837/incrontab-doesnt-detect-modifications-on-a-s3fs-mount ``` I am running the latest fuse: ``` fuse-devel-2.9.3-1.el6.x86_64 fuse-libs-2.9.3-1.el6.x86_64 fuse-2.9.3-1.el6.x86_64 ``` I created the rpms myself for centos 6.5. and the latest s3fs: ``` [root@ip-10-0-4-78 www]# s3fs --v Amazon Simple Storage Service File System V1.77 with OpenSSL ``` Yet, when the s3 bucket is updated, the change is available when i view the s3fs mount point but incron or lsyncd do not update nor to they do suggest any activity in their logs. However, if I go into the s3fs mount and I do an update there. Everything works as it should. So why am I having the issue of nothing being detected when a change at s3 happens? Thanks
kerem closed this issue 2026-03-04 01:41:18 +03:00
Author
Owner

@thenickdude commented on GitHub (Jun 29, 2014):

S3 can't notify your instance when files change in the bucket (the only
notification it supports is a lost-file notification), so I don't see how
such a feature could be implemented for s3fs.

<!-- gh-comment-id:47442310 --> @thenickdude commented on GitHub (Jun 29, 2014): S3 can't notify your instance when files change in the bucket (the only notification it supports is a lost-file notification), so I don't see how such a feature could be implemented for s3fs.
Author
Owner

@paulm17 commented on GitHub (Jun 29, 2014):

Taking s3 out of this for a moment.

If I swap out s3 and use nfs and use lsyncd to monitor the files. This works fine.

So the question is, under s3fs. When a new file suddenly appears or a change is made. Why can't s3fs be made aware on the file system level?

<!-- gh-comment-id:47442968 --> @paulm17 commented on GitHub (Jun 29, 2014): Taking s3 out of this for a moment. If I swap out s3 and use nfs and use lsyncd to monitor the files. This works fine. So the question is, under s3fs. When a new file suddenly appears or a change is made. Why can't s3fs be made aware on the file system level?
Author
Owner

@muvimotv commented on GitHub (Aug 19, 2014):

where did you get these from:
fuse-devel-2.9.3-1.el6.x86_64
fuse-libs-2.9.3-1.el6.x86_64
fuse-2.9.3-1.el6.x86_64

<!-- gh-comment-id:52577047 --> @muvimotv commented on GitHub (Aug 19, 2014): where did you get these from: fuse-devel-2.9.3-1.el6.x86_64 fuse-libs-2.9.3-1.el6.x86_64 fuse-2.9.3-1.el6.x86_64
Author
Owner

@muvimotv commented on GitHub (Aug 19, 2014):

i can't manage to get s3fs to work at all on 6.5

<!-- gh-comment-id:52577101 --> @muvimotv commented on GitHub (Aug 19, 2014): i can't manage to get s3fs to work at all on 6.5
Author
Owner

@muvimotv commented on GitHub (Aug 19, 2014):

i follow the instruction to make and then i get this:

modprobe fuse

FATAL: Module fuse not found.

<!-- gh-comment-id:52577805 --> @muvimotv commented on GitHub (Aug 19, 2014): i follow the instruction to make and then i get this: # modprobe fuse FATAL: Module fuse not found.
Author
Owner

@paulm17 commented on GitHub (Aug 19, 2014):

Hi,

I abandoned this in the end. Just so you know, I made my own libs from source rpms.

Thanks

Paul

<!-- gh-comment-id:52579353 --> @paulm17 commented on GitHub (Aug 19, 2014): Hi, I abandoned this in the end. Just so you know, I made my own libs from source rpms. Thanks Paul
Author
Owner

@muvimotv commented on GitHub (Aug 19, 2014):

ok well i guess i can forget all together about using s3fs i've spend 2 days on this already and i'm not any closer to have it working as i was when i started... There is no tutorial anywhere that actually work and since i basically have no clue what i'm doing i don't see how i can sort this out on my own...

<!-- gh-comment-id:52579756 --> @muvimotv commented on GitHub (Aug 19, 2014): ok well i guess i can forget all together about using s3fs i've spend 2 days on this already and i'm not any closer to have it working as i was when i started... There is no tutorial anywhere that actually work and since i basically have no clue what i'm doing i don't see how i can sort this out on my own...
Author
Owner

@ggtakec commented on GitHub (Sep 7, 2014):

I think inotify do not work on s3fs, because s3fs run on fuse. It likes NFS.
(I think that maybe some system(ex. nfs/nfs_kq) can do it, but it is polling file stats.)
Thus s3fs runs on fuse, so inotify is hard to support. If s3fs supported, but it could not be good performance and not be respond as soon as changing.

So no1youknowz had used another tool which supports notify, I want to know it, and see codes.
It helps us to support notify, if it can do, I try to add s3fs.

Thanks,

<!-- gh-comment-id:54751027 --> @ggtakec commented on GitHub (Sep 7, 2014): I think inotify do not work on s3fs, because s3fs run on fuse. It likes NFS. (I think that maybe some system(ex. nfs/nfs_kq) can do it, but it is polling file stats.) Thus s3fs runs on fuse, so inotify is hard to support. If s3fs supported, but it could not be good performance and not be respond as soon as changing. So no1youknowz had used another tool which supports notify, I want to know it, and see codes. It helps us to support notify, if it can do, I try to add s3fs. Thanks,
Author
Owner

@micgrivas commented on GitHub (Feb 12, 2019):

inotify cannot work on s3fs, because s3fs works over HTTPS. Practically, it is the same as DAV.
The s3fs makes a pseudo-filesystem, for our ease, but cannot be 100% a file system.
Each time one copies files to s3 (over a mount with s3fs) , then the s3fs creates a local file and then run an HTTP request to upload it.
There is no way for such a system to understand changes in s3-subsystem. Like an apache server will not automatically find any changes in the /var/lib/www directory and refresh any page.

<!-- gh-comment-id:462922464 --> @micgrivas commented on GitHub (Feb 12, 2019): inotify cannot work on s3fs, because s3fs works over HTTPS. Practically, it is the same as DAV. The s3fs makes a pseudo-filesystem, for our ease, but cannot be 100% a file system. Each time one copies files to s3 (over a mount with s3fs) , then the s3fs creates a local file and then run an HTTP request to upload it. There is no way for such a system to understand changes in s3-subsystem. Like an apache server will not automatically find any changes in the /var/lib/www directory and refresh any page.
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#25
No description provided.