# Bug OP-17117 - ArgumentError in seeder

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | DevSecOps / Seeding |
| 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

This happens on our infrastructure where we have multiple tenants on one instance and a new version is deployed. During deployment, the seeding is run.

This is a duplicate of <mention class="mention" data-id="62582" data-type="work_package" data-text="##62582">##62582</mention>.

Here is how to mimic the issue:

  - Install a fresh instance of OpenProject. This runs db migration and seeding and creates the 2 demo projects: "Demo project" and "Scrum project".

  - Delete all the projects

  - Run `rake db:seed` as an upgrade would do.

### What is the buggy behavior?

  - The `db:seed` task tries to create the demo projects again and fails because it can't find references to dependent records.

  - Appsignal:
    
      - <https://appsignal.com/openproject-gmbh/sites/67c5518749a999507a2c1cef/exceptions/incidents/90>
    
      - <https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/10>
    
      - <https://appsignal.com/openproject-gmbh/sites/6813558755b0b20ed373594d/exceptions/incidents/687>

  - Message:
    
      - `Nothing registered with reference :default_role_project_admin`
    
      - `Nothing registered with reference :default_type_task`

  - Backtrace:
    
      - app/seeders/source/seed\_data.rb:67 in Source::SeedData\#find\_reference

### What is the expected behavior?

  - There should be no errors.

  - Once the seeding has been done once, it should be skipped.

  - See <mention class="mention" data-id="62582" data-type="work_package" data-text="#62582">#62582</mention> for more ideas / options.
