WebFaction
Community site: login faq

hi

wondering if any Webfaction community members have used the Redmine fork Chiliproject ?

https://www.chiliproject.org/

it seems to have some nice new features, certainly a polished UI etc

I am new to Ruby and so am fishing for help on install

asked 14 Jan '12, 00:08

Nicholas Rob...
112
accept rate: 0%

Possible to install a newer version of chili project?

(06 Aug '13, 15:57) calonyr11

Yes, instead of using wget to get the files just do a git clone of the repo:

git clone -b stable git://github.com/chiliproject/chiliproject.git
rm hello_world/* -rf
mv chiliproject/* hello_world/
rm -rf chiliproject
(06 Aug '13, 16:32) timg ♦♦

Thanks! Now I seem to keep getting hung up on an error after entering:

bundle exec rake generate_session_store

it says:

rake aborted! cannot load such file -- iconv

any thoughts?

(06 Aug '13, 23:18) calonyr11

Please open a ticket at our support site, and we'll help you find the cause of the issue.

(07 Aug '13, 07:06) timg ♦♦

After some research, Chiliproject does not yet have support Ruby newer than 1.9.3. I made the RoR application using Rails 3.2.13 and Ruby 1.9.3, made sure to use mysql2 adapter and now everything worked great.

(08 Aug '13, 15:41) calonyr11

Hi,

You can set it up by creating a new rails app from the panel(let's name it "rails") and using the following commands:

cd webapps/rails/
export GEM_HOME=$PWD/gems
export PATH=/usr/pgsql-9.1/bin:$PWD/bin:$PATH
wget https://www.chiliproject.org/attachments/download/225/chiliproject-2.6.0.tar.gz
tar -xvzf chiliproject-2.6.0.tar.gz 
rm hello_world/* -rf
mv chiliproject-2.6.0/* hello_world/
cd hello_world/
bundle install
../bin/restart
mv config/database.yml.example config/database.yml
vi config/database.yml #edit the settings under production after creating a new database from the panel
bundle exec rake generate_session_store
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data
../bin/restart

Please note these commands are for CentOS 6 servers, on Centos 5 see: http://docs.webfaction.com/software/rails.html#installing-gems (the section about postgres)

permanent link

answered 14 Jan '12, 02:00

neeravk
1.5k3412
accept rate: 41%

edited 15 Jan '12, 03:37

thanks for the feedback

2 questions

  1. can you unpack the last vi line for me ?

vi config/environment.rb # add config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase that you need to replace" }; after Rails::Initializer.run do |config| ../bin/restart

  1. do i need to create a website? domain ? pointing to this webapp?
permanent link

answered 14 Jan '12, 02:39

Nicholas Rob...
112
accept rate: 0%

  1. vi config/environment.rb

You have to add the line:

config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase that you need to replace" };

after the line:

Rails::Initializer.run do |config|
  1. Yes, you do need to create a website that contains a domain and this app at the URL path /.
(14 Jan '12, 02:44) neeravk

ok, am getting further, but now getting this error message on webpage and in log/production.log below

web page for details about the error.

for details about the error.> Internal error

An error occurred on the page you were trying to access. If you continue to experience problems please contact your ChiliProject administrator for assistance.

If you are the ChiliProject administrator, check your log files for details about the error.for details about the error.

log/production.log says

Processing WelcomeController#index (for 70.36.157.104 at 2012-01-15 10:22:01) [GET] Parameters: {"action"=>"index", "controller"=>"welcome"}

ActiveRecord::StatementInvalid (Mysql::Error: Table 'transitionx_chl.settings' doesn't exist: SHOW FIELDS FROM settings):
app/models/setting.rb:144:in check_cache' app/controllers/application_controller.rb:79:inuser_setup' passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request'
passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.9) lib/phusion_passenger/rack/application_spawner.rb:205:instart_request_handler' passenger (3.0.9) lib/phusion_passenger/rack/application_spawner.rb:78:in spawn_application' passenger (3.0.9) lib/phusion_passenger/utils.rb:479:insafe_fork' passenger (3.0.9) lib/phusion_passenger/rack/application_spawner.rb:63:in spawn_application' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:264:inspawn_rack_application' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:137:in spawn_application' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' passenger (3.0.9) helper-scripts/passenger-spawn-server:99

Rendering /home/transitionx/webapps/chillitcp/hello_world/public/500.html (500 Internal Server Error)

permanent link

answered 15 Jan '12, 03:25

Nicholas Rob...
112
accept rate: 0%

Hi,

I am sorry it seems you need to two more commands to inster thed ata as seen here: https://www.chiliproject.org/projects/chiliproject/wiki/Installation#Installation

cd ~/webapps/rails/
export PATH=$PWD/bin:$PATH
cd hello_world
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data
(15 Jan '12, 03:35) neeravk

ok, trying that, get this error

 hello_world]$ RAILS_ENV=production bundle exec rake db:migrate
/usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [rubygems-update-1.8.12] (Gem::LoadError)
    from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
    from /usr/local/ruby1.8.7ee/lib/ruby/site_ruby/1.8/rubygems.rb:1203:in `gem'
    from /home/myaccount/webapps/rails/bin/bundle:1895

looks like bundle needs to be installed and I dont permissions to do that

thanks in advance

permanent link

answered 15 Jan '12, 10:53

Nicholas Rob...
112
accept rate: 0%

Can you tell us the output of "which bundle" and can you try "gem install bundler" after exporting the correct GEM_HOME and PATH ?

(15 Jan '12, 18:59) neeravk

I don't understand "can you tell us the output of "which bundle"" ? can you please re-state that in other words?

for the second part, I think this is what you want

hello_world]$ gem install bundler
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/local/ruby1.8.7ee/lib/ruby/gems/1.8 directory.
permanent link

answered 15 Jan '12, 19:58

Nicholas Rob...
112
accept rate: 0%

"which bundle" is a command which will tell which bundle executable you are actually executing.

$ export PATH=$PWD/bin:$PATH
$ export GEM_HOME=$PWD/gems
$ which gem
~/webapps/rails/bin/gem
$ which bundle
~/webapps/rails/bin/bundle
$ gem install bundler
Fetching: bundler-1.0.21.gem (100%)
Successfully installed bundler-1.0.21
1 gem installed
Installing ri documentation for bundler-1.0.21...
Installing RDoc documentation for bundler-1.0.21...

Are you sure you are setting GEM_HOME and PATH as shown here: http://docs.webfaction.com/software/rails.html#installing-gems

(15 Jan '12, 20:09) neeravk

thanks to neeravk for walking me a lot of the basics of Ruby - total newbie me

got Chiliproject 3 Beta 1 working using Postgres as DB... kept getting a access denied problem with mysql db set-up option

anyway, configuring Chiliproject 3 now

imho this is the major iteration that validates the entire Redmine FORK

cheers

permanent link

answered 16 Jan '12, 12:05

Nicholas Rob...
112
accept rate: 0%

edited 17 Jan '12, 01:12

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×46
×1

question asked: 14 Jan '12, 00:08

question was seen: 5,229 times

last updated: 08 Aug '13, 15:41

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM