mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Bump ruby to 4.0.2
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
4.0.1
|
4.0.2
|
||||||
|
|||||||
+2
-2
@@ -2328,7 +2328,7 @@ CHECKSUMS
|
|||||||
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
||||||
|
|
||||||
RUBY VERSION
|
RUBY VERSION
|
||||||
ruby 4.0.1
|
ruby 4.0.2
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
4.0.6
|
4.0.9
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ruby:4.0.1-trixie AS develop
|
FROM ruby:4.0.2-trixie AS develop
|
||||||
LABEL org.opencontainers.image.authors="operations@openproject.com"
|
LABEL org.opencontainers.image.authors="operations@openproject.com"
|
||||||
|
|
||||||
ARG DEV_UID=1000
|
ARG DEV_UID=1000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ARG RUBY_VERSION="4.0.1"
|
ARG RUBY_VERSION="4.0.2"
|
||||||
ARG DEBIAN_BASE="trixie"
|
ARG DEBIAN_BASE="trixie"
|
||||||
# Add SBOM scan context for intermediate steps
|
# Add SBOM scan context for intermediate steps
|
||||||
ARG BUILDKIT_SBOM_SCAN_CONTEXT=true
|
ARG BUILDKIT_SBOM_SCAN_CONTEXT=true
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev
|
|||||||
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
||||||
Ruby.
|
Ruby.
|
||||||
You can check available ruby versions with `rbenv install --list`.
|
You can check available ruby versions with `rbenv install --list`.
|
||||||
At the time of this writing, the latest stable version is `4.0.1`, which we also require.
|
At the time of this writing, the latest stable version is `4.0.2`, which we also require.
|
||||||
|
|
||||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||||
Read the first line e.g. `4.0.1` and install that version.
|
Read the first line e.g. `4.0.2` and install that version.
|
||||||
|
|
||||||
#### Install rbenv and ruby-build
|
#### Install rbenv and ruby-build
|
||||||
|
|
||||||
@@ -80,18 +80,18 @@ With both installed, we can now install ruby.
|
|||||||
You can check available ruby versions with `rbenv install --list`.
|
You can check available ruby versions with `rbenv install --list`.
|
||||||
|
|
||||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||||
Read the first line e.g. `4.0.1` and install that version.
|
Read the first line e.g. `4.0.2` and install that version.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Install the required version as read from the .ruby-version file
|
# Install the required version as read from the .ruby-version file
|
||||||
rbenv install 4.0.1
|
rbenv install 4.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
||||||
globally activate this version
|
globally activate this version
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
rbenv global 4.0.1
|
rbenv global 4.0.2
|
||||||
rbenv rehash
|
rbenv rehash
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -181,10 +181,10 @@ You should now have an active ruby and node installation. Verify that it works w
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
ruby --version
|
ruby --version
|
||||||
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [arm64-darwin25]
|
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [arm64-darwin25]
|
||||||
|
|
||||||
bundler --version
|
bundler --version
|
||||||
4.0.3
|
4.0.9
|
||||||
|
|
||||||
node --version
|
node --version
|
||||||
v22.21.0
|
v22.21.0
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ their homepage.
|
|||||||
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install
|
||||||
Ruby. We always require the latest ruby versions, and you can check which version is required
|
Ruby. We always require the latest ruby versions, and you can check which version is required
|
||||||
by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At
|
by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At
|
||||||
the time of writing, this version is "4.0.1"
|
the time of writing, this version is "4.0.2"
|
||||||
|
|
||||||
#### Install rbenv and ruby-build
|
#### Install rbenv and ruby-build
|
||||||
|
|
||||||
@@ -48,18 +48,18 @@ With both installed, we can now install the actual ruby version.
|
|||||||
You can check available ruby versions with `rbenv install --list`.
|
You can check available ruby versions with `rbenv install --list`.
|
||||||
|
|
||||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||||
Read the first line e.g. `4.0.1` and install that version.
|
Read the first line e.g. `4.0.2` and install that version.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Install the required version as read from the .ruby-version file
|
# Install the required version as read from the .ruby-version file
|
||||||
rbenv install 4.0.1
|
rbenv install 4.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to
|
||||||
globally activate this version
|
globally activate this version
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
rbenv global 4.0.1
|
rbenv global 4.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
|
You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.
|
||||||
@@ -134,7 +134,7 @@ You should now have an active ruby and node installation. Verify that it works w
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ ruby --version
|
$ ruby --version
|
||||||
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [arm64-darwin25]
|
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [arm64-darwin25]
|
||||||
|
|
||||||
$ bundler --version
|
$ bundler --version
|
||||||
4.0.3
|
4.0.3
|
||||||
@@ -196,7 +196,7 @@ automatically loaded to the application's environment.
|
|||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> Instead of using the `gssencmode` flag in `config/database.yml`, you can add `export PGGSSENCMODE="disable"` to your
|
> Instead of using the `gssencmode` flag in `config/database.yml`, you can add `export PGGSSENCMODE="disable"` to your
|
||||||
> Shell profile (`~/.zprofile` by default). This will prevent Ruby crashes for *all* of your projects.
|
> Shell profile (`~/.zprofile` by default). This will prevent Ruby crashes for _all_ of your projects.
|
||||||
|
|
||||||
Some users report Ruby crashes despite having set this flag to disable. If this is the case for you as well,
|
Some users report Ruby crashes despite having set this flag to disable. If this is the case for you as well,
|
||||||
try adding `export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes` to your Shell profile.
|
try adding `export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes` to your Shell profile.
|
||||||
@@ -328,7 +328,7 @@ sudo ln -sfn $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/Java
|
|||||||
#### Subversion
|
#### Subversion
|
||||||
|
|
||||||
To test the integration with Subversion repositories, we rely on the `svnadmin` command to be available. If subversion
|
To test the integration with Subversion repositories, we rely on the `svnadmin` command to be available. If subversion
|
||||||
is not installed, the tests *will be skipped*. To run the tests, install subversion with
|
is not installed, the tests _will be skipped_. To run the tests, install subversion with
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
brew install subversion
|
brew install subversion
|
||||||
|
|||||||
@@ -10,16 +10,16 @@ sidebar_navigation: false
|
|||||||
|
|
||||||
Please be aware that:
|
Please be aware that:
|
||||||
|
|
||||||
* This guide **requires** that you have a clean **Ubuntu 18.04** **x64** installation
|
- This guide **requires** that you have a clean **Ubuntu 18.04** **x64** installation
|
||||||
with administrative rights (i.e. you must be able to `sudo`). We have tested
|
with administrative rights (i.e. you must be able to `sudo`). We have tested
|
||||||
the installation guide on an Ubuntu Server image, but it should work on any
|
the installation guide on an Ubuntu Server image, but it should work on any
|
||||||
derivative. You may need to alter some of the commands to match your
|
derivative. You may need to alter some of the commands to match your
|
||||||
derivative.
|
derivative.
|
||||||
|
|
||||||
* OpenProject will be installed with a **PostgreSQL** database.
|
- OpenProject will be installed with a **PostgreSQL** database.
|
||||||
|
|
||||||
* OpenProject will be served in a production environment with the **Apache** server
|
- OpenProject will be served in a production environment with the **Apache** server
|
||||||
(this guide should work similarly with other servers, like nginx and others)
|
(this guide should work similarly with other servers, like nginx and others)
|
||||||
|
|
||||||
> **NOTE:** We have highlighted commands to execute like this
|
> **NOTE:** We have highlighted commands to execute like this
|
||||||
|
|
||||||
@@ -106,19 +106,19 @@ Please be aware that the actual installation of a specific Ruby version takes so
|
|||||||
```
|
```
|
||||||
|
|
||||||
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
We suggest you install the version we require in [.ruby-version](https://github.com/opf/openproject/blob/dev/.ruby-version).
|
||||||
Read the first line e.g. `4.0.1` and install that version.
|
Read the first line e.g. `4.0.2` and install that version.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
[openproject@host] rbenv install 4.0.1
|
[openproject@host] rbenv install 4.0.2
|
||||||
[openproject@host] rbenv rehash
|
[openproject@host] rbenv rehash
|
||||||
[openproject@host] rbenv global 4.0.1
|
[openproject@host] rbenv global 4.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
To check our Ruby installation we run `ruby --version`. It should output
|
To check our Ruby installation we run `ruby --version`. It should output
|
||||||
something very similar to:
|
something very similar to:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [arm64-darwin25]
|
ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [arm64-darwin25]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation of Node
|
## Installation of Node
|
||||||
@@ -216,7 +216,6 @@ rails_cache_store: :memcache
|
|||||||
```
|
```
|
||||||
|
|
||||||
> **NOTE:** You should validate your `yml` files, for example with [yamlchecker.com](https://yamlchecker.com/). Both, the `database.yml` and `configuration.yml` file are sensitive to whitespace. It is pretty easy to write invalid `yml` files without seeing the error. Validating those files prevents you from such errors.
|
> **NOTE:** You should validate your `yml` files, for example with [yamlchecker.com](https://yamlchecker.com/). Both, the `database.yml` and `configuration.yml` file are sensitive to whitespace. It is pretty easy to write invalid `yml` files without seeing the error. Validating those files prevents you from such errors.
|
||||||
>
|
|
||||||
|
|
||||||
To configure the environment variables such as the number of web server threads `OPENPROJECT_WEB_WORKERS`, copy the `.env.example` to `.env` and add the environment variables you want to configure. The variables will be automatically loaded to the application's environment.
|
To configure the environment variables such as the number of web server threads `OPENPROJECT_WEB_WORKERS`, copy the `.env.example` to `.env` and add the environment variables you want to configure. The variables will be automatically loaded to the application's environment.
|
||||||
|
|
||||||
@@ -428,7 +427,7 @@ If you need to restart the server (for example after a configuration change), do
|
|||||||
|
|
||||||
## Frequently asked questions (FAQ)
|
## Frequently asked questions (FAQ)
|
||||||
|
|
||||||
* **I followed the installation guide faithfully and OpenProject is running. Now, how do I log in?**
|
- **I followed the installation guide faithfully and OpenProject is running. Now, how do I log in?**
|
||||||
|
|
||||||
The `db:seed` command listed above creates a default admin-user. The username is `admin` and the default password is `admin`. You are forced to change the admin password on the first login.
|
The `db:seed` command listed above creates a default admin-user. The username is `admin` and the default password is `admin`. You are forced to change the admin password on the first login.
|
||||||
If you cannot login as the admin user, make sure that you have executed the `db:seed` command.
|
If you cannot login as the admin user, make sure that you have executed the `db:seed` command.
|
||||||
@@ -437,18 +436,18 @@ If you need to restart the server (for example after a configuration change), do
|
|||||||
[openproject@all] RAILS_ENV="production" ./bin/rake db:seed
|
[openproject@all] RAILS_ENV="production" ./bin/rake db:seed
|
||||||
```
|
```
|
||||||
|
|
||||||
* **When accessing OpenProject, I get an error page. How do I find out what went wrong?**
|
- **When accessing OpenProject, I get an error page. How do I find out what went wrong?**
|
||||||
|
|
||||||
Things can go wrong on different levels. You can find the apache error logs here: `/var/log/apache2/error.log`
|
Things can go wrong on different levels. You can find the apache error logs here: `/var/log/apache2/error.log`
|
||||||
|
|
||||||
The OpenProject log can be found here: `/home/openproject/openproject/log/production.log`
|
The OpenProject log can be found here: `/home/openproject/openproject/log/production.log`
|
||||||
|
|
||||||
* **I cannot solve an error, not even with the log files. How do I get help?**
|
- **I cannot solve an error, not even with the log files. How do I get help?**
|
||||||
|
|
||||||
You can find help in [the OpenProject forums](https://community.openproject.org/projects/openproject/boards). Please tell us, if possible, what you have done (e.g. which guide you have used to install OpenProject), how to reproduce the error, and provide the appropriate error logs.
|
You can find help in [the OpenProject forums](https://community.openproject.org/projects/openproject/boards). Please tell us, if possible, what you have done (e.g. which guide you have used to install OpenProject), how to reproduce the error, and provide the appropriate error logs.
|
||||||
It often helps to have a look at the already answered questions, or to search the Internet for the error. Most likely someone else has already solved the same problem.
|
It often helps to have a look at the already answered questions, or to search the Internet for the error. Most likely someone else has already solved the same problem.
|
||||||
|
|
||||||
* **I get errors, since I have installed an OpenProject plug-in**
|
- **I get errors, since I have installed an OpenProject plug-in**
|
||||||
|
|
||||||
With each new OpenProject core version, the plug-ins might need to be updated. Please make sure that the plug-in versions of all you plug-ins works with the OpenProject version you use.
|
With each new OpenProject core version, the plug-ins might need to be updated. Please make sure that the plug-in versions of all you plug-ins works with the OpenProject version you use.
|
||||||
Many plug-ins follow the OpenProject version with their version number (So, if you have installed OpenProject version 4.1.0, the plug-in should also have the version 4.1.0).
|
Many plug-ins follow the OpenProject version with their version number (So, if you have installed OpenProject version 4.1.0, the plug-in should also have the version 4.1.0).
|
||||||
|
|||||||
Reference in New Issue
Block a user