EzDevInfo.com

chiliproject

ChiliProject is a web based project management system built on Ruby on Rails ChiliProject - Homepage - ChiliProject chiliproject

Deploying Chiliproject to Dreamhost

Having some issues deploying this. I've tried to deploy it twice now. Here's what I've done so far....

Installed the gems and versions required on the install page:

gem install -v=2.3.5 rails
gem install -v=1.0.1 rack
gem install -v=0.8.7 rake
gem install -v=0.4.2 i18n

Downloaded the package:

git clone git://github.com/chiliproject/chiliproject.git
cd chiliproject
git checkout stable

Had to find and set bundle since it wasn't in my path:

BUNDLE="/usr/lib/ruby/gems/1.8/bin/bundle"

Put my database info into database.yml:

And then started the bundle stuff:

$BUNDLE install --without=postgres rmagick
$BUNDLE exec rake generate_session_store

The last command got the error:

rake aborted!
can't activate rails (= 2.3.5, runtime), already activated rails-2.3.12. Make sure all dependencies are added to Gemfile.

So I changed 2.3.12 to 2.3.5 in the Gemfile and carried on:

RAIL_ENV=production $BUNDLE exec rake db:migrate

Then I got an error on this command too:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined method `autoload_paths' for #<Rails::Configuration:0x68a68dbb82c0>
/home/USERNAME/DOMAIN/public/config/environment.rb:44

I tried commenting out line 44 there, but then it threw another error undefined methodconvert_to_without_fallback_on_iso_8859_1' for class Class' so I didn't want to play around with it further. Note this only happened the second time I tried to deploy it. The first time I tried db:migrate succeeded (and I checked there was not data already in the DB).

*So for the second try I am stuck here :-( *

But this is what happened the first time after db:migrate succeded....

RAILS_ENV=production $BUNDLE exec rake redmine:load_default_data

With the last command however it failed saying permission denied for mysql 'user'@'173.236.128.0/255.255.128.0' and I was like WTF is it trying to connect to a network as if it were a host?

So I moved on, copied my configuration file and environment files in. Changed/added these lines:

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
 ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.5'# unless defined? RAILS_GEM_VERSION

if ENV['RAILS_ENV'] == 'production'  # don't bother on dev
  ENV['GEM_PATH'] = '/home/USERNAME/.gems' + ':/usr/lib/ruby/gems/1.8'
end

Then made this stuff writable and restarted Passenger:

chmod -R 777 files log tmp public/plugin_assets/
touch tmp/restart.txt

Sorry for the wall of text, is anybody able to shine some light on something I've done wrong?

Thanks in advance.

EDIT: So this is all wrong, here's how I got it working

rm ~/.gem*
gem install bundler

PATH=$PATH:/usr/lib/ruby/gems/1.8/bin

cd ~
git clone git://github.com/chiliproject/chiliproject.git
cd chiliproject
git checkout stable

cp * ../example.com/ -R
cd ../example.com

# Make sure database is working

bundle install --without postgres rmagick test
bundle exec rake generate_session_store

RAILS_ENV=production bundle exec rake db:migrate

# No output is no good, check database.yml

RAILS_ENV=production bundle exec rake redmine:load_default_data

Or see this: https://gist.github.com/1127306


Source: (StackOverflow)

Looking for a user-centric plugin for Redmine/Chiliproject [closed]

We need a plugin where you can view all the submitted tickets but tickets by the same author are folded together

And when viewing a ticket it'll show that persons prior requests.

Is there a plugin that does this?


Source: (StackOverflow)

Advertisements

Redmine / ChiliProject - Restrict login by ip address

I would like to restrict access to certain users of a redmine/chiliproject install as long as they are coming from a certain ip address or a certain range of ip addresses.

Is there a plugin for this or is there an easy (ie quick simple) way of doing this?

Thanks.


Source: (StackOverflow)

What are the advantages of using chiliproject over redmine?

This question already exists, but it is over one year old now and a lot has probably happened if the documentation is a good judge. There is no documented path to migrate from current redmine (2.1) to chiliproject for example.

Chiliproject is a fork of redmine, but I am unable to decide wherever I should migrate or not. There is no clear path as to how I should do the migrations and how much functionality I might loose.

Is there a way to compare the differences between the two projects? Is it worth to spend the time investigating the migration path?

If you have migrated what is your experience?


Source: (StackOverflow)

ChiliProject on Windows 7

When I start server with -d prefix, it make error:

C:\ruby\chili>bundle exec ruby script/server -e production -p 3005 -d
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3005
C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/process/daemon.rb:4:in `fork': fork() function is unimplemented on this machine (NotImplementedError)
    from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/process/daemon.rb:4:in `daemon'
    from C:/ruby/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:62
    from script/server:4:in `require'
    from script/server:4

