Defect #30437

db upgrade /Validation failed: Name has already been taken/

Added by SOE Redmine over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Invalid Affected version:4.0.0


sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found

  Redmine version                4.0.0.stable
  Ruby version                   2.5.3-p105 (2018-10-18) [x86_64-linux]
  Rails version                  5.2.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
  Subversion                     1.8.10
  Git                            2.1.4
Redmine plugins:
  client_config                  0.0.1

Dear All!

I update the redmine from:
3.1.2 stable to 4.0.0

I removed all of the custom plugins from the new redmine's plugins directory.
After database update command a i got this: "bundle install --without development test rmagick"

== 20170418090031 AddViewNewsToAllExistingRoles: migrating ====================
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Validation failed: Name has already been taken

Validation failed.txt Magnifier (12.5 KB) SOE Redmine, 2019-01-15 15:22


#1 Updated by Matt V over 3 years ago

I found your issue while searching for a solution to my redmine upgrade problem (3.4.8.stable.17840 -> 4.0.1)

Unfortunately I did not receive the same error as you but I'd advise you to upgrade your redmine including all steps so that you end up with the last 3.4 version (3.4.8). As 3.1 is very far away from 4.0 I'd suggest that you make a fresh install of redmine 4.0.

Kind Regards,

#2 Updated by SOE Redmine over 3 years ago


Thank you for the suggestion. I found the problem. In the database there were rows starts with "Non Member" Roles. I had to delete these rows, and the db upgrade finished without error.

So i could upgrade from 3.1.2 to 4.0.1 in one step.

Best regards,

#3 Updated by SOE Redmine over 3 years ago

  • Status changed from New to Resolved

#4 Updated by Marius BALTEANU over 3 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Thank you all for your feedback. I'm closing this ticket.

#5 Updated by Marius BALTEANU over 3 years ago

  • Description updated (diff)

Also available in: Atom PDF