Service unavailable ERF64-6496 - There are migrations pending in the system.

I just updated my Foreman server and reboot, then this happened when I accessed the web console: Service unavailable ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system. This was the first time I’ve seen this message, and possibly because I haven’t done the update frequently enough. Fortunately, according to this blog post, it should be relatively easy to fix. [root@foreman ~]# sudo foreman-rake db:migrate API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. == 20210525144427 EnforceUniqueTemplates: migrating =========================== -- add_index(:templates, [:type, :name], {:unique=>true}) -> 0.0232s == 20210525144427 EnforceUniqueTemplates: migrated (0.0341s) ================== == 20210610131920 RestrictSendmailLocation: migrating ========================= == 20210610131920 RestrictSendmailLocation: migrated (0.0016s) ================ [root@foreman ~]# sudo foreman-rake db:seed API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. User with login admin already exists, not seeding as admin. As suggested, I also ran apipie:cache rake task to generate cache. ...

June 29, 2021 · 2 min · 342 words · kenno