<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot;]]></title><description><![CDATA[<p dir="auto">I updated my Matomo package as 4.0.0 was pushed out today, however upon upgrading I ran into this message and could not login as the login page wasn't even loading due to this error:</p>
<pre><code>The directory "/app/code/tmp/cache/tracker/" does not exist and could not be created.
</code></pre>
<p dir="auto">It seems that 4.0.0 may need a new directory created that doesn't yet exist and since it's in app/code it's not able to create it either.</p>
<p dir="auto">I've rolled back my install to the version prior from backup and all is well again. Will need to try to fix this before upgrading to 4.0.0.</p>
<p dir="auto">Has anyone else run into this issue with Matomo 4.0.0? Is it just me?</p>
]]></description><link>https://forum.cloudron.io/topic/3800/issue-with-matomo-4-0-0-package-update-the-directory-app-code-tmp-cache-tracker-does-not-exist-and-could-not-be-created</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 06:10:28 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3800.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Nov 2020 04:53:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 07:43:35 GMT]]></title><description><![CDATA[<p dir="auto">Ran a test but will do a final switchover tomorrow, but for reference for anyone who comes across this in the future, it's as simple as these steps to migrate to a new Matomo instance (based on my initial test tonight) (steps mostly taken from <a href="https://docs.cloudron.io/guides/import-mysql/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/import-mysql/</a> and applied to Matomo):</p>
<ol>
<li>In the Terminal of the original Matomo app instance, run this command: <code>mysqldump -h${CLOUDRON_MYSQL_HOST} -u${CLOUDRON_MYSQL_USERNAME} -p${CLOUDRON_MYSQL_PASSWORD} --single-transaction --routines --triggers ${CLOUDRON_MYSQL_USERNAME} &gt; /tmp/matomo-mysqldump.sql</code></li>
<li>Download from the /tmp directory the matomo-mysqldump.sql file.</li>
<li>Deploy a new instance of Matomo (on a new domain of course for now)</li>
<li>Put the new instance of Matomo into Recovery Mode and then enter the Terminal and run this command to clear out the database (a clean start): <code>mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -Nse 'show tables' | while read table; do mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -e "SET FOREIGN_KEY_CHECKS = 0; drop table $table"; done</code></li>
<li>Upload the matomo-mysqldump.sql file that had been downloaded from step 3 above to /tmp directory on new Matomo instance, then run this command to import the database: <code>mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} &lt; /tmp/matomo-mysqldump.sql</code></li>
<li>Restart the app instance. Test, and then move old Matomo instance to a new domain, and put new Matomo instance on old domain so that website analytic agents don't need to be updated to any new domain. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";-)" alt="😉" /> Adapt to your needs as necessary though.</li>
</ol>
]]></description><link>https://forum.cloudron.io/post/20092</link><guid isPermaLink="true">https://forum.cloudron.io/post/20092</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 07:43:35 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sun, 29 Nov 2020 18:33:53 GMT]]></title><description><![CDATA[<p dir="auto">Okay so after multiple file integrity issues ("X does not exist"), I opted to install a new Matomo instance, and migrated the data from old to new. It seems to be working well and passes all system checks now. I think this can be marked resolved. I still don't know how it ever got into that state, but it's good again. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/20114</link><guid isPermaLink="true">https://forum.cloudron.io/post/20114</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sun, 29 Nov 2020 18:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 07:43:35 GMT]]></title><description><![CDATA[<p dir="auto">Ran a test but will do a final switchover tomorrow, but for reference for anyone who comes across this in the future, it's as simple as these steps to migrate to a new Matomo instance (based on my initial test tonight) (steps mostly taken from <a href="https://docs.cloudron.io/guides/import-mysql/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/import-mysql/</a> and applied to Matomo):</p>
<ol>
<li>In the Terminal of the original Matomo app instance, run this command: <code>mysqldump -h${CLOUDRON_MYSQL_HOST} -u${CLOUDRON_MYSQL_USERNAME} -p${CLOUDRON_MYSQL_PASSWORD} --single-transaction --routines --triggers ${CLOUDRON_MYSQL_USERNAME} &gt; /tmp/matomo-mysqldump.sql</code></li>
<li>Download from the /tmp directory the matomo-mysqldump.sql file.</li>
<li>Deploy a new instance of Matomo (on a new domain of course for now)</li>
<li>Put the new instance of Matomo into Recovery Mode and then enter the Terminal and run this command to clear out the database (a clean start): <code>mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -Nse 'show tables' | while read table; do mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -e "SET FOREIGN_KEY_CHECKS = 0; drop table $table"; done</code></li>
<li>Upload the matomo-mysqldump.sql file that had been downloaded from step 3 above to /tmp directory on new Matomo instance, then run this command to import the database: <code>mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} &lt; /tmp/matomo-mysqldump.sql</code></li>
<li>Restart the app instance. Test, and then move old Matomo instance to a new domain, and put new Matomo instance on old domain so that website analytic agents don't need to be updated to any new domain. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";-)" alt="😉" /> Adapt to your needs as necessary though.</li>
</ol>
]]></description><link>https://forum.cloudron.io/post/20092</link><guid isPermaLink="true">https://forum.cloudron.io/post/20092</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 07:43:35 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 06:14:58 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm when I deploy a fresh Matomo instance, it doesn't have the issue of the missing index.html file. No idea why my instance seems to be running into multiple issues with file integrity, but I'm perhaps going to check next to see if I can migrate the data from one to a new instance so I know it's in a cleaner state at that point.</p>
]]></description><link>https://forum.cloudron.io/post/20090</link><guid isPermaLink="true">https://forum.cloudron.io/post/20090</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 06:14:58 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 06:04:39 GMT]]></title><description><![CDATA[<p dir="auto">Actually, I get a different but possibly related error? I went into the System Check and see one error there now about another missing file on the File Integrity line:</p>
<pre><code>Errors below may be due to a partial or failed upload of Matomo files.
--&gt; Try to reupload all the Matomo files in BINARY mode. &lt;--

