<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gratiel.com/index.php?action=history&amp;feed=atom&amp;title=NextCloud%3A_Heroku%3A_Install%3A_Patching_NextCloud</id>
	<title>NextCloud: Heroku: Install: Patching NextCloud - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gratiel.com/index.php?action=history&amp;feed=atom&amp;title=NextCloud%3A_Heroku%3A_Install%3A_Patching_NextCloud"/>
	<link rel="alternate" type="text/html" href="https://wiki.gratiel.com/index.php?title=NextCloud:_Heroku:_Install:_Patching_NextCloud&amp;action=history"/>
	<updated>2026-10-14T20:55:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.gratiel.com/index.php?title=NextCloud:_Heroku:_Install:_Patching_NextCloud&amp;diff=133&amp;oldid=prev</id>
		<title>Ewanchic: Created page with &quot; === Errors === * &lt;span style=&quot;color:#e9322d&quot;&gt;Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentatio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gratiel.com/index.php?title=NextCloud:_Heroku:_Install:_Patching_NextCloud&amp;diff=133&amp;oldid=prev"/>
		<updated>2019-09-01T04:00:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Errors === * &amp;lt;span style=&amp;quot;color:#e9322d&amp;quot;&amp;gt;Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentatio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== Errors ===&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#e9322d&amp;quot;&amp;gt;Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation. (List of invalid files… / Rescan…)&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click the list of Invalid files. My example:&lt;br /&gt;
