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 problems on Centos 6.5

Added by Bryan Headrick at 2014-06-14 08:29 pm

The only installation instuctions I see are for centos 5, but I figured that was probably close enough.

I went through the install process without much trouble, but once it's complete

I got an error in the final startup of the ruby webserver : 
bundle exec script/server -e production

=> 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 /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21.
/usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 8, col 2: ` encoding: utf8' (ArgumentError)
from /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:926:in `database_configuration'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:437:in `initialize_database'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:141:in `process'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113:in `send'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
from /home/bryanheadrick.com/domains/project.bryanheadrick.com/public_html/config/environment.rb:42
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
from /usr/local/rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/commands/server.rb:84
from script/server:4:in `require'
from script/server:4


Replies (4)

RE: Install problems on Centos 6.5 - Added by Felix Schäfer at 2014-06-14 08:46 pm

I suspect a problem with your config/database.yml, please check that the indentation is correct as yaml is indentation sensitive. If you're unsure, just post it here.

RE: Install problems on Centos 6.5 - Added by Bryan Headrick at 2014-06-18 05:06 am

production:
  adapter: mysql
  database: chiliproject
  host: localhost
  username: chiliproject
  password:KHEnRMmnbQG84wUb
  encoding: utf8

development:
  adapter: mysql
  database: chiliproject_development
  host: localhost
  username: chiliproject
  password: KHEnRMmnbQG84wUb
  encoding: utf8

I verified that I can login to mysql using the production username and password

RE: Install problems on Centos 6.5 - Added by Felix Schäfer at 2014-06-18 11:58 am

First and foremost, and I'm sorry I didn't mention it: you should never ever post passwords on the internet. I would suggest to immediately change this password, even if it's only used for software that is not accessible from the internet.

That being said, I now see the problem: there should be a space between password: and your actual password on line 7. The correct syntax in your database.yml file is invalid and trips up the parser.

RE: Install problems on Centos 6.5 - Added by Rudi Nesbitt at 2015-01-06 04:25 pm

Yeah I've been had by the "space" between the colon and the password. Took me days to find the problem.
_________________________________
Jura Giga 5

(1-4/4)