Is possible run it as service?


Source: (StackOverflow)

installing redmine_backlog with chiliproject

I installed chiliproject 3.3.0. After some problems it worked fine...

But now i try to add the BackLog Plugin and i am stucking there...

I did the installation instruction from here: http://www.redminebacklogs.net/en/installation.html When i call that command "bundle exec rake redmine:backlogs:install" i always get that error:

root@debian2:~/redmine_backlogs# bundle exec rake redmine:backlogs:install
/opt/ruby-enterprise-1.8.7-2012.02/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/rubygems_integration.rb:147:in `gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
        from /opt/ruby-enterprise-1.8.7-2012.02/bin/rake:18

I really don't know what to try anymore :S Please tell me which information do you need to help me.


Source: (StackOverflow)

Symbolic link not allowed apache 2.4 chiliproject

Few hours ago I upgraded ubuntu 13.10 to 14.04 LTS. I have 1 problem with chiliproject application wich running on Rails.

I got error 403 when I'm trying to access my chiliproject application. In apache2 error log i got:

Symbolic link not allowed or link target not accesibble /var/www/chili

In my apache2 conf i got:

<Directory /var/www/>
        Options  FollowSymLinks MultiViews SymLinksIfOwnerMatch  
        AllowOverride All
        Require all granted
#       Order allow,deny
#       allow from all
    </Directory>    


    RailsBaseURI /chili

    <Directory /var/www/chili>
            AllowOverride all
            Options -MultiViews
        Require all granted
#           Order deny,allow
#           Allow from all
     </Directory>

I don't know why it's not running. Passenger is running and I'm stuck. Can somebody please help me ?

I tried to check users ownership in catalogs:

 ls -ld /var/www/chili 
lrwxrwxrwx 1 root root 41 gru 31 2013 /var/www/chili -> /var/www/chiliproject/chiliproject/public

And Target

 drwxrwxrwx 4 chiliproject root 4096 gru 31 2013 chiliproject/ 

Source: (StackOverflow)

Installing RubyGems on a CentOs 5.5

i'm fairly new to Linux and i'm trying to install Chiliproject on a CentOs 5.5.

When i try to install rubygems to install Rails, here is what i get :

[root@ns381286 ~]# sudo rbenv install 1.9.3-p125

Downloading htt P://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz...

Installing yaml-0.1.4...

Installed yaml-0.1.4 to /root/.rbenv/versions/1.9.3-p125

Downloading htt P://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz...

Installing ruby-1.9.3-p125...

Installed ruby-1.9.3-p125 to /root/.rbenv/versions/1.9.3-p125

[root@ns ~]# sudo rbenv rehash
[root@ns ~]# cd rubygems/

[root@ns rubygems]# sudo ruby setup.rb

/root/.rbenv/shims/ruby: line 4: exec: rbenv: not found

Does anyone know what the error might be ? I tried to reinstall but it didnt change anything.

Here is the tutorial i used : https://github.com/sstephenson/rbenv

Thanks in advance for your answers.


Source: (StackOverflow)

Error while installing Chiliprojet+redmine_git_hosting

I tried to install redmine_git_hosting Plugin and followed the instruction of Eric Paul Bishop.

Everything worked fine for me until step (7)

rake db:migrate_plugins RAILS_ENV=production threw an error:

rake aborted!
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:82:in `gem': You cannot specify the same gem twice with different version requirements. You specified: inifile (~> 0.4.1) and inifile (>= 0)
/var/www/chiliproject/Gemfile:110:in `eval_gemfile'
(eval):21:in `eval_gemfile'
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:153:in `group'
(eval):19:in `eval_gemfile'
/var/www/chiliproject/Gemfile:108:in `glob'
/var/www/chiliproject/Gemfile:108:in `eval_gemfile'
/var/www/chiliproject/Gemfile:107:in `each'
/var/www/chiliproject/Gemfile:107:in `eval_gemfile'
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:7:in `evaluate'
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler/definition.rb:18:in `build'
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler.rb:144:in `definition'
/var/lib/gems/1.8/gems/bundler-1.2.0/lib/bundler.rb:112:in `setup'
/var/www/chiliproject/config/../config/preinitializer.rb:30
/var/www/chiliproject/config/boot.rb:42:in `load'
/var/www/chiliproject/config/boot.rb:42:in `preinitialize'
/var/www/chiliproject/config/boot.rb:24:in `boot!'
/var/www/chiliproject/config/boot.rb:137
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/chiliproject/Rakefile:4
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/opt/ruby-enterprise-1.8.7-2012.02/bin/rake:19:in `load'
/opt/ruby-enterprise-1.8.7-2012.02/bin/rake:19
</code>

