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.
Fresh install crash
Added by Ph ML at 2013-01-10 03:12 pm
Dear all,
I made a fresh install of Chiliproject 3.5.0 with mysql 5.5.29.
But when I start WEBrick:
sudo bundle exec script/server -e production /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.15/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.15 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/lib/ruby/gems/1.9.1/gems/rails-2.3.15/lib/rails/gem_dependency.rb:21. => Call with -d to detach => Ctrl-C to shutdown server [2013-01-09 15:40:06] INFO WEBrick 1.3.1 [2013-01-09 15:40:06] INFO ruby 1.9.3 (2012-12-25) [x86_64-linux] [2013-01-09 15:40:06] INFO WEBrick::HTTPServer#start: pid=16185 port=3000 Processing WelcomeController#index (for 127.0.0.1 at 2013-01-09 15:40:09) [GET] Parameters: {"controller"=>"welcome", "action"=>"index"} SystemStackError (stack level too deep): Rendering rescues/layout (internal_server_error)
The http://localhost:3000/ page says:
SystemStackError in WelcomeController#index stack level too deep RAILS_ROOT: /var/lib/chiliproject Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.15/lib/active_record/transactions.rb:217 Request Parameters: None Show session dump --- ... Response Headers: {"Cache-Control"=>"no-cache", "Content-Type"=>""}
I also tried:
$ sudo RAILS_ENV=production thin start >> Using rails adapter /usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.15/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/lib/ruby/gems/1.9.1/gems/rails-2.3.15/lib/rails/gem_dependency.rb:21. /usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified) from /usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection' from /usr/lib/ruby/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:438:in `initialize_database' from /usr/lib/ruby/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:141:in `process' from /usr/lib/ruby/gems/1.9.1/gems/rails-2.3.15/lib/initializer.rb:113:in `run' […]
PS: for create user in mysql [[https://www.chiliproject.org/projects/chiliproject/wiki/Installation#Installation]] says:
create user 'chiliproject' identified by 'my_password';
while I had to do:
create user 'chiliproject'@'localhost' identified by 'my_password';
In order to make it work.
Replies (2)
RE: Fresh install crash - Added by Holger Just at 2013-01-10 05:14 pm
Looks like either your database.yml
is odd. Could you post that one (but make sure to alter any passwords)?
Also, in your thin example, it looks like ChiliProject starts in the development
environment instead of in production. It could be that sudo is messing with you here. Please try to start ChiliProject as a non-root user or at least create a full shell using sudo -i
. Generally, you should NEVER EVER run ChiliProject as root.
--Holger
RE: Fresh install crash - Added by Ph ML at 2013-01-10 05:59 pm
$ cat config/database.yml # MySQL (default setup). production: adapter: mysql2 database: chiliproject host: localhost username: chiliproject password: my_password encoding: utf8
Holger Just wrote:
Generally, you should NEVER EVER run ChiliProject as root.
Yeah, it’s obvious… so why did I do that? Can you tell me? :-P
EDIT:
when I start WEBrick with normal user and I go to http://localhost/3000
I get:
[2013-01-18 13:14:27] INFO WEBrick 1.3.1 [2013-01-18 13:14:27] INFO ruby 1.9.3 (2012-12-25) [x86_64-linux] [2013-01-18 13:14:27] INFO WEBrick::HTTPServer#start: pid=11624 port=3000 /usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.15/lib/active_record/validations.rb:479: [BUG] Segmentation fault ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux] -- Control frame information ----------------------------------------------- […] [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Abandon (core dumped)
(1-2/2)