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: `readlines': No such file or directory @ rb_sysopen - session_store.rb (Errno::ENOENT) #5

Open
kartikjagdale opened this issue Aug 18, 2016 · 0 comments

Comments

@kartikjagdale
Copy link

While Installing HeadShot I am getting an error:
below is the stack trace of error:

Command: rails generate headshot:install

checking  Checking if session_store.rb contains the code for initializing for the middleware.
 inside  /home/kartik/dev/ruby/work/MaxMyWealth/lib/templates/headshot/config/../initializers
/home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/headshot-0.1.6/lib/generators/headshot/config/config_generator.rb:32:in `readlines': No such file or directory @ rb_sysopen - session_store.rb (Errno::ENOENT)
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/headshot-0.1.6/lib/generators/headshot/config/config_generator.rb:32:in `block in initialize_session_store'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/actions.rb:184:in `block in inside'
    from /home/kartik/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:127:in `chdir'
    from /home/kartik/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/fileutils.rb:127:in `cd'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/actions.rb:184:in `inside'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/headshot-0.1.6/lib/generators/headshot/config/config_generator.rb:31:in `initialize_session_store'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/generators.rb:157:in `invoke'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands/generate.rb:13:in `<top (required)>'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:50:in `generate'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /home/kartik/.rvm/gems/ruby-2.2.4@mmw/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

  1. Though it completes in Installation, I still find it weird, can we do something about this issue ?
  2. I am ready to debug this and fix.
  3. Shall I work on this error ?
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