# Bug OP-20108 - Migration from 17.3.1 to 17.8 fails

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| 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 | Kabiru Mwenja |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Start from 17.3.1, carry out backup
    
2.  `sudo yum update`
    
3.  `sudo yum install openproject`
    
4.  `sudo openproject configure`
    

### What is the buggy behavior?

`sudo openproject configure` does not complete. Openproject is running, but webpage shows warning that migration is not complete.

```text
== 20260319120000 AddCaseInsensitiveUniquenessForProjectIdentifiers: migrating
-- execute("UPDATE projects SET identifier = projects.identifier || '_' || counter.rn FROM ( SELECT id, row_number() OVER (PARTITION BY LOWER(identifier) ORDER BY id) AS rn FROM projects ) AS counter WHERE projects.id = counter.id AND counter.rn > 1 AND NOT EXISTS ( SELECT 1 FROM projects p2 WHERE LOWER(p2.identifier) = LOWER(projects.identifier || '_' || counter.rn) );")
   -> 0.0012s
-- remove_index(:projects, :identifier, {unique: true, algorithm: :concurrently, if_exists: true})
rake aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)

Multiple indexes found on projects columns [:identifier]. Specify an index name from index_projects_on_identifier, index_projects_on_identifier

<snip trace>

ArgumentError: Multiple indexes found on projects columns [:identifier]. Specify an index name from index_projects_on_identifier, index_projects_on_identifier (ArgumentError)
```

### What is the expected behavior?

Migration should complete, and Openproject start normally

### **Logs**

_Full log attached_&nbsp;

**OpenProject installation type**

*   Packaged installation - AlmaLinux release 9.8 (Olive Jaguar)
    

**OpenProject version**

_v17.3.1 -&gt; v17.8_

**Operating System**

*   [ ] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [x] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_N/A_
