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

EOPNOTSUPP raised when hashing UNIX domain socket file #73

Closed
sunaku opened this issue Dec 27, 2012 · 7 comments
Closed

EOPNOTSUPP raised when hashing UNIX domain socket file #73

sunaku opened this issue Dec 27, 2012 · 7 comments

Comments

@sunaku
Copy link
Contributor

sunaku commented Dec 27, 2012

Hello,

@rahearn is getting EOPNOTSUPP from listen 0.6.0's polling adapter on OSX when it tries to hash a UNIX domain socket file:

rahearn@chris:~/software/golfstats$ bundle exec tork-herald
[Listen warning]:
  Missing dependency 'rb-fsevent' (version '~> 0.9.1')!
  Please add the following to your Gemfile to satisfy the dependency:
    gem 'rb-fsevent', '~> 0.9.1'

  For a better performance, it's recommended that you satisfy the missing dependency.
  Listen will be polling changes. Learn more at https://github.com/guard/listen#polling-fallback.

/Users/rahearn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/digest.rb:44:in `initialize': Operation not supported on socket - /Users/rahearn/software/golfstats/.tork-driver.sock (Errno::EOPNOTSUPP)
    from /Users/rahearn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/digest.rb:44:in `open'
    from /Users/rahearn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/digest.rb:44:in `file'
    from /Users/rahearn/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/digest.rb:29:in `file'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:306:in `sha1_checksum'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:281:in `content_modified?'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:223:in `block in detect_modifications_and_removals'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:205:in `each'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:205:in `detect_modifications_and_removals'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:173:in `block in fetch_changes'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:171:in `each'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/directory_record.rb:171:in `fetch_changes'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/listener.rb:208:in `on_change'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/listener.rb:221:in `block in initialize_adapter'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/adapters/polling.rb:56:in `call'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/adapters/polling.rb:56:in `poll'
    from /Users/rahearn/.rvm/gems/ruby-1.9.3-p327@golfstats/gems/listen-0.6.0/lib/listen/adapters/polling.rb:32:in `block in start'

The solution for this bug is very similar to pull request #64: simply add Errno::EOPNOTSUPP to the rescue list in sha1_checksum() in lib/listen/directory_record.rb.

Thanks for your consideration.

@thibaudgg
Copy link
Member

Have you installed rb-fsevent as indicated?

@sunaku
Copy link
Contributor Author

sunaku commented Dec 27, 2012

No, because our goal is to exercise listen's polling adapter on @rahearn's system. If that works correctly, then we will have found a bug in either listen's usage of the rb-fsevent library or in the rb-fsevent library itself. 👮

@thibaudgg
Copy link
Member

Ok my bad, can you try the issue73 branch it should be fixed.

@sunaku
Copy link
Contributor Author

sunaku commented Dec 28, 2012

Thanks! I'll report back after @rahearn has tried out the new branch. 😺

@thibaudgg
Copy link
Member

Great!

@rahearn
Copy link

rahearn commented Dec 29, 2012

the issue73 branch seems to fix everything I was seeing on sunaku/tork#43, both with and without rb-fsevent included

@thibaudgg
Copy link
Member

Great, 0.7.0 released.

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

3 participants