Missing file: /app/code/misc/user/index.html
</code></pre>
<p dir="auto">Does anyone else see that message too in the System Check, or is it just me again? lol</p>
<p dir="auto">Here's what's in the directory when I check in on it (it's definitely missing the index.html file):</p>
<pre><code>root@b11704ef-8d66-4b9c-a43b-57483d5ce25b:/app/code/misc/user# ls -alh
total 96K
drwxr-xr-x 2 www-data www-data 4.0K Nov 27 02:52 .
drwxr-xr-x 3 www-data www-data 4.0K Nov 27 02:52 ..
-rw-r--r-- 1 www-data www-data 1.2K Nov 28 05:41 .htaccess
-rw-r--r-- 1 www-data www-data 1.4K Nov 27 02:52 favicon.png
-rw-r--r-- 1 www-data www-data 9.3K Nov 27 02:52 logo-header.png
-rw-r--r-- 1 www-data www-data  65K Nov 27 02:52 logo.png
</code></pre>
]]></description><link>https://forum.cloudron.io/post/20089</link><guid isPermaLink="true">https://forum.cloudron.io/post/20089</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 06:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 05:46:11 GMT]]></title><description><![CDATA[<p dir="auto">The repair seemed to work. Unsure why I had to do this though when others didn't, not sure what's special about my install, but it seems to be working now. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> Thank you for the help!</p>
]]></description><link>https://forum.cloudron.io/post/20088</link><guid isPermaLink="true">https://forum.cloudron.io/post/20088</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 05:46:11 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Sat, 28 Nov 2020 05:42:28 GMT]]></title><description><![CDATA[<p dir="auto">Ran into the same issue, trying to repair now.</p>
]]></description><link>https://forum.cloudron.io/post/20087</link><guid isPermaLink="true">https://forum.cloudron.io/post/20087</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sat, 28 Nov 2020 05:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 18:12:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> So, to get out of this. After update, if it fails, repair the app and then go to terminal and create the directory "mkdir -p /run/matomo/tmp/cache/tracker" and then run '/app/pkg/start.sh'.</p>
]]></description><link>https://forum.cloudron.io/post/20058</link><guid isPermaLink="true">https://forum.cloudron.io/post/20058</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 27 Nov 2020 18:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 17:50:01 GMT]]></title><description><![CDATA[<p dir="auto">I will try the upgrade again later today and let you know. I anticipate the same issue but if it happens again I’ll be sure to grab the full logs from the app too before I restore from backup.</p>
]]></description><link>https://forum.cloudron.io/post/20055</link><guid isPermaLink="true">https://forum.cloudron.io/post/20055</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Fri, 27 Nov 2020 17:50:01 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 09:17:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> is this still an issue now or was it just temporary?</p>
]]></description><link>https://forum.cloudron.io/post/20043</link><guid isPermaLink="true">https://forum.cloudron.io/post/20043</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 27 Nov 2020 09:17:11 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 08:21:51 GMT]]></title><description><![CDATA[<p dir="auto">Our Matomo update to 4.0.0 on two Cloudrons went fine.</p>
<p dir="auto">However good to know: one instance has a database of 1.2G and it took quite some time (I guess 3 minutes on a 10 core/68GB) to update/convert the database. In the meanwhile the instance showed only a warning page that the database needs to be updated while it was actually already busy. I "knew" that because it was the second instance and the update/conversion of first instance (much smaller) went fine.</p>
]]></description><link>https://forum.cloudron.io/post/20042</link><guid isPermaLink="true">https://forum.cloudron.io/post/20042</guid><dc:creator><![CDATA[imc67]]></dc:creator><pubDate>Fri, 27 Nov 2020 08:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 06:07:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> said in <a href="/post/20037">Issue with Matomo 4.0.0 package update: "The directory "/app/code/tmp/cache/tracker/" does not exist and could not be created"</a>:</p>
<blockquote>
<p dir="auto">It seems that 4.0.0 may need a new directory created that doesn't yet exist and since it's in app/code it's not able to create it either.</p>
</blockquote>
<p dir="auto">The /app/code/tmp is already symlinked to /run/matomo/tmp. I checked a new install and it had this directory created (by matomo). Also, our <a href="http://cloudron.io" target="_blank" rel="noopener noreferrer nofollow ugc">cloudron.io</a>, matomo instance updated fine as well. I also deleted tracker directory and restarted the app. Matomo creates that directory again.</p>
<p dir="auto">Do you have the logs before this error message? Would be good to know where in the start up script it fails.</p>
]]></description><link>https://forum.cloudron.io/post/20039</link><guid isPermaLink="true">https://forum.cloudron.io/post/20039</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 27 Nov 2020 06:07:17 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with Matomo 4.0.0 package update: &quot;The directory &quot;&#x2F;app&#x2F;code&#x2F;tmp&#x2F;cache&#x2F;tracker&#x2F;&quot; does not exist and could not be created&quot; on Fri, 27 Nov 2020 05:40:55 GMT]]></title><description><![CDATA[<p dir="auto">This looks like a config &amp; packaging bug.</p>
<p dir="auto">/tmp reference should be configured appropriately.</p>
]]></description><link>https://forum.cloudron.io/post/20038</link><guid isPermaLink="true">https://forum.cloudron.io/post/20038</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 27 Nov 2020 05:40:55 GMT</pubDate></item></channel></rss>