Skip to main content

Foreman - ERF64-6496 [Foreman::MaintenanceException] after update

If you're updating foreman, it might happen that the update (in terms of packages) may run through successfully but leave foreman in a maintenance state. After an update, I hit this error:
ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system

This, however, is fairly easy to fix. First, try to fix it using foreman rake by migrating and seeding the db.
 [archy@katello ~]$ sudo foreman-rake db:migrate  
 [archy@katello ~]$ sudo foreman-rake db:seed  
If this doesn't work, you could always to the 'universal' fix for foreman.
 [archy@katello ~]$ sudo foreman-install --scenario katello --upgrade  
Ideally, you should've created a snapshot before updating your katello / foreman instance.
When using KVM, this can be done using virsh
 [root@hyv01 ~]# virsh snapshot-create --domain katello.archyslife.lan  
Feel free to comment and / or suggest a topic.

Comments