&lt;br /&gt;
 Technical information&lt;br /&gt;
 =====================&lt;br /&gt;
 The following list covers which files have failed the integrity check. Please read&lt;br /&gt;
 the previous linked documentation to learn more about the errors and how to fix&lt;br /&gt;
 them.&lt;br /&gt;
 &lt;br /&gt;
 Results&lt;br /&gt;
 =======&lt;br /&gt;
 - gallery&lt;br /&gt;
 	- FILE_MISSING&lt;br /&gt;
 		- .gitmodules&lt;br /&gt;
 - files_external&lt;br /&gt;
 	- INVALID_HASH&lt;br /&gt;
 		- lib/Lib/Storage/AmazonS3.php&lt;br /&gt;
 &lt;br /&gt;
 Raw output&lt;br /&gt;
 ==========&lt;br /&gt;
 Array&lt;br /&gt;
 (&lt;br /&gt;
     [gallery] =&amp;gt; Array&lt;br /&gt;
         (&lt;br /&gt;
             [FILE_MISSING] =&amp;gt; Array&lt;br /&gt;
                 (&lt;br /&gt;
                     [.gitmodules] =&amp;gt; Array&lt;br /&gt;
                         (&lt;br /&gt;
                             [expected] =&amp;gt; 2ff42782d6cd17d3d172f3c367c7c9b14737242bd2a07ac08fd38ec00e2ec0e5abd12fd6d7dc822c226ffa2500b610c4468cbd96793bc8a3fe54744a1f7259e9&lt;br /&gt;
                             [current] =&amp;gt; &lt;br /&gt;
                         )&lt;br /&gt;
 &lt;br /&gt;
                 )&lt;br /&gt;
 &lt;br /&gt;
         )&lt;br /&gt;
 &lt;br /&gt;
     [files_external] =&amp;gt; Array&lt;br /&gt;
         (&lt;br /&gt;
             [INVALID_HASH] =&amp;gt; Array&lt;br /&gt;
                 (&lt;br /&gt;
                     [lib/Lib/Storage/AmazonS3.php] =&amp;gt; Array&lt;br /&gt;
                         (&lt;br /&gt;
                             [expected] =&amp;gt; 730faa8c9d4212f6940ae68c3cbf95297d7875ba753e5ea7d6103481e3eb6327058ba4efd5134a0a21e0f1727d2d88b6acd62ea20a50f6ecdb56ca5fe14a13c1&lt;br /&gt;
                             [current] =&amp;gt; 4fc677f9e6586f856a58b48f31bb1fb8022383990875379ef68dc502967440cfefd13a611e7993fab2294108f6a6ab35033f708902d7f9fd344e01f10e729af2&lt;br /&gt;
                         )&lt;br /&gt;
 &lt;br /&gt;
                 )&lt;br /&gt;
 &lt;br /&gt;
         )&lt;br /&gt;
 &lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
=== HTTPS ===&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#eca700&amp;quot;&amp;gt;Accessing site insecurely via HTTP. You are strongly adviced to set up your server to require HTTPS instead, as described in the security tips ↗.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WebDAVs ===&lt;br /&gt;
&lt;br /&gt;
* Your web server is not properly set up to resolve &amp;quot;/.well-known/caldav&amp;quot;. Further information can be found in the documentation.&lt;br /&gt;
* Your web server is not properly set up to resolve &amp;quot;/.well-known/carddav&amp;quot;. Further information can be found in the documentation.&lt;br /&gt;
&lt;br /&gt;
=== Database Fix ===&lt;br /&gt;
* Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running 'occ db:convert-filecache-bigint' those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this.&lt;br /&gt;
** filecache.mtime&lt;br /&gt;
** filecache.storage_mtime&lt;br /&gt;
&lt;br /&gt;
Log into bash app&lt;br /&gt;
 heroku ps:exec --app infinite-lowlands-38883&lt;br /&gt;
&lt;br /&gt;
Navigate to code and run DB fix:&lt;br /&gt;
 ~ $ cd server/&lt;br /&gt;
 &lt;br /&gt;
Temporarily replace the config/config.php with al the environmental variable replaced.&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 $CONFIG = array (&lt;br /&gt;
   'instanceid' =&amp;gt; 'oczm2c0yitlu',&lt;br /&gt;
   'objectstore' =&amp;gt;&lt;br /&gt;
   array (&lt;br /&gt;
     'class' =&amp;gt; '\\OC\\Files\\ObjectStore\\S3',&lt;br /&gt;
     'arguments' =&amp;gt;&lt;br /&gt;
     array (&lt;br /&gt;
       'bucket' =&amp;gt; $_SERVER['S3_BUCKET'],&lt;br /&gt;
       'autocreate' =&amp;gt; true,&lt;br /&gt;
       'key' =&amp;gt; $_SERVER['S3_KEY'],&lt;br /&gt;
       'secret' =&amp;gt; $_SERVER['S3_SECRET'],&lt;br /&gt;
       'use_ssl' =&amp;gt; true,&lt;br /&gt;
       'region' =&amp;gt; $_SERVER['S3_REGION'],&lt;br /&gt;
       'use_path_style' =&amp;gt; false,&lt;br /&gt;
     ),&lt;br /&gt;
   ),&lt;br /&gt;
   'memcache.local' =&amp;gt; '\\OC\\Memcache\\APCu',  &lt;br /&gt;
 &lt;br /&gt;
   'passwordsalt' =&amp;gt; $_SERVER['PASSWORD_SALT'],&lt;br /&gt;
   'secret' =&amp;gt; $_SERVER['SECRET'],&lt;br /&gt;
   'trusted_domains' =&amp;gt; &lt;br /&gt;
   array (&lt;br /&gt;
     0 =&amp;gt; 'infinite-lowlands-38883.herokuapp.com',&lt;br /&gt;
   ),&lt;br /&gt;
   'datadirectory' =&amp;gt; $_SERVER['DATA_DIRECTORY'],&lt;br /&gt;
   'dbtype' =&amp;gt; 'pgsql',&lt;br /&gt;
   'version' =&amp;gt; '15.0.8.1',&lt;br /&gt;
   'overwrite.cli.url' =&amp;gt; 'http://infinite-lowlands-38883.herokuapp.com',&lt;br /&gt;
   'dbname' =&amp;gt; $_SERVER['DB_NAME'],&lt;br /&gt;
   'dbhost' =&amp;gt; $_SERVER['DB_HOST'],&lt;br /&gt;
   'dbport' =&amp;gt; '5432',&lt;br /&gt;
   'dbtableprefix' =&amp;gt; 'oc_',&lt;br /&gt;
   'dbuser' =&amp;gt; $_SERVER['DB_USER'],&lt;br /&gt;
   'dbpassword' =&amp;gt; $_SERVER['DB_PASSWORD'],&lt;br /&gt;
   'installed' =&amp;gt; true,  &lt;br /&gt;
   'log_type' =&amp;gt; 'syslog',&lt;br /&gt;
   'logfile' =&amp;gt; '',&lt;br /&gt;
   'loglevel' =&amp;gt; '1',&lt;br /&gt;
   'logdateformat' =&amp;gt; 'F d, Y H:i:s',  &lt;br /&gt;
   'twofactor_enforced' =&amp;gt; 'true',&lt;br /&gt;
   'twofactor_enforced_groups' =&amp;gt;&lt;br /&gt;
   array (&lt;br /&gt;
   ),&lt;br /&gt;
   'twofactor_enforced_excluded_groups' =&amp;gt;&lt;br /&gt;
   array (&lt;br /&gt;
   ),  &lt;br /&gt;
 );&lt;br /&gt;
&lt;br /&gt;
Then it will run:&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#729FCF&amp;quot;&amp;gt;~/server&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#8AE234&amp;quot;&amp;gt;$&amp;lt;/span&amp;gt; php occ db:convert-filecache-bigint&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#C4A000&amp;quot;&amp;gt;The current PHP memory limit is below the recommended value of 512MB.&lt;br /&gt;
 Following columns will be updated:&amp;lt;/span&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 * filecache.mtime&lt;br /&gt;
 * filecache.storage_mtime &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#C4A000&amp;quot;&amp;gt;This can take up to hours, depending on the number of files in your instance!&amp;lt;/span&amp;gt;&lt;br /&gt;
 Continue with the conversion (y/n)? [n] y&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#729FCF&amp;quot;&amp;gt;~/server&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#8AE234&amp;quot;&amp;gt;$&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Heroku system.&lt;br /&gt;
 heroku restart --app infinite-lowlands-38883&lt;br /&gt;
&lt;br /&gt;
== Return ==&lt;br /&gt;
* [[NextCloud: Heroku: Install]]&lt;br /&gt;
* [[NextCloud: Heroku]]&lt;br /&gt;
* [[NextCloud]]&lt;br /&gt;
* [[Public]]&lt;/div&gt;</summary>
		<author><name>Ewanchic</name></author>
		
	</entry>
</feed>