Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to write in the cache directory" error #14723

Tennyleaz opened this issue Aug 2, 2019 · 1 comment


Copy link

commented Aug 2, 2019

I'm using Matomo 3.11.0, on ubuntu 18.04, php 7.2.
In some rare occasions, the web interface shows an error Unable to write in the cache directory in one of the tmp directories, ex: public_html/tmp/templates_c/73.

My apache log looks like:

[Fri Aug 02 11:09:19.824045 2019] [php7:notice] [pid 26971] [client] Error in Matomo: Unable to write in the cache directory (/var/www/matomo/public_html/tmp/templates_c/73)., referer:
[Fri Aug 02 11:09:36.196121 2019] [php7:notice] [pid 26605] [client] Error in Matomo: Unable to write in the cache directory (/var/www/matomo/public_html/tmp/templates_c/73)., referer:\

I have to manually change owner of the templates_c/... directory.
Any suggestions?


This comment has been minimized.

Copy link

commented Aug 2, 2019

@Tennyleaz sorry this sounds like an issue with your server where we can't really help. We wouldn't change the permission to someone else so likely something on your server is changing it. For example if you delete some files manually or so. I suggest you ask in the forum or search there: other people might have had similar issues before. Best to give them more details like what operating system, what hoster you are with, etc.

@tsteur tsteur closed this Aug 2, 2019

@tsteur tsteur added the answered label Aug 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.