So I opened the file chiliproject/vendor/plugins/redmine_git_hosting/Gemfile and changed gem "inifile", "~>0.4.1" to gem "inifile", ">=0" As you can think that gave me errors too...

rake aborted!
Bundler couldn't find some gems. Did you run `bundle install`?
/var/www/chiliproject/config/../config/preinitializer.rb:32
/var/www/chiliproject/config/boot.rb:42:in `load'
/var/www/chiliproject/config/boot.rb:42:in `preinitialize'
/var/www/chiliproject/config/boot.rb:24:in `boot!'
/var/www/chiliproject/config/boot.rb:137
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/chiliproject/Rakefile:4
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/opt/ruby-enterprise-1.8.7-2012.02/bin/rake:19:in `load'
/opt/ruby-enterprise-1.8.7-2012.02/bin/rake:19
  • Chiliproject: 3.1.0
  • Backlogs: v0.9.26
  • redmine_git_hosting: v0.4.2

So what can I do?


Source: (StackOverflow)

Change path chiliproject

I want to use a subdirectory for a chiliproject instance. Using apache passenger, I was thinking of using rewrites + alias, but then it gives me a 404. Adding a RailsBaseURI i get connection reset.

Is it routes.rb I should adapt or am I looking at the wrong place? It is working right now on https://mydomain.com but I'd like to have it on https://mydomain.com/tracker


Source: (StackOverflow)

SonarQube and CHiliProject integration

I want to integrate CHiliProject and Sonar. Chili is based on Redmine. I've installed redmine plugin in sonar and configured URL API key and project key. CHili has activated REST API. When i set project key I get notification falied. When I pass wrong project key I get answer that project "There is no project to the given project key."


Source: (StackOverflow)

Error while trying to use warble on ChiliProject for JRuby/Jetty deployment

I'm trying to use warbler on ChiliProject (a Redmine fork, Rails 2.3 app) to deploy it in a Java Jetty web server. But when I run warble at the projects root folder, it fails with the given error message:

