# Bug OP-9212 - openproject configure tries to install postgresql 10 on upgrade, while 13 is already deployed

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 11.4.1 |
| Observed in versions |  |
| Sprint | 11.4.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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

### **Environment**:

Your OpenProject Version: 11.4.0

Operating System / Browser / OpenProject language: Ubuntu 18.04.6 LTS / Firefox / English

### **Logs**

Are there errors in the browser console? ([Click here for information on how to open your browser's console](https://webmasters.stackexchange.com/a/77337)) For a local installation: Are there relevant logs output by `openproject logs` (packaged installation) ([click here for details](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable

### **Steps to reproduce:**

1.  Have a server with 11.3.5 deployed
2.  Run aptitude upgrade
3.  Openproject is upgraded to 11.4.0
4.  Execute sudo openproject configure
5.  
### **Actual Behavior**

root@aeop /etc/apt/sources.list.d \# aptitude upgrade  
The following packages will be upgraded:   
 openproject   
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
Need to get 155 MB of archives. After unpacking 7,241 kB will be used.  
Do you want to continue? \[Y/n/?\]   
Get: 1 <https://dl.packager.io/srv/deb/opf/openproject/stable/11/ubuntu> 18.04/main amd64 openproject amd64 11.4.0-1633339880.4933a835.bionic \[155 MB\]  
Fetched 155 MB in 4s (43.3 MB/s)        
(Reading database ... 162220 files and directories currently installed.)  
Preparing to unpack .../openproject\_11.4.0-1633339880.4933a835.bionic\_amd64.deb ...  
Unpacking openproject (11.4.0-1633339880.4933a835.bionic) over (11.3.5-1631523445.5be82c4f.bionic) ...  
Setting up openproject (11.4.0-1633339880.4933a835.bionic) ...  
\==============  
The openproject package provides an installer. Please run the following command to finish the installation:  
sudo openproject configure  
\==============  
                                          
Current status: 0 (-1) upgradable.  
root@aeop /etc/apt/sources.list.d \# sudo openproject configure  
Launching installer for openproject...  
Selected addons: legacy-installer openproject-edition postgres apache2 repositories smtp memcached openproject  
\[legacy-installer\] ./bin/configure  
\[openproject-edition\] ./bin/configure  
DONE  
\[postgres\] ./bin/configure  
Postgres connection OK  
DONE  
\[apache2\] ./bin/configure  
DONE  
\[repositories\] ./bin/configure  
DONE  
\[smtp\] ./bin/configure  
DONE  
\[memcached\] ./bin/configure  
DONE  
\[openproject\] ./bin/configure  
DONE  
\[legacy-installer\] ./bin/preinstall  
\[openproject-edition\] ./bin/preinstall  
\[postgres\] ./bin/preinstall  
INFO: autoinstall=install. A new PostgreSQL v10 server will be installed locally unless a conflicting installation is found.  
INFO: Checking whether port 45432 is available... KO  
ERROR: port 45432 is already in use. Can't install new PostgreSQL server.  
root@aeop /etc/apt/sources.list.d \# dpkg -l | grep -i postgre  
ii  libpq5:amd64                           14.0-1.pgdg18.04+1                              amd64        PostgreSQL C client library  
ii  pgdg-keyring                           2018.2                                          all          keyring for apt.postgresql.org  
ii  postgresql-13                          13.4-4.pgdg18.04+1                              amd64        The World's Most Advanced Open Source Relational Database  
ii  postgresql-client-13                   13.4-4.pgdg18.04+1                              amd64        front-end programs for PostgreSQL 13  
ii  postgresql-client-common               231.pgdg18.04+1                                 all          manager for multiple PostgreSQL client versions  
ii  postgresql-common                      231.pgdg18.04+1                                 all          PostgreSQL database-cluster manager  
root@aeop /etc/apt/sources.list.d \#

### **Expected Behavior**

openproject configure should complete without trying to deploy postgres v10
