Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Updated by Christophe Bliard 2 days ago

###

###
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 ##62582.

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/67c5518749a999507a2c1cef/exceptions/incidents/90)

* [https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/10](https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/10)

* 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 #62582 for more ideas / options.
??

Back

Loading...