Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Installing Redmine on gentoo?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
petterg
Guru
Guru
Posts: 500
Joined: Thu Mar 25, 2004 10:11 am
Location: Oslo, Norway

Installing Redmine on gentoo?

  • Quote

Post by petterg » Sun May 24, 2015 6:34 pm

I'm trying to install Redmine on gentoo, and failing.

First off, to get emerge -av redmine to run at all, I had to add a lot to /etc/portage/package.keywords (see attached code 2).
I also added passenger and imagemagick useflags.

Then
# emerge --config "=www-apps/redmine-2.4.6"
fail with what turned out to be a missing Gemfile.
I extracted the file manually from the tarball emerge had downloaded at install.

Then I ran
# emerge --config "=www-apps/redmine-2.4.6"
again. Then it failed with a message looking like
* Generating a session store secret.
Could not find rake-10.1.1 in any of the sources
Run `bundle install` to install missing gems.
* ERROR: www-apps/redmine-2.4.6::gentoo failed (config phase):
* (no error message)
So I run
# bundle install
and get a warning it should not be run as root. So I abort and run
# sudo -g redmine -u redmine bundle install

Then again
# emerge --config "=www-apps/redmine-2.4.6"
returning the same error.

#gem list
show that rake 10.4.2 and 0.9.6 is installed, but not 10.1.1.
So I ran
# gem install rake -v '10.1.1'

And another try with
# emerge --config "=www-apps/redmine-2.4.6"
returning the same error, but this time with another gem, multi_json-1.11.0
This gem was also installed by bundle, but a newer version. So, I install that older version it asks for.
And so it goes - emerge --config asks for an older gem version than what is installed, I install that version, and it asks for an older version of another gem. I went through this loop, what feels like 50 gems before the error changed.

The new error is:
# emerge --config "=www-apps/redmine-2.4.6"
Configuring pkg...
*
* Initializing database.
*
* Generating a session store secret.
rake aborted!
Gem::LoadError: You have already activated rake 10.4.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this.
/var/lib/redmine/config/boot.rb:6:in `<top (required)>'
/var/lib/redmine/config/application.rb:1:in `<top (required)>'
/var/lib/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
How do I move on from here? I kind of get the feeling I'm not on the right track at all!?

----------------------------------
Code1: Added to /etc/portage/package.use

Code: Select all

www-apps/redmine passenger imagemagick
Code 2: Newly added to /etc/portage/package.keywords

Code: Select all

=dev-ruby/rack-1.6.1 ~amd64
=app-eselect/eselect-rails-0.20 ~amd64
=www-apps/redmine-2.4.6 ~amd64
=dev-ruby/hike-1.2.3-r1 ~amd64
=dev-ruby/rack-cache-1.2-r1 ~amd64
=dev-ruby/treetop-1.5.3 ~amd64
=dev-ruby/bcrypt-ruby-3.1.10 ~amd64
=dev-ruby/actionpack-3.2.21 ~amd64
=dev-ruby/jquery-rails-4.0.3 ~amd64
=dev-ruby/rack-1.4.5-r3 ~amd64
=dev-ruby/uglifier-2.7.1 ~amd64
=dev-ruby/rails-3.2.21 ~amd64
=dev-ruby/builder-3.0.4-r1 ~amd64
=dev-ruby/tzinfo-1.2.2 ~amd64
=dev-ruby/mail-2.5.4 ~amd64
=dev-ruby/loofah-2.0.2 ~amd64
=dev-ruby/activeresource-3.2.21 ~amd64
=dev-ruby/activesupport-4.2.1 ~amd64
=dev-ruby/sprockets-2.2.3 ~amd64
=dev-ruby/polyglot-0.3.5 ~amd64
=dev-ruby/i18n-0.6.11 ~amd64
=dev-ruby/activerecord-3.2.21 ~amd64
=dev-ruby/rack-test-0.6.3 ~amd64
=dev-ruby/actionview-4.2.1 ~amd64
=dev-ruby/rails-deprecated_sanitizer-1.0.3 ~amd64
=dev-ruby/rails-html-sanitizer-1.0.2 ~amd64
=dev-ruby/actionpack-4.2.1 ~amd64
=dev-ruby/sass-rails-3.2.6 ~amd64
=dev-ruby/i18n-0.7.0 ~amd64
=dev-ruby/railties-3.2.21 ~amd64
=dev-ruby/activemodel-3.2.21 ~amd64
=dev-ruby/journey-1.0.4-r1 ~amd64
=dev-ruby/mysql2-0.3.18 ~amd64
=dev-ruby/rack-ssl-1.3.4 ~amd64
=dev-ruby/rails-dom-testing-1.0.6 ~amd64
=dev-ruby/thread_safe-0.3.5 ~amd64
=dev-ruby/ruby-openid-2.7.0 ~amd64
=dev-ruby/activesupport-3.2.21 ~amd64
=dev-ruby/coffee-rails-3.2.2 ~amd64
=dev-ruby/thor-0.19.1 ~amd64
=dev-ruby/actionmailer-3.2.21 ~amd64
=dev-ruby/railties-4.2.1 ~amd64
=dev-ruby/rack-openid-1.4.2 ~amd64
=dev-ruby/arel-3.0.2-r2 ~amd64
Top
petterg
Guru
Guru
Posts: 500
Joined: Thu Mar 25, 2004 10:11 am
Location: Oslo, Norway

  • Quote

Post by petterg » Mon May 25, 2015 11:57 am

Seems like I solved this by running:
# gem uninstall rake -v '10.4.2'

Still, I don't think I did this the correct way. Would appreciate if someone could tell how to use the redmine ebuild the correct way.
Top
petterg
Guru
Guru
Posts: 500
Joined: Thu Mar 25, 2004 10:11 am
Location: Oslo, Norway

  • Quote

Post by petterg » Mon May 25, 2015 12:04 pm

Next issue: redmine now runs as apache user.
The ebuild created a redmine user and group. I suppose they were created with the intention that the redmine vhost should run as that user/group?

Recompiling apache (2.2.29) with itk module did not help.
For the purpose of testing the itk module i created a vhost like this:

Code: Select all

    <IfModule mpm_itk_module>
Listen 3001
<VirtualHost *:3001>
        DocumentRoot /temps/apachetest
        <Directory "/temps/apachetest">
                Options FollowSymLinks
                Order allow,deny
                Allow from all
        </Directory>
        AssignUserId #103 #245
</VirtualHost>
    </IfModule>
103/245 is the uid/gid of redmine user.
This works. The vhost is only able to read files (chmod 400) owned by redmine. It is not able to read the same file when it's owned by apache.

From that test I'd expect redmine vhost to run as redmine user using this config

Code: Select all

<IfModule passenger_module>
Listen 3000
<VirtualHost *:3000>
        DocumentRoot /var/lib/redmine/public
#       RailsEnv production
        <Directory "/var/lib/redmine/public">
                Options FollowSymLinks
                Order allow,deny
                Allow from all
        </Directory>
    <IfModule mpm_itk_module>
        AssignUserId #103 #245
    </IfModule>
</VirtualHost>
</IfModule>
But it's not. It's still running as apache. Or the passenger module is.

Currently the only workaround I can imagine is to let passenger run as apache, and change the user for all other vhosts.
Top
petterg
Guru
Guru
Posts: 500
Joined: Thu Mar 25, 2004 10:11 am
Location: Oslo, Norway

  • Quote

Post by petterg » Mon May 25, 2015 2:58 pm

Solved by setting
PassengerDefaultUser redmine

in /etc/apache2/modules.d/30_mod_passenger.conf


Although this seems to be working now, I'd appreciate if someone could tell how to use the redmine ebuild the correct way. I'm sure I did this in a very complicated way.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic