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.

install on Ubuntu 11.10

Added by Tamas Papp at 2011-11-18 12:15 am

hi All,

I installed it with RVM as written in https://www.chiliproject.org/projects/chiliproject/wiki/Installation_on_Ubuntu_10_10 .

After going to the page at the first time I see it not to work.

In the apache log:

[Fri Nov 18 00:00:22 2011] [notice] Apache/2.2.20 (Ubuntu) Phusion_Passenger/3.0.9 configured -- resuming normal operations
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/platform_info/operating_system.rb:33: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/platform_info/operating_system.rb:33: Use RbConfig instead of obsolete and deprecated Config.
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/inflector.rb:3:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21.
fatal: Not a git repository (or any of the parent directories): .git
[ pid=15764 thr=20054260 file=utils.rb:176 time=2011-11-18 00:00:39.870 ]: *** Exception LoadError in PhusionPassenger::ClassicRails::ApplicationSpawner (cannot load such file -- activities_helper) (process 15764, thread #<Thread:0x000000026401e8>):
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load'
from /data/www/chili/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:133:in `require_or_load_with_engine_additions'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:250:in `depend_on'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:162:in `require_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/actionpack-2.3.14/lib/action_controller/helpers.rb:197:in `default_helper_module!'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/actionpack-2.3.14/lib/action_controller/helpers.rb:212:in `inherited_with_helper'
from /data/www/chili/app/controllers/activities_controller.rb:15:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load'
from /data/www/chili/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:125:in `block in require_or_load_with_engine_additions'
from /data/www/chili/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:102:in `each'
from /data/www/chili/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:102:in `require_or_load_with_engine_additions'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:250:in `depend_on'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:162:in `require_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:414:in `block (2 levels) in load_application_classes'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:413:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:413:in `block in load_application_classes'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:411:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:411:in `load_application_classes'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:197:in `process'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
from /data/www/chili/config/environment.rb:39:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:222:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:222:in `preload_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:181:in `block in initialize_server'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:572:in `report_app_init_status'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:174:in `initialize_server'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:180:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
from <internal:prelude>:10:in `synchronize'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
from /usr/local/rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.9//helper-scripts/passenger-spawn-server:99:in `<main>'

I don't understand what do I miss?

database.yaml
-------------
production:
adapter: mysql2
database: d_chili
host: localhost
username: u_chili
password: pw
encoding: utf8

configuration.yaml:

attachments_storage_path: /data/chili-files
(and email settings...)

environments/production.rb

  1. it was missing this
    config.action_controller.session = {
    :key => "_production_session",
    :secret => "some secret phrase for this ize session"
    }

Can somebody help me on this?

Thank you,
tamas

ps.: Is there a support mailing list available?


Replies (6)

RE: install on Ubuntu 11.10 - Added by Felix Schäfer at 2011-11-18 08:24 am

Hi Tamas,

Regarding a support ML: no, the support is provided here through these forums. If there's any compelling reason for one, please tell us about it and we can see if those are sufficient to set one up, but if you only want to be notified about support requests, just "watch" the whole board (on the board view showing the discussion index).

Regarding your error, the relevant part seems to be "(cannot load such file -- activities_helper)", can you see if you have the app/helpers/activities_helper.rb (or similar) file? If not, your upgrade/installation is broken.

RE: install on Ubuntu 11.10 - Added by Tamas Papp at 2011-11-18 02:50 pm

On 11/18/2011 09:24 AM, wrote:

//

Hi Tamas,

Regarding a support ML: no, the support is provided here through these
forums. If there's any compelling reason for one, please tell us about
it and we can see if those are sufficient to set one up, but if you
only want to be notified about support requests, just "watch" the
whole board (on the board view showing the discussion index).

Good point:)

Regarding your error, the relevant part seems to be "(cannot load such
file -- activities_helper)", can you see if you have the |app/helpers/activities_helper.rb| (or similar) file? If not, your
upgrade/installation is broken.

Where can I find a full installation tutorial?

On
https://www.chiliproject.org/projects/chiliproject/wiki/Installation_on_Ubuntu_10_10
I don't see any relevant info and I don't find any file with this name.

Thanks,
tamas

RE: install on Ubuntu 11.10 - Added by Tamas Papp at 2011-11-20 04:30 pm

On 11/18/2011 03:50 PM, wrote:

On
https://www.chiliproject.org/projects/chiliproject/wiki/Installation_on_Ubuntu_10_10

I don't see any relevant info and I don't find any file with this name.

I downgraded ruby to 1.9.3 and now it's OK.

tamas

RE: install on Ubuntu 11.10 - Added by Felix Schäfer at 2011-11-20 08:59 pm

I find that somewhat surprising, but thanks for reporting your success :-)

RE: install on Ubuntu 11.10 - Added by Mak Babu at 2011-11-29 03:15 pm

I too encountered the same error, under production environment with default configuration. The only common thing with this thread is Ruby 1.9.3 version. Once i downgraded the ruby version to 1.8.7 everything went well. However it is important to note that development version ran without any issues. Hence the issue is either with ruby 1.9.3 or a combo of 1.9.3 + production configuration.

RE: install on Ubuntu 11.10 - Added by Gary Verhaegen at 2011-12-08 07:30 pm

Same error here, on Mac OS X Snow Leopard with ruby 1.9.3 from MacPorts. Looks like the common thread here is ruby 1.9.3. I observed the same behaviour as Mak Babu, namely that it worked in development environment but not in production environment. I took a few minutes to check the differences between the environments, and it turns out that it is the line

config.cache_classes = false

that makes it work in development. Changing that flag in config/environments/production.rb solves the problem in production.

(1-6/6)