Apt update/upgrade foreman 3.11.1-1+ubuntu2004 - Service unavailable ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system

hi all,

after apt update & apt upgrade I get below error:

**Service unavailable** ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.

any idea why & how can I solve it ?

Foreman and Proxy versions: foreman 3.11 , foreman-proxy 3.11
Distribution and version: Ubuntu 20.04.4 LTS

thanks in advance
Neeloj

Did you update Foreman without running foreman-installer?

Hopefully a foreman-installer run will resolve this.

yes I run normal for other packges too. apt update/upgrade.

Should I disable that ? or should I check while apt update if there are foreman packages I should run first foreman-installer ?

which one is best way to avoid this in the future ?

I solve it now with :

 foreman-rake db:migrate
== 20240613133735 ChangeOsDefaultPasswordHashToSha512: migrating ==============
-- change_column_default(:operatingsystems, :password_hash, "SHA512")
   -> 0.0411s
== 20240613133735 ChangeOsDefaultPasswordHashToSha512: migrated (0.0417s) =====

and then
systemctl restart foreman

whats the best way to install the upgrades? @jeremylenz