# Bug DOC-111 - Docker: "DATABASE INCOMPATIBILITY ERROR" after upgrade to 12.1.1	

Project: Docker
Status: rejected
URL: https://community.openproject.org/work_packages/DOC-111

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.1.2 |
| Observed in versions | 12.1.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.1.x |
| Requires doc change | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |

## Description

### **Environment**:

Your OpenProject Version: 12.1.1

Unraid

### **Logs**

(StructuredWarnings::StandardWarning)  
\-----\> Existing PostgreSQL cluster found in /var/openproject/pgdata.  
\-----\> Setting PGVERSION=9.6 PGBIN=/usr/lib/postgresql/9.6/bin PGCONF\_FILE=/etc/postgresql/9.6/main/postgresql.conf  
\-----\> Starting the all-in-one OpenProject setup at /app/docker/prod/supervisord...  
\-----\> Database cluster already exists, not modifying.  
waiting for server to start...... done  
server started  
Trying to contact PostgreSQL server instance or waiting for it to come online.  
Starting memcached: memcached.  
\-----\> Running migrations...  
/app/config/constants/settings/definition.rb:307:in \`find\_env\_var\_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT\_ATTACHMENTS\_STORAGE\_PATH instead of ATTACHMENTS\_STORAGE\_PATH (StructuredWarnings::StandardWarning)  
/app/config/constants/settings/definition.rb:307:in \`find\_env\_var\_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT\_RAILS\_CACHE\_STORE instead of RAILS\_CACHE\_STORE (StructuredWarnings::StandardWarning)  
/app/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active\_record/railtie.rb:152:in \`block (3 levels) in \<class:Railtie\>': Ignoring /app/db/schema\_cache.yml because it has expired. The current schema version is 20220106145037, but the one in the cache is 20220428071221. (StructuredWarnings::StandardWarning)  
/app/lib/tasks/database.rake:77:in \`rescue in block (3 levels) in \<top (required)\>':  
\---------------------------------------------------  
DATABASE INCOMPATIBILITY ERROR

Database server version mismatch: Required version is 10.0.0, but current version is 9.6.24

For more information, visit our upgrading documentation:  
<https://www.openproject.org/operations/upgrading/>  
\---------------------------------------------------  
(StructuredWarnings::StandardWarning)

### **Steps to reproduce:**

1.  Starting Openproject docker

### **Actual Behavior**

Docker not starting.

### **Expected Behavior**

Docker starting.
