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

having problems with listening to a dir that is an sshfs mount. #561

Open
rful011 opened this issue Sep 6, 2022 · 1 comment
Open

having problems with listening to a dir that is an sshfs mount. #561

rful011 opened this issue Sep 6, 2022 · 1 comment

Comments

@rful011
Copy link

rful011 commented Sep 6, 2022

As part of upgrading one of my systems I moved to new VM with a more up to date OS. To make the transition easier I mounted the directory from the old system on the new one using sshfs and pointed listen to that.

On the mounted system listen does not detect new files on the mounted volume -- is this a bug or a feature ?

Ubuntu 20.04

@guard guard deleted a comment from LouisaNikita Nov 29, 2022
@adigikian
Copy link

I'm also having issue like this.

Listen gem works perfectly when I listen to a mounted directory by running a Rails server without daemonizing it.
But when I run my rails server in daemon mode then Listen does not work.
Below is the code snippet.

listener = Listen.to('/mnt/erx') do |modified, added, removed|
  Listen.logger.info "###############################  Listener ############################"
  Listen.logger.info "############################### #{listener.inspect} ############################"
  Listen.logger.info "#######################################################################"
  Listen.logger.info "###############################  Added ############################"
  Listen.logger.info "############################### #{added.inspect} ############################"
  Listen.logger.info "############################### First #{added.inspect} ############################"
  Listen.logger.info "#######################################################################"
end

listener.start

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

2 participants