Project

General

Profile

Bug #13784

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

Added by Denis Müller over 3 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Installer
Target version:
Difficulty:
hard
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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>

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

History

#1 Updated by Denis Müller over 3 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)

#2 Updated by Eric Helms over 3 years ago

  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) 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.

Also available in: Atom PDF