<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Nextcloud - Tag - Gene.Tech</title>
        <link>https://geneliu.itaghome.win/tags/nextcloud/</link>
        <description>Nextcloud - Tag - Gene.Tech</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>gene.liu@live.com (Gene Liu)</managingEditor>
            <webMaster>gene.liu@live.com (Gene Liu)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Sat, 26 Mar 2022 00:00:00 &#43;0000</lastBuildDate><atom:link href="https://geneliu.itaghome.win/tags/nextcloud/" rel="self" type="application/rss+xml" /><item>
    <title>Add Missing Indices After Nextcloud Upgrade</title>
    <link>https://geneliu.itaghome.win/2022-03-26-nextcloud/</link>
    <pubDate>Sat, 26 Mar 2022 00:00:00 &#43;0000</pubDate>
    <author>gene.liu@live.com (Gene Liu)</author>
    <guid>https://geneliu.itaghome.win/2022-03-26-nextcloud/</guid>
    <description><![CDATA[<h3 id="upgrade-nextcloud">Upgrade Nextcloud</h3>
<ol>
<li>Remove all other folders except <code>/config</code> and <code>/data</code> (due to an unsuccessful major version jump upgrade).</li>
<li>Upgrade one major version at a time (cannot jump upgrade two major versions).</li>
</ol>
<h3 id="system-warning-about-missing-indices">System Warning About Missing Indices</h3>
<div class="code-block code-line-numbers" style="counter-reset: code-block 0">
    <div class="code-header language-bash">
        <span class="code-title"><i class="arrow fas fa-angle-right" aria-hidden="true"></i></span>
        <span class="ellipses"><i class="fas fa-ellipsis-h" aria-hidden="true"></i></span>
        <span class="copy" title="Copy to clipboard"><i class="far fa-copy" aria-hidden="true"></i></span>
    </div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">kubectl <span class="nb">exec</span> -it -n nextcloud nextcloud-6864c47cf4-58vrl -- /bin/sh
</span></span><span class="line"><span class="cl"><span class="c1"># sudo -u www-data php occ db:add-missing-indices</span>
</span></span><span class="line"><span class="cl">/bin/sh: 1: sudo: not found
</span></span><span class="line"><span class="cl"><span class="c1"># su www-data</span>
</span></span><span class="line"><span class="cl">This account is currently not available.
</span></span><span class="line"><span class="cl"><span class="c1"># id</span>
</span></span><span class="line"><span class="cl"><span class="nv">uid</span><span class="o">=</span>0<span class="o">(</span>root<span class="o">)</span> <span class="nv">gid</span><span class="o">=</span>0<span class="o">(</span>root<span class="o">)</span> <span class="nv">groups</span><span class="o">=</span>0<span class="o">(</span>root<span class="o">)</span>,33<span class="o">(</span>www-data<span class="o">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># su www-data -s /bin/sh</span>
</span></span><span class="line"><span class="cl">$ php occ db:add-missing-indices
</span></span><span class="line"><span class="cl">Check indices of the share table.
</span></span><span class="line"><span class="cl">Check indices of the filecache table.
</span></span><span class="line"><span class="cl">Adding additional size index to the filecache table, this can take some time...
</span></span><span class="line"><span class="cl">Filecache table updated successfully.
</span></span><span class="line"><span class="cl">Adding additional size index to the filecache table, this can take some time...
</span></span><span class="line"><span class="cl">Filecache table updated successfully.
</span></span><span class="line"><span class="cl">Adding additional path index to the filecache table, this can take some time...
</span></span><span class="line"><span class="cl">Filecache table updated successfully.
</span></span><span class="line"><span class="cl">Check indices of the twofactor_providers table.
</span></span><span class="line"><span class="cl">Check indices of the login_flow_v2 table.
</span></span><span class="line"><span class="cl">Check indices of the whats_new table.
</span></span><span class="line"><span class="cl">Check indices of the cards table.
</span></span><span class="line"><span class="cl">Adding cards_abiduri index to the cards table, this can take some time...
</span></span><span class="line"><span class="cl">cards table updated successfully.
</span></span><span class="line"><span class="cl">Check indices of the cards_properties table.
</span></span><span class="line"><span class="cl">Check indices of the calendarobjects_props table.
</span></span><span class="line"><span class="cl">Check indices of the schedulingobjects table.
</span></span><span class="line"><span class="cl">Check indices of the oc_properties table.
</span></span><span class="line"><span class="cl">Adding properties_pathonly_index index to the oc_properties table, this can take some time...
</span></span><span class="line"><span class="cl">oc_properties table updated successfully.
</span></span><span class="line"><span class="cl">Check indices of the oc_jobs table.
</span></span><span class="line"><span class="cl">Adding job_lastcheck_reserved index to the oc_jobs table, this can take some time...
</span></span><span class="line"><span class="cl">oc_properties table updated successfully.
</span></span><span class="line"><span class="cl">$ <span class="nb">exit</span>
</span></span><span class="line"><span class="cl"><span class="c1"># exit</span></span></span></code></pre></div></div>]]></description>
</item>
</channel>
</rss>
