Project

General

Profile

Actions

Bug #13784

closed

Failed foreman-rake-db:migrade and seed during katello-installation with db_type=mysql

Added by Denis Müller almost 9 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
hard
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello-mysql.nodes.rto.de]: Could not evaluate: Proxy katello-mysql.nodes.rto.de cannot be registered (500 Internal Server Error): N/A

When im tying to log in ober the web interface, im getting an error:
Warning!
undefined method `find_by_lower_login' for #<Class:0x00000008707be8>


Files

katello-installer.log katello-installer.log 1.44 MB Denis Müller, 02/18/2016 04:09 AM
Actions #1

Updated by Denis Müller almost 9 years ago

After doing foreman-rake db:migrate manually:

AddForeignKeysEngine: migrating =========================================
-- add_foreign_key("katello_activation_keys", "katello_content_views", {:column=>"content_view_id", :name=>"activation_keys_content_view_id_fk"})
rake aborted!
An error has occurred, all later migrations canceled:

Mysql2::Error: Can't create table 'foreman.#sql-b26_615' (errno: 121): ALTER TABLE `katello_activation_keys` ADD CONSTRAINT `activation_keys_content_view_id_fk` FOREIGN KEY (`content_view_id`) REFERENCES `katello_content_views`(id)

Actions #2

Updated by Eric Helms almost 9 years ago

  • Status changed from New to Rejected
  • Translation missing: en.field_release changed from 113 to 114

Katello does not support MySQL as a database backend. There is an open issue to enable this at some point in the future.

Actions #3

Updated by Jonathon Turel over 4 years ago

  • Target version changed from Katello Backlog to Katello Recycle Bin
Actions

Also available in: Atom PDF