# Bug OP-11091 - RPM/DEB installation fails with a custom gemfile

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11091

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.2.3 |
| Observed in versions | 12.2.0 |
| Sprint | 12.2.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

Follow the instructions for a RPM/DEB installation from the official documentation adding a plugin: 

[https://www.openproject.org/docs/installation-and-operations/configuration/plugins/](https://www.openproject.org/docs/installation-and-operations/configuration/plugins/)

The plugin to test is: 

[https://github.com/btey/openproject-gitlab-integration.git](https://github.com/btey/openproject-gitlab-integration.git)

Sample Gemfile.custom:

```text
group :opf_plugins do
  gem 'openproject-gitlab_integration', git: 'https://github.com/btey/openproject-gitlab-integration.git', :branch => 'master'
end
```

### What is the buggy behavior?

The step to _**Re-run the installer**_ end with an error:

```bash
[openproject] ./bin/preinstall
[legacy-installer] ./bin/postinstall
[openproject-edition] ./bin/postinstall
[postgres] ./bin/postinstall
[apache2] ./bin/postinstall
Last prefix was /
[Tue Sep 06 14:32:13.592723 2022] [so:warn] [pid 5329] AH01574: module deflate_module is already loaded, skipping
[Tue Sep 06 14:32:13.592827 2022] [so:warn] [pid 5329] AH01574: module expires_module is already loaded, skipping
[Tue Sep 06 14:32:13.592910 2022] [so:warn] [pid 5329] AH01574: module filter_module is already loaded, skipping
[Tue Sep 06 14:32:13.592932 2022] [so:warn] [pid 5329] AH01574: module headers_module is already loaded, skipping
[Tue Sep 06 14:32:13.592996 2022] [so:warn] [pid 5329] AH01574: module proxy_http_module is already loaded, skipping
[Tue Sep 06 14:32:13.593020 2022] [so:warn] [pid 5329] AH01574: module proxy_module is already loaded, skipping
[Tue Sep 06 14:32:13.593043 2022] [so:warn] [pid 5329] AH01574: module rewrite_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
Syntax OK
Redirecting to /bin/systemctl restart httpd.service
[repositories] ./bin/postinstall
No repositories have been configured. Skipping configuration.
[memcached] ./bin/postinstall
Redirecting to /bin/systemctl start memcached.service
[openproject] ./bin/postinstall
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the /opt/openproject/Gemfile freeze
by running `bundle config unset frozen`.

The list of sources changed
The dependencies in your gemfile changed

You have added to the Gemfile:
* openproject-gitlab_integration
[root@localhost ~]#
```

### What is the expected behavior?

With previous versions, eg. 12.1.x this process works without errors for RPM/DEB installations.

### Important note

_Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, but no longer add any new images or other attachments. Please make sure that all necessary information and attachments are added, and the following attributes are set:_

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [x] Packaged installation
    *   What distribution? CentOS 7
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

Latest available for RPM: 12.2.2-1661955828.18e73488.centos7
