Ticket

fix missing mods directory that breaks installation+status
fix missing mods directory that breaks installation+priority
fix missing mods directory that breaks installation+tag
fix missing mods directory that breaks installation+commit
 

fix missing mods directory that breaks installation+issues

Webrick / Passenger fail with

 

local/mods directory not found

 

If I create this directory ( /var/local/wagn/local/mods ) manually, wagn (running through passenger and Apache) fails with a Hitch! 500.

I understand it is indeed for local mods, not a path problem.

 

I used the default setup instructions, and cloned wagn from GitHub yesterday.

Ruby version is 1.9.3

 

Wagn version is 1.12.5

 

Running on OpenVZ'ed Debian 7.0

 

 

fix missing mods directory that breaks installation+example

env STATIC_ASSETS=true bundle exec rails server

 

=> Booting WEBrick

=> Rails 3.2.14 application starting in production on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

Exiting

/var/local/wagn/lib/wagn/loader.rb:11:in `open': No such file or directory - /var/local/wagn/local/mods (Errno::ENOENT)

        from /var/local/wagn/lib/wagn/loader.rb:11:in `entries'

        from /var/local/wagn/lib/wagn/loader.rb:11:in `block in <module:Loader>'

        from /var/local/wagn/lib/wagn/loader.rb:10:in `map'

        from /var/local/wagn/lib/wagn/loader.rb:10:in `<module:Loader>'

        from /var/local/wagn/lib/wagn/loader.rb:7:in `<module:Wagn>'

        from /var/local/wagn/lib/wagn/loader.rb:3:in `<top (required)>'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'

        from /var/local/wagn/app/models/card.rb:11:in `<class:Card>'

        from /var/local/wagn/app/models/card.rb:3:in `<top (required)>'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:230:in `block in constantize'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in `each'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:229:in `constantize'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/inflector/methods.rb:260:in `safe_constantize'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'

        from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'

        from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'

        from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'

        from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'

        from /var/lib/gems/1.9.1/gems/actionpack-3.2.14/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'

        from /var/local/wagn/app/controllers/card_controller.rb:2:in `<top (required)>'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:502:in `load_missing_constant'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:192:in `block in const_missing'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `each'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:190:in `const_missing'

        from /var/local/wagn/app/controllers/admin_controller.rb:2:in `<top (required)>'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:359:in `require_or_load'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:313:in `depend_on'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:225:in `require_dependency'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:443:in `each'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:443:in `block in eager_load!'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:441:in `each'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:441:in `eager_load!'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `instance_exec'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:in `run'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:55:in `block in run_initializers'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `each'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:in `run_initializers'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/application.rb:136:in `initialize!'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing'

        from /var/local/wagn/config/environment.rb:6:in `<top (required)>'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'

        from /var/lib/gems/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'

        from /var/local/wagn/config.ru:3:in `block in <main>'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'

        from /var/local/wagn/config.ru:in `new'

        from /var/local/wagn/config.ru:in `<main>'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands/server.rb:46:in `app'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'

        from /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands/server.rb:70:in `start'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:55:in `block in <top (required)>'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'

        from /var/lib/gems/1.9.1/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'

        from script/rails:6:in `require'

        from script/rails:6:in `<main>'

 

Succeeded in starting Wagn like this:

 

  • created directory local/mods manually
  • env STATIC_ASSETS=true bundle exec rails server

The passenger error is related to wrong permissions on the files, and is not something which the core Wagn team needs to take action upon.

 

I have described solutions for some problems I've encountered in my blogpost here:

http://www.two-drifters.com/?p=21

 

(including advice on the permissions to set, and how to set up memcached).

 

My wagn insallation works for me right now, please consider this problem solved - maybe adding the directory local/mods to the GitHUB Repository would be a good idea, though.

 

Thank you for releasing such a cool piece of software.

 

- Max


Leaving this open for the core team to acknowledge my suggestion to add the directory local/mods.

--pi3g.....2013-12-25 20:12:24 +0000

Maybe give the ticket a better name related to the suggestions?

 

Something should create the local/mods directory automatically. Probably should be the rake install task (I didn't see if you had used that, it may do that already, should do it if it doesn't).

 

There are some existing Wagn cards on this site with support information for various platforms. We can integrate this information there as needed.

--Gerry Gleason.....2013-12-26 15:16:03 +0000

Hi Max / p13g. Thanks for submitting this and documenting the problem so well. I apologize for the slow response; I've been away from work for the holidays.

 

I will make sure this issue gets fixed in the next release. (It should probably not require the directory at all.)

 

Gerry, you may have figured this out, but the prompt for "name" is very confusing in the context of creating a support ticket. Many folks have done just what Max did and used their own name their rather than the "name" of the issue. We need to make this configurable; I see it causing problems all the time.

 

--Ethan McCutchen.....2013-12-31 04:14:45 +0000

Right, I hadn't thought of that. Perhaps just "Cardname"?

--Gerry Gleason.....2014-01-03 03:15:06 +0000

Yes, that's exactly what confused me :-)

Also there's no possibility to comment more than once without having an account apparently (?), so I set up the account pi3g, because "Max" was already taken by my support ticket ....

--pi3g.....2014-01-07 15:35:19 +0000

 


I'll have to look into this only-one-comment issue. Definitely not supposed to be that way.

 

If you want, now that this support ticket has been renamed, you can go to edit > name on pi3g and change your name to "Max".

--Ethan McCutchen.....2014-01-07 17:17:23 +0000

"Cardname" is worse, imo, Gerry. Most casual contributors to wagn-based sites will have no idea what a card is and shouldn't have to learn. The word "card" should only ever appear in Wagneer space.

 

I think the key is to make it configurable, because context matters. Sometimes the name is a title, sometimes it's a headline, sometimes it's a one-liner...

--Ethan McCutchen.....2014-01-07 17:20:14 +0000

fix will be out in 1.12.6

--Ethan McCutchen.....2014-01-10 19:04:01 +0000