# Bug OP-16887 - Seeder fails during upgrade with ArgumentError: Nothing registered with reference :default_role_project_admin (ArgumentError)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.1.0 |
| Observed in versions |  |
| Sprint | 16.1.0 |
| 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 | Jens Ulferts |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Install OpenProject via any means

2.  Remove the project admin role in the administration

3.  Run the seeder again
    
    1.  package: sudo openproject configure
    
    2.  helm: helm upgrade ...
    
    3.  docker: docker exec -it \<container-name\> bundle exec rake db:seed

### What is the buggy behavior?

  - the seeder fails with the following error:
    
      - `**ArgumentError: Nothing registered with reference :default_role_project_admin (ArgumentError)**`

### What is the expected behavior?

  - the seeder should not fail

### Environment information

**OpenProject version**

*v15.4.2*

### *Notes*

  - this may be a more fundamental issue / question: to seed or not to seed (with every upgrade)?
    
      - the current approach is definitely to rely on the seed to introduce new data with updates
    
      - the seeder is run during each upgrade of packaged, docker, and helm installations
    
      - the alternative would perhaps be data migrations, or simply seeders that can handle removal of seeded data, say by tracking inside the database if they have run yet in a manner independent from the present data

  - the issue here is that the seeder(s) rely on the presence of seeded data when it's perfectly valid for users to change this data
