Hello,
I am very late in my upgrades, I know…
Trying to upgrade Forman from 1.4 to 1.5 (with the intent of upgrading
to the lastest version 1.7 in the end), I get this :
foreman-rake tmp:cache:clear
foreman-rake tmp:sessions:clear
foreman-rake db:migrate
== CalculateCacheForUserRole: migrating
···
======================================
rake aborted!
An error has occurred, all later migrations canceled:
Validation failed: Owner has this role already
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
=> What should I do ?
Thanks
JM
–
Jean-michel BARBET | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet@subatech.in2p3.fr
Hello, I was rightfully pointed to my own precedent post :
https://groups.google.com/forum/?fromgroups#!topic/foreman-users/LFki47KzG7M
Indeed I still had a duplicate owner/role in the user_roles. After
removal of the duplicate, db:migrate succeeded and I did not encounter
other errors.
=> Now running 1.5. Will try to upgrade to 1.6 in a couple of weeks
as I will be off and prefer to confirm that there are no problems
before trying another upgrade.
JM
···
On 03/16/2015 10:14 AM, Jean-Michel Barbet wrote:
foreman-rake db:migrate
== CalculateCacheForUserRole: migrating
rake aborted!
An error has occurred, all later migrations canceled:
Validation failed: Owner has this role already
–
Jean-michel BARBET | Tel: +33 (0)2 51 85 84 86
Laboratoire SUBATECH Nantes France | Fax: +33 (0)2 51 85 84 79
CNRS-IN2P3/Ecole des Mines/Universite | E-Mail: barbet@subatech.in2p3.fr