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

Closed
Tennyleaz opened this issue Aug 2, 2019 · 1 comment
Closed

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

Tennyleaz opened this issue Aug 2, 2019 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Tennyleaz
Copy link

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 10.10.12.13:53169] Error in Matomo: Unable to write in the cache directory (/var/www/matomo/public_html/tmp/templates_c/73)., referer: http://10.10.1.2/index.php?module=UserCountry&action=adminIndex&idSite=1&period=day&date=yesterday&showtitle=1&random=8909
[Fri Aug 02 11:09:36.196121 2019] [php7:notice] [pid 26605] [client 10.10.12.13:53177] Error in Matomo: Unable to write in the cache directory (/var/www/matomo/public_html/tmp/templates_c/73)., referer: http://10.10.1.2/index.php?module=CoreAdminHome&action=home&idSite=1&period=day&date=yesterday\

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

@tsteur
Copy link
Member

tsteur 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: https://forum.matomo.org 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 as completed Aug 2, 2019
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants