Which Rack version for Redmine 2.2.3

Added by Kwaye Kant over 9 years ago

Hello,

After all search and tries, I always couldn't be able to install Redmine on my Ubuntu Server. I am following this tuto http://doc.ubuntu-fr.org/redmine

But somewhere I am asked to install Rack but I don't the version that goes with Redmine-2.2.3.

Any help please?

Replies (13)

RE: Which Rack version for Redmine 2.2.3 - Added by Jan Niggemann (redmine.org team member) over 9 years ago

The documentaiton you're using seems to be out of date since it doesn't mention using bundler.
Read this guide that should work on Ubuntu...

I'm using rack 1.4.5, but it was installed by bundler.

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

Thanks for your reply @Jan Niggermann.
I will try this one and let know.

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

Do I not need to download rails ruby according to the Redmine version I want to install ?

because in the given tutorialit is written
wget ftp://ftp.ruby-lang.org/pub/ruby/stable/ruby-1.9.3-p374.tar.gz
but in the redmine specification there is no ruby-1.9.3-p374 version

How to do?

RE: Which Rack version for Redmine 2.2.3 - Added by Jan Niggemann (redmine.org team member) over 9 years ago

ruby-1.9.3-p374 is a viable way, but you may use other versions of ruby, read RedmineInstall, there's a table describing the versions you may use. Or is it the p374 that confuses you? That's the patchlevel, p392 is the current one for ruby 1.9.3...

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

Hello,
I have followed the wiki you gave up. But I am getting another error and I think this is coming from the Passenger package I installed in the past.
Here are the errors when I try to run apache bacause apache is not running due to this.
* Starting web server apache2 apache2: Syntax error on line 239 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/passenger.load: Cannot load /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so into server: /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so: cannot open shared object file: No such file or directory
Action 'start' failed.
The Apache error log may have more information
.

Now I verified and discovered that : /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.18/ext/apache2/mod_passenger.so does not exist.

This is the output of gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2013-01-15 patchlevel 374) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

And this is the output of RAILS_ENV=production /opt/redmine/script/about
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /opt/redmine/config/boot.rb:6:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /opt/redmine/config/application.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /opt/redmine/config/environment.rb:2:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /opt/redmine/script/about:4:in `<main>'

Is the solution to uninstall Passenger package ?

How can I solve this ?

Thanks

RE: Which Rack version for Redmine 2.2.3 - Added by Jan Niggemann (redmine.org team member) over 9 years ago

Let's first get redmine working with the built-in server.
What happens when executing step 2.8 from the guide? Does it work?

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

Hi @Jan Niggemann,

Yes step 2.8 works well on port 3000.
ruby script/rails server webrick -e production
I can access via www.mydomain.com:3000
But when I close the shell, I can't no more access.

So then, how to fix so that I can access via www.mydomain.com/redmine ?

Thanks

RE: Which Rack version for Redmine 2.2.3 - Added by Jan Niggemann (redmine.org team member) over 9 years ago

OK, now we know that your installation of redmine is definetly OK.
Now we have to correct your apache and passenger configuration.
Please post the output of passenger-config --version.
Then use locate mod_passenger.so to find where the shared object (i.e. the module) is and put this path in the /etc/apache2/mods-enabled/passenger.load...
Then check your config with apachectl configtest, if it's OK, restart apache and try again.

Please report back if it works now.

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

the passenger-conf --version outputs passenger-conf:command not found. Seems like passenger is not install ! But I have installed
Here is the output of locate mod_passenger.so :
/usr/lib/apache2/modules/mod_passenger.so
/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
/var/lib/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so

What line is the module here ?

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

I want inside the passenger folder
/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.19/bin
and passenger-conf displays@ 3.0.19@ as version.
I locate the mod_passenger.so here :
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so

Then I run apachectl configtest and get this :
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Syntax OK

So the problem may coming from my apache config file ?
I am installing on a web server where apache has already been installed.

RE: Which Rack version for Redmine 2.2.3 - Added by Jan Niggemann (redmine.org team member) over 9 years ago

Syntax OK indicates that your apache configfile is good.

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

So , what can be the problem now?
How can I troubleshooting for that?
Many thanks

RE: Which Rack version for Redmine 2.2.3 - Added by Kwaye Kant over 9 years ago

Hello,
I discovered there was an error in the config file /etc/apache2/sites-available/redmine. and I correct it to

But now when I access the link I get this error:
A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
rails is not part of the bundle. Add it to Gemfile.
Exception class:
Gem::LoadError
Application root:
/usr/share/redmine

What is the problem here ?

How can I add Rails in Gemfile ?

(1-13/13)