$ warble  --trace
warble aborted!
undefined method `gems' for #<Rails::VendorGemSourceIndex:0x2e9267fe>
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:260:in `all_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:172:in `installed_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:162:in `fetch_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:161:in `fetch_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/source.rb:70:in `specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:159:in `index'
org/jruby/RubyArray.java:1603:in `each'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:158:in `index'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:157:in `index'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:151:in `resolve'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:90:in `specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:135:in `specs_for'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/bundler-1.0.15/lib/bundler/definition.rb:124:in `requested_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:102:in `bundler_specs'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:38:in `add_bundler_gems'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits/bundler.rb:29:in `after_configure'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits.rb:32:in `after_configure'
org/jruby/RubyArray.java:1603:in `each'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/traits.rb:32:in `after_configure'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/config.rb:172:in `initialize'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/task.rb:48:in `initialize'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/application.rb:27:in `load_rakefile'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:61:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/lib/warbler/application.rb:70:in `run'
/Users/razenha/.rvm/gems/jruby-1.6.3/gems/warbler-1.3.2/bin/warble:11:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
/Users/razenha/.rvm/gems/jruby-1.6.3/bin/warble:19:in `(root)'

I'm using JRuby 1.6.3, JDK 1.6, warbler 1.3.2 and ChiliProject 2.2.0.


Source: (StackOverflow)

Could not find gem 'rubytree (~> 0.5.2) ruby' while installing ChiliProject on Debian

I am trying to install chiliproject on a server, following the -well done- documentation I am hitting this error

Could not find gem 'rubytree (~> 0.5.2) ruby' in any of the gem sources listed in your Gemfile.

I did a gem install rubytree

I get this message

========================================================================

 Thank you for installing rubytree.

              WARNING: SIGNIFICANT API CHANGE in 0.8.0 !
              ------------------------------------------

 Please note that as of 0.8.0 the CamelCase method names are DEPRECATED.

 The new method names follow the ruby_convention (separated by '_').

 The old CamelCase methods still work (a warning will be displayed),
 but may go away in the future.

 Details of the API changes are documented in the API-CHANGES file.

========================================================================
Successfully installed rubytree-0.8.1
1 gem installed
Installing ri documentation for rubytree-0.8.1...
file 'COPYING,API-CHANGES' not found
Installing RDoc documentation for rubytree-0.8.1...
file 'COPYING,API-CHANGES' not found

That is saying the installation was succesful. So why do I get the error ? If the error is from the API change how can I request version 0.5.2 of the rubytree gem ?

When I do a gem list --local | grep 'rubytree' I have this output rubytree (0.8.1)

So why is the system saying could not find gem 'rubytree' ?

thank you for any help,


Source: (StackOverflow)

Rails and SQLITE3 problem

I am trying to install "ChiliProject" on my Windows XP SP3. Everything was fine until I tried to process the db:migrate.

C:\RubyApps\chiliproject>bundle exec rake db:migrate

Then I get the error:

rake aborted! no such file to load -- sqlite3

I have the sqlite3 gem installed:

sqlite3 (1.3.4 x86-mingw32 x86-mswin32-60)

The three files: sqlite3.exe, sqlite3.dll, sqlite3.def from sqlite.org are put in the "C:\Ruby192\bin" directory (which is my default ruby dir).

The database configuration is (database.yml):

production:
  adapter: sqlite3
  database: db/production.db

What am I doing wrong?


Source: (StackOverflow)

Can the "post-receive" hook in gitlab-shell still be used for a custom hook?

According to the content of the gitlab-shell post-receive hook, it's deprecated.

#!/usr/bin/env ruby

# This file was placed here by GitLab.
# IT IS DEPRECATED NOW.
# All GitLab logic handled by update hook

But only for Gitlab specific logic or generally? Imho I should still be able to use it for e.g. my chiliproject post-receive hook that updates my repositories. Unfortunately I couldn't find anything specific in this regard, mostly due to the gitolite <> gitlab-shell transition in gitlab v5. I hope someone can shed some light on this…

[edit]

The post-receive hook was removed from gitlab-shell for v1.7.1. So the correct way is to either create a web-hook, modify carefully the update hook or watch the development of gitlab-shell more closely until custom hook support is implemented. ;-)


Source: (StackOverflow)