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

Matomo couldn't write to some directories #16706

Closed
SignificantAndroid opened this issue Nov 12, 2020 · 3 comments
Closed

Matomo couldn't write to some directories #16706

SignificantAndroid opened this issue Nov 12, 2020 · 3 comments
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@SignificantAndroid
Copy link

SignificantAndroid commented Nov 12, 2020

Today for some reason Matomo stopped working and issuing the following screen:

Matomo couldn't write to some directories (running as user 'apache').

Try to Execute the following commands on your server, to allow Write access on these directories:

chown -R apache:apache /var/www/html
find /var/www/html/tmp -type f -exec chmod 644 {} ;
find /var/www/html/tmp -type d -exec chmod 755 {} ;
find /var/www/html/tmp/assets -type f -exec chmod 644 {} ;
find /var/www/html/tmp/assets -type d -exec chmod 755 {} ;
find /var/www/html/tmp/cache -type f -exec chmod 644 {} ;
find /var/www/html/tmp/cache -type d -exec chmod 755 {} ;
find /var/www/html/tmp/logs -type f -exec chmod 644 {} ;
find /var/www/html/tmp/logs -type d -exec chmod 755 {} ;
find /var/www/html/tmp/tcpdf -type f -exec chmod 644 {} ;
find /var/www/html/tmp/tcpdf -type d -exec chmod 755 {} ;
find /var/www/html/tmp/templates_c -type f -exec chmod 644 {} ;
find /var/www/html/tmp/templates_c -type d -exec chmod 755 {} ;

I have run these and also tried upping to 777 but had no luck getting back in.

As far as I'm aware no updates happened to matomo or the server in the past 24 hours to make this an issue.

As you can see bellow the tmp folder has the right permissions:
drwxr-xr-x. 10 apache apache 4096 May 13 2020 tmp
drwxr-xr-x. 2 apache apache 4096 Nov 12 08:05 assets
drwxr-xr-x. 3 apache apache 4096 May 13 2020 cache
drwxr-xr-x. 2 apache apache 4096 Nov 12 08:05 climulti
-rw-r--r--. 1 apache apache 20 Nov 12 08:05 index.htm
-rw-r--r--. 1 apache apache 20 Nov 12 08:05 index.php
drwxr-xr-x. 3 apache apache 4096 Nov 4 02:06 latest
drwxr-xr-x. 2 apache apache 4096 Jul 22 13:00 logs
drwxr-xr-x. 2 apache apache 4096 May 13 2020 sessions
drwxr-xr-x. 2 apache apache 4096 May 13 2020 tcpdf
drwxr-xr-x. 189 apache apache 4096 Nov 12 00:16 templates_c

Any ideas?

@Findus23
Copy link
Member

Hi,

Just as a wild guess: Is there disk space left on the server or any other reason a write to disk might fail?

@SignificantAndroid
Copy link
Author

Hi,

Just as a wild guess: Is there disk space left on the server or any other reason a write to disk might fail?

Might be onto something there. Will take a look.

@SignificantAndroid
Copy link
Author

Hi,

Just as a wild guess: Is there disk space left on the server or any other reason a write to disk might fail?

Nope, only 14% used of 100+ GB. I'm going to try rebooting again and I'll do some chkdsk to see if there are any issues. But at the moment I don't think there is.

@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants