Defect #38830
openInstallation of Redmine 5.0 with fresh Ubuntu 22.04 LTS stops at bundler install
0%
Description
Hi there,
I tried for days to install Redmine 5.0 using official redmine HowTos, but I always get stucked during bundle install:
my database manager version : PostgreSQL 14.8
my Ruby version : 3.0.2
my Rails version : Not yet installable
my Redmine version : 5.0 (co via svn)
my using plugins : None so far
So what did I do to reproduce the error:
1.) Take a fresh Virtual Machine and install Ubuntu 22.04 LTS Server with default options
2.) Configuring the Proxy of my organisation and some certs, nothing special
3.) sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade && sudo apt -y full-upgrade && sudo apt -y autoremove && sudo apt -y autopurge && sudo apt -y autoclean && sudo reboot
4.) sudo apt -y install postgresql postgresql-contrib php-pgsql
5.) sudo apt -y install subversion
6.) sudo svn co https://svn.redmine.org/redmine/branches/5.0-stable /opt/redmine-5.0
7.) cd ~postgres/
8.) sudo -u postgres psql -c "CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'my_password' NOINHERIT VALID UNTIL 'infinity';"
9.) sudo -u postgres psql -c "CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;"
10.) sudo -u postgres psql -c "ALTER DATABASE redmine SET datestyle='ISO,MDY';"
11.) Configuring /opt/redmine-5.0/config/database.yml
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "my_password"
encoding: utf8
schema_search_path: public
12.) sudo gem install bundler
13.) cd /opt/redmine-5.0
14.) bundle install
During bundle install the output is flodded with messages like
Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.0.0/cache/docile-1.4.0.gem`. It is likely that you need to grant write permissions for that path.
Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.0.0/cache/rack-2.2.7.gem`. It is likely that you need to grant write permissions for that path.
and ends with:
An error occurred while installing builder (3.2.4), and Bundler cannot continue.
I tried several recommended solutions outside redimine.org:
- Installing rbenv via Homebrew and installing ruby via rbenv
- Fixing permission errors by hand (which messes things up a lot)
- https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_50x_on_Ubuntu_2004_with_Apache2
- https://www.redmine.org/projects/redmine/wiki/RedmineInstall
I am at the point where I have to install not the current versions of software but older versions to install redmine - but I first try to ask here, maybe there is something I have missed to do - despite reinstalling the whole server 4 times for now and getting stucked at the same point no matter which howto I follow.
My Guess:
Some versions ago bundler had the option to correct it's permission errors by using the sudo password. But that feature was removed from bundler for security reasons.
It seems that there is no updated install doc since bundler changed it's habit, but I may have missed one.
But I don't know for sure if that's the reason for my problem. Just a guess at the moment.
Am I able to install the latest Redmine version 5.0.x with the latest Ubuntu LTS Server 22.04.x?
And if it's possible - can anyone give me a hint how to get "bundler install" running under that combination?
Any help would be highly appreciated.
Regards
Dirk
Files