ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Error after update from 3.3.0 to 3.8.0

Added by Simon Ziehme at 2013-07-02 09:29 am

I made the update step by step and everything was fine.
After reboot the following problem is showing on the browser:

Anything ideas?

Thx Simon

Ruby on Rails application could not be started

A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
cannot load such file -- /var/www/chiliproject/config/environment
Exception class:
LoadError
Application root:
/var/www/chiliproject
Backtrace:
  1. File Line Location
    0 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb 222 in `require'
    1 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb 222 in `preload_application'
    2 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb 181 in `block in initialize_server'
    3 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb 572 in `report_app_init_status'
    4 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb 174 in `initialize_server'
    5 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 204 in `start_synchronously'
    6 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 180 in `start'
    7 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/classic_rails/application_spawner.rb 149 in `start'
    8 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 219 in `block (2 levels) in spawn_rails_application'
    9 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
    10 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 214 in `block in spawn_rails_application'
    11 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 82 in `block in synchronize'
    12 prelude> 10:in `synchronize'
    13 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
    14 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application'
    15 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 132 in `spawn_application'
    16 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
    17 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
    18 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
    19 /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/helper-scripts/passenger-spawn-server 99 in `
    '

Replies (6)

RE: Error after update from 3.3.0 to 3.3.8 - Added by Felix Schäfer at 2013-07-02 09:35 am

Can you check that the application as such is running? Go to you ChiliProject directory and run bundle exec script/server.

In all honesty though, that update didn't involve anything new, so I guess it's rather your stack around Chili that has been updated some time ago, but that you only see the consequence now that you have restarted.

RE: Error after update from 3.3.0 to 3.3.8 - Added by Simon Ziehme at 2013-07-02 09:41 am

Thank. I dont know about toRoR or chili, i have only the update task :-)

root@bankomat:/var/www/chiliproject# bundle exec script/server
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-2.3.18/lib/active_support/inflector.rb:3:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
=> Booting WEBrick
=> Rails 2.3.18 application starting on http://0.0.0.0:3000
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rails-2.3.18/lib/initializer.rb:298:in `add_gem_load_paths'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rails-2.3.18/lib/initializer.rb:132:in `process'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
from /var/www/chiliproject/config/environment.rb:42:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rails-2.3.18/lib/commands/server.rb:84:in `<top (required)>'
from script/server:4:in `require'
from script/server:4:in `<main>'

RE: Error after update from 3.3.0 to 3.8.0 - Added by Chris Dähn at 2013-07-02 10:07 am

Hi,

just some more questions:

Did you upgrade more than Chili? Especially: Did your ruby version change?

And have you executed "bundle install" without any errors? Can you try this again?

For me as Ruby noob it seems your gems are not installed / updated correctly.

ciao,
Chris

PS: I corrected the version number to 3.8.0.

RE: Error after update from 3.3.0 to 3.8.0 - Added by Simon Ziehme at 2013-07-02 10:16 am

Thanks for your correction.

bundle install gives me:

Your bundle is complete!
Gems in the groups test, development, sqlite, postgres and mysql were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

RE: Error after update from 3.3.0 to 3.8.0 - Added by Felix Schäfer at 2013-07-02 11:33 am

I just googled the error you get and it might be related to a "too new" ruby gems. Could you please post the output of gem environment on your system?

RE: Error after update from 3.3.0 to 3.8.0 - Added by Simon Ziehme at 2013-07-02 11:50 am

Thank you, but i solved the problem.

The file /config/environment.rb was root but must be www-data.

Best regards

Simon

(1-6/6)