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

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Issues with duplicate key value violations

Issues with duplicate key value violations

Added by Rick Green over 4 years ago

Ever since migrating to version 11, I have been having errors with duplicate key value violations.  I am at the current version (11.04, and I did run the openproject configure after the upgrade).  The latest key violation happened when attempting to create a new project.  The log entry is shown here: 

A search through the database for this index name returns the following:

Indeed, index 578 exists, and it is for the "budgets" of project_id is 28.  There are many indexes above 578, as well.  

What can be done to correct these indexing issues?  Is there a procedure to reset the indexing?


Replies (4)

RE: Issues with duplicate key value violations - Added by Rick Green over 4 years ago

I just upgraded to the latest 11.1 and reran openproject configure.  Still having the same problem.

RE: Issues with duplicate key value violations - Added by Rick Green over 4 years ago

Just upgraded to 11.1.1, and still have this issue.  This error shows up every time I attempt to create a new project.  On the OpenProject site, I get an error 500.  I am unable to add new projects as a result.

RE: Issues with duplicate key value violations - Added by Rick Green over 4 years ago

OK, so I went through the schema on the github page again to see how it was set up.  The problem seems to be in the public.enabled_modules_id_seq sequence.  The highest index was 694, so I issued a restart of the sequence to 700 and this corrected the problem.

The syntax of the postgresql code is: 

alter sequence public.enabled_modules_id_seq restart with 700;

RE: Issues with duplicate key value violations - Added by Max Mutzge over 4 years ago

Hi Rick, it's great that you found a fix for this! Thank you for sharing your process!

  • (1 - 4/4)
Loading...