Skip to content

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

Open

Description

@rful011

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

Activity

  1. deleted a comment from LouisaNikita on Nov 29, 2022
  2. adigikian commented on Dec 6, 2022

    @adigikian

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions