<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Foreman-Rake on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/foreman-rake/</link>
    <description>Recent content in Foreman-Rake on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Jun 2021 20:53:35 +1000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/foreman-rake/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Service unavailable ERF64-6496 - There are migrations pending in the system.</title>
      <link>https://blog.khmersite.net/p/foreman-erf64-6496-there-are-migrations-pending/</link>
      <pubDate>Tue, 29 Jun 2021 20:53:35 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/foreman-erf64-6496-there-are-migrations-pending/</guid>
      <description>&lt;p&gt;I just updated my Foreman server and reboot, then this happened when I accessed the web console:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Service unavailable ERF64-6496 [Foreman::MaintenanceException]: There are migrations pending in the system.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This was the first time I&amp;rsquo;ve seen this message, and possibly because I haven&amp;rsquo;t done the update frequently enough.
Fortunately, according to &lt;a href=&#34;https://archyslife.blogspot.com/2020/06/foreman-erf64-6496-foremanmaintenanceex.html&#34;&gt;this blog post&lt;/a&gt;, it should be relatively easy to fix.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[root@foreman ~]# sudo foreman-rake db:migrate
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;== 20210525144427 EnforceUniqueTemplates: migrating ===========================
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-- add_index(:templates, [:type, :name], {:unique=&amp;gt;true})
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   -&amp;gt; 0.0232s
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;== 20210525144427 EnforceUniqueTemplates: migrated (0.0341s) ==================
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;== 20210610131920 RestrictSendmailLocation: migrating =========================
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;== 20210610131920 RestrictSendmailLocation: migrated (0.0016s) ================
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[root@foreman ~]# sudo foreman-rake db:seed
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;User with login admin already exists, not seeding as admin.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;As suggested, I also ran &lt;code&gt;apipie:cache&lt;/code&gt; rake task to generate cache.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
