Project

General

Profile

Bug #31670

Command exceeded timeout while Installer executes foreman-rake db:migrate

Added by Evgeni Golov about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Foreman modules
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1908237

Installer Clone of the BZ, as the installer should not timeout after 5 minutes.

During an upgrade of 6.7.5 to 6.8.2 (snap 2) the db:migrate step in the installer fails, as it doesn\'t finish in 5 minutes (which is the default timeout for Puppet exec).

[DEBUG 2020-12-04T13:14:09 main] Exec[foreman-rake-db:migrate](provider=posix): Executing \'/usr/sbin/foreman-rake db:migrate\'
[DEBUG 2020-12-04T13:14:09 main] Executing with uid=foreman: \'/usr/sbin/foreman-rake db:migrate\'
[ERROR 2020-12-04T13:19:09 main] Command exceeded timeout

One interesting detail is that Puppet does NOT kill the process, so the db:migrate is running in the background and tries to re-run the installer will result in other, confusing errors (ActiveRecord::ConcurrentMigrationError, Foreman::PermissionMissingException -- the later seems to happen on the "unless" command)

The migration run took roughtly 6 hours on my setup, and I could finish the upgrade just fine after that.

the installer should not assume db:migrate can finish in 5 minutes, this is not realistic.

Associated revisions

Revision 41f6efae (diff)
Added by Evgeni Golov about 2 years ago

Fixes #31670 - don't timeout when running db:migrate

Revision f2075f13 (diff)
Added by Evgeni Golov about 2 years ago

Refs #31670 - don't timeout DB migrations

History

#1 Updated by The Foreman Bot about 2 years ago

  • Assignee set to Evgeni Golov
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-foreman/pull/915 added

#2 Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/theforeman/puppet-pulpcore/pull/163 added

#3 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 2.4.0 added

#4 Updated by Evgeni Golov about 2 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Amit Upadhye about 2 years ago

  • Category set to Foreman modules
  • Subject changed from Command exceeded timeout while Installer executes foreman-rake db:migrate to Command exceeded timeout while Installer executes foreman-rake db:migrate

Also available in: Atom PDF