Skip to content

Error: `readlines': No such file or directory @ rb_sysopen - session_store.rb (Errno::ENOENT) #5

Description

@kartikjagdale

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions