Project

General

Profile

Actions

Defect #30437

closed

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

Added by SOE Redmine about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

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

Environment:
  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
SCM:
  Subversion                     1.8.10
  Git                            2.1.4
  Filesystem
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

Files

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

Updated by Matt V about 5 years ago

hi!
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,
Matt

Actions #2

Updated by SOE Redmine about 5 years ago

Hi!

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,
T

Actions #3

Updated by SOE Redmine about 5 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Marius BĂLTEANU about 5 years ago

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

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

Actions #5

Updated by Marius BĂLTEANU about 5 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF