Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access /dev/fsevents monitor #428

Closed
christ-a-lix opened this issue Feb 25, 2017 · 6 comments
Closed

Cannot access /dev/fsevents monitor #428

christ-a-lix opened this issue Feb 25, 2017 · 6 comments

Comments

@christ-a-lix
Copy link

This command lsyncd /var/log/lsyncd/lsyncd.conf.lua gives me the following:
Warn: Using /dev/fsevents which is considered an OSX internal interface.
Warn: Functionality might break across OSX versions (This is for 10.5.X)
Warn: A hanging Lsyncd might cause Spotlight/Timemachine doing extra work.
Error: Cannot access /dev/fsevents monitor! (1:Operation not permitted)

I am using rsync 3.1.2, mac 10.12.3, lsyncd 2.2.2

@ValeriyMaslenikov
Copy link

Hi, I had the same issue, but it is solved for me by executing lsyncd with sudo

@axkibe
Copy link
Collaborator

axkibe commented Mar 9, 2018

Lsyncd needs to be ran as root on OSX.

However, the thing is, the whole OSX interface is dated. I currently don't advise using it, until someone rewrites the FsEvents Layer.

@axkibe axkibe closed this as completed Mar 9, 2018
@wuservices
Copy link

I got it to work with sudo in brief testing as well on High Sierra. At first glance, it seemed to work pretty well, and I'm hoping to replace vagrant-gatling-rsync with it to quickly push dev changes to a remote environment.

Understood that it might not be in the best state now, but are there specific issues I might want to look out for, or if it works, should I be good to go?

Thanks for your work on this utility!

@axkibe
Copy link
Collaborator

axkibe commented Mar 9, 2018

The whole OSX line is no longer maintained, so I advise against using it. I'm not planning on maintaining a FsEvents layers myself, however I'd accept somebody doing this for Lsyncd.

@noway
Copy link

noway commented Mar 24, 2021

What's the lsyncd alternative on MacOS then?

@timka
Copy link

timka commented Jun 6, 2024

@noway Not a real alternative but works for some cases like synching a cloned git repo to a remote development host (where it's cloned too).

fswatch --recursive --one-per-batch  . | while read line ; do rsync -ah --stats --delete-after ./ user@example.com:src/my-project --exclude=.direnv --exclude=.git ; echo ; date ; echo "\n" ; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants