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.

Installation Issue on Ubuntu 12.04.2

Added by Reinier Nissen at 2013-06-12 08:07 pm

Hello,

I have tried to install ChiliProject using the detailed installation guides on the site, but I'm running into a problem getting the application to start.

I followed the exact instructions on 12.04 v3 and 11.04 v2 with the exception that Nokogiri wanted a newer version of Ruby so I installed 1.9.3. I had no errors creating the directories, modifying the .conf files, raking the database, etc. When I actually try to launch the application via my browser, I get an HTTP 500 error and this shows up in the Apache logs :

[Wed Jun 12 10:50:59 2013] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 mod_ssl/2.2.22 OpenSSL/1.0.1 config$
  • Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
  1. mkdir -p /libout/ruby/ruby-1.9.3-x86_64-linux
  2. cd /libout/ruby/ruby-1.9.3-x86_64-linux
    • Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
  3. mkdir -p /libout/ruby/ruby-1.9.3-x86_64-linux
  4. cd /libout/ruby/ruby-1.9.3-x86_64-linux
    /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:67:in `join': can't convert nil into S$
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:67:in `extconf_rb'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:167:in `block (2 levels) $
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:166:in `chdir'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:166:in `block in compile'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:160:in `each'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:160:in `each_with_index'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:160:in `compile'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:138:in `compile_and_load'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:37:in `start'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/native_support.rb:205:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/passenger-4.0.5/lib/phusion_passenger/utils.rb:26:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/phusion_passenger/passenger-spawn-server:64:in `rescue in <main>'

Any clue to what I might be doing wrong or missing? The path to Ruby is correct. I have rolled back to a snapshot of the fresh OS and followed the same instructions and I have the exact same error.

Thank you!


Replies (9)

RE: Installation Issue on Ubuntu 12.04.2 - Added by Felix Schäfer at 2013-06-12 09:21 pm

Can you try to run your application via webrick? Just run script/server -e production in your ChiliProject directory. This will tell us if there's something amiss with Passenger or ChiliProject.

RE: Installation Issue on Ubuntu 12.04.2 - Added by Reinier Nissen at 2013-06-12 09:37 pm

Webrick works no problems. Here is the output :

root@Chiliproject:~# cd /var/www/chiliproject/chiliproject
root@Chiliproject:/var/www/chiliproject/chiliproject# script/server -e production
/var/lib/gems/1.9.1/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
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /var/lib/gems/1.9.1/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21.
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-06-12 12:36:12] INFO WEBrick 1.3.1
[2013-06-12 12:36:12] INFO ruby 1.9.3 (2013-05-15) [x86_64-linux]
[2013-06-12 12:36:12] INFO WEBrick::HTTPServer#start: pid=2127 port=3000

Processing WelcomeController#index (for 172.16.1.25 at 2013-06-12 12:36:17) [GET]
Parameters: {"controller"=>"welcome", "action"=>"index"}
Rendering template within layouts/base
Rendering welcome/index
Completed in 9217ms (View: 638, DB: 4534) | 200 OK [http://10.10.10.230/]

RE: Installation Issue on Ubuntu 12.04.2 - Added by Felix Schäfer at 2013-06-13 01:13 pm

That looks right, so your ChiliProject config is good. Have you tried googling for the error? It probably is something askew with Passenger, either Passenger itself or the config. Can you post your Passenger config? (so the path to the ruby your Passenger uses and so on)

RE: Installation Issue on Ubuntu 12.04.2 - Added by Reinier Nissen at 2013-06-14 12:31 am

I have pulled the following :

root@Chiliproject:/usr/bin# passenger-config --root
/var/lib/gems/1.9.1/gems/passenger-4.0.5
root@Chiliproject:/usr/bin# passenger-config --version
4.0.5

My passenger.conf file is:

<IfModule mod_passenger.c>
  PassengerRoot /usr
  PassengerRuby /usr/bin/ruby

  PassengerDefaultUser chiliproject
</IfModule>

I have gone through quite a bit of forums looking for hits on the errors I initially posted, but no luck in my situation.

RE: Installation Issue on Ubuntu 12.04.2 - Added by Felix Schäfer at 2013-07-02 05:53 pm

As far as I know the PassengerRoot option should point to the directory that passenger-config --root gives you.

RE: Installation Issue on Ubuntu 12.04.2 - Added by Chris May at 2013-08-06 11:09 pm

I fixed this issue by installing common

sudo apt-get install passenger-common1.9.1

Try that and hope it works for you.

Thanks

RE: Installation Issue on Ubuntu 12.04.2 - Added by Reinier Nissen at 2013-08-06 11:34 pm

I will give that a try today and reply with the results!

RE: Installation Issue on Ubuntu 12.04.2 - Added by Chris May at 2013-08-07 09:44 pm

Please also note I used the following to install Ruby. Note at the bottom of the page the passenger common install .

http://docs.brightbox.com/ruby/ubuntu/

Good Luck !!

RE: Installation Issue on Ubuntu 12.04.2 - Added by Reinier Nissen at 2013-08-09 10:13 pm

It's all working great now! Thanks for all the help!

(1-9/9)