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

Error when using the daemon option #50

Open
coaxial opened this issue Mar 20, 2019 · 0 comments
Open

Error when using the daemon option #50

coaxial opened this issue Mar 20, 2019 · 0 comments

Comments

@coaxial
Copy link

coaxial commented Mar 20, 2019

I am using guard-rails with the daemon: true option set.

It starts up fine, but when accessing localhost:3000 from the browser I am getting an error: Errno::EACCES (Permission denied @ dir_initialize - /run/runc).

Everything runs ok when not using the daemon option. I'm using a gemset with RVM if that changes anything.

Versions:

$ gem info guard guard-rails rails

*** LOCAL GEMS ***

guard (2.15.0)
    Author: Thibaud Guillaume-Gentil
    Homepage: http://guardgem.org
    License: MIT
    Installed at: /home/coaxial/.rvm/gems/ruby-2.6.1@kersinki

    Guard keeps an eye on your file modifications

*** LOCAL GEMS ***

guard-rails (0.8.1)
    Authors: John Bintz, Wanzhang Sheng
    Homepage: https://github.com/ranmocy/guard-rails
    License: MIT
    Installed at: /home/coaxial/.rvm/gems/ruby-2.6.1@kersinki

    Guard your Rails to always be there.

*** LOCAL GEMS ***

rails (5.2.2.1)
    Author: David Heinemeier Hansson
    Homepage: http://rubyonrails.org
    License: MIT
    Installed at: /home/coaxial/.rvm/gems/ruby-2.6.1@kersinki

    Full-stack web application framework.

My guard:

guard 'rails', daemon: true do
  watch('Gemfile.lock')
  watch(%r{^(config|lib)/.*})
end

Full trace:

Errno::EACCES (Permission denied @ dir_initialize - /run/runc):
  
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:194:in `initialize'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:194:in `new'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:194:in `watch'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:204:in `block in watch'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:196:in `each'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:196:in `watch'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:204:in `block in watch'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:196:in `each'
rb-inotify (0.10.0) lib/rb-inotify/notifier.rb:196:in `watch'
listen (3.1.5) lib/listen/adapter/linux.rb:32:in `_configure'
listen (3.1.5) lib/listen/adapter/base.rb:45:in `block in configure'
listen (3.1.5) lib/listen/adapter/base.rb:40:in `each'
listen (3.1.5) lib/listen/adapter/base.rb:40:in `configure'
listen (3.1.5) lib/listen/adapter/base.rb:63:in `start'
/home/coaxial/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in `start'
listen (3.1.5) lib/listen/listener.rb:68:in `block in <class:Listener>'
listen (3.1.5) lib/listen/fsm.rb:121:in `instance_eval'
listen (3.1.5) lib/listen/fsm.rb:121:in `call'
listen (3.1.5) lib/listen/fsm.rb:91:in `transition_with_callbacks!'
listen (3.1.5) lib/listen/fsm.rb:57:in `transition'
listen (3.1.5) lib/listen/listener.rb:91:in `start'
activesupport (5.2.2.1) lib/active_support/evented_file_update_checker.rb:96:in `boot!'
activesupport (5.2.2.1) lib/active_support/evented_file_update_checker.rb:73:in `block in updated?'
activesupport (5.2.2.1) lib/active_support/evented_file_update_checker.rb:71:in `synchronize'
activesupport (5.2.2.1) lib/active_support/evented_file_update_checker.rb:71:in `updated?'
railties (5.2.2.1) lib/rails/application/finisher.rb:159:in `map'
railties (5.2.2.1) lib/rails/application/finisher.rb:159:in `block (2 levels) in <module:Finisher>'
activesupport (5.2.2.1) lib/active_support/reloader.rb:81:in `check!'
activesupport (5.2.2.1) lib/active_support/reloader.rb:63:in `run!'
actionpack (5.2.2.1) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.2.1) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.2.1) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.2.1) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.2.1) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.2.1) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.2.1) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.0.6) lib/rack/method_override.rb:22:in `call'
rack (2.0.6) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.2.1) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.0.6) lib/rack/sendfile.rb:111:in `call'
railties (5.2.2.1) lib/rails/engine.rb:524:in `call'
puma (3.12.1) lib/puma/configuration.rb:227:in `call'
puma (3.12.1) lib/puma/server.rb:660:in `handle_request'
puma (3.12.1) lib/puma/server.rb:474:in `process_client'
puma (3.12.1) lib/puma/server.rb:334:in `block in run'
puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread'
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

1 participant