Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8675601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:59:20+00:00 2026-06-12T19:59:20+00:00

I’m having trouble installing Redmine. It seems to run just fine under webrick like

  • 0

I’m having trouble installing Redmine. It seems to run just fine under webrick like this:

redmine@machine:~$ /usr/bin/ruby1.8 script/rails server webrick -e production

Note that this is when I’m logged in as user ‘redmine’.

I installed Passenger (v3.0.17) against my existing Apache2 installation and use a /etc/apache2/mods-enabled/passenger.conf like this:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/apache2/mod_passenger.so
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.17
PassengerRuby /usr/bin/ruby1.8

My virtual host conf is very simple too:

<VirtualHost *:80>
    ServerAdmin webmaster@machine.com
    ServerName redmine.machine.com

    RailsEnv production

    DocumentRoot /home/redmine/redmine-2.1/public

    <Directory /home/redmine/redmine-2.1/public>
        # This relaxes Apache security settings.
        AllowOverride all
        # MultiViews must be turned off.
        Options -MultiViews
    </Directory>


    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    ErrorLog /var/log/apache2/redmine.error.log
    CustomLog /var/log/apache2/redmine.access.log combined
</VirtualHost>

When I run this, I get an error “no such file to load — bundler”. However, notice:

redmine@machine:~$ gem list

*** LOCAL GEMS ***

actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activerecord-mysql2-adapter (0.0.3)
activeresource (3.2.8)
activesupport (3.2.8)
arel (3.0.2)
builder (3.0.0)
bundler (1.2.1)
coderay (1.0.8)
daemon_controller (1.0.0)
erubis (2.7.0)
fastercsv (1.5.5)
fastthread (1.0.7)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.7.5)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.6)
mysql (2.8.1)
mysql2 (0.3.11)
net-ldap (0.3.1)
passenger (3.0.17)
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
rmagick (2.13.1)
ruby-openid (2.1.8)
rvm (1.11.3.5)
sprockets (2.1.3)
sqlite3 (1.3.6)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.11)
tzinfo (0.3.33)

All files in /home/redmine/redmine-2.1 are owned by redmine:redmine. All directories are 0755 and all files are 0644.

Now, the interesting thing I have noticed when I show processes:

redmine@machine:~$ ps -ef | grep "Passenger"
root     21764 21759  0 10:49 ?        00:00:00 PassengerWatchdog
root     21773 21764  0 10:49 ?        00:00:00 PassengerHelperAgent
root     21775 21773  0 10:49 ?        00:00:00 Passenger spawn server                                                                                                                                           
nobody   21778 21764  0 10:49 ?        00:00:00 PassengerLoggingAgent

I’m certainly no expert in Ruby/Rails/Passenger/Redmine, but I suspect that the fact that Passenger is running as nobody instead of redmine may be the problem. According to the docs here: http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching, Passenger is supposed to switch users to the user who owns /config/environment.ru, so long as that user can read/write logs and is not root, correct? As you can see from the above, that file (the whole app, in fact) is owned by redmine, including the logs which are rwx for the owner and redmine ≠ root so, I believe that I’ve passed the requirements for Passenger to switch to run as redmine.

Three direct questions:

  1. Is this the cause of my inability to run Redmine under Passenger? and**
  2. Why is Passenger still running as nobody?**
  3. In my attempt to fix this, I tried adding the line:

    PassengerDefaultUser www-data

into my /etc/apache2/mods-enabled/passenger.conf (as shown above), but it appears to not take affect. The results of everything is identical with and without that line. I wouldn’t have expected it to fix the problem, but I did expect it to show up as the user that Passenger runs as when I list processes. It did not.

Other possibly relevant info:

redmine@machine:~$ uname -a
Linux machine.****.com 2.6.18-028stab092.1 #1 SMP Wed Jul 20 19:47:12 MSD 2011 x86_64 GNU/Linux
Ubuntu 10.04.4 LTS

redmine@machine:~$ /usr/bin/ruby1.8 --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:59:22+00:00Added an answer on June 12, 2026 at 7:59 pm

    bundler is the problem. Do you have any particular reason to use Ruby 1.8.x? I strongly recommend you to upgrade to Ruby 1.9.x, preferably 1.9.3. Otherwise, you may want to try a more ancient bundler version like 0.9.x. In addition you should downgrade your Rubygems to 1.3.7 or something similar.

    In theory Rubygems can be downgraded as follows:

    sudo gem update --system 1.3.7
    

    To install an old bundler version:

    sudo gem uninstall bundler
    sudo gem install bundler --version=0.9.1
    

    On several occasions I had to deal with outdated Ruby software, and the best thing to do is to not install the system Ruby, but to compile it yourself from sources. (Not so difficult after all, Ruby is well-packaged.) And then install the appropriate Rubygems version from sources. Or look at RVM, although this can be painful at the beginning.

    BTW: I also recommend to use nginx instead of Apache. The installation is not as well-documented but therefore the configuration files are much simpler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have just tried to save a simple *.rtf file with some websites and
I would like to count the length of a string with PHP. The string
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.