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

Check that chmod commands are given when auto update missing permissions #1590

Closed
mattab opened this issue Aug 15, 2010 · 9 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Aug 15, 2010

I haven't verified yet, but have seen a few support requests which say that the auto update is not giving right feedback about which folders should be writable for the auto update to work.

I think the command should be a recursive writable chmod and chown on the main piwik/ folder.

eg http://forum.piwik.org/index.php?showtopic=14251

@robocoder
Copy link
Contributor

My fault. I added a mini-check and the warning I gave (when suppressing the one-click update button) isn't very informative.

@robocoder
Copy link
Contributor

Separate issue, but the aforementioned forum post is covered by #1295.

@mattab
Copy link
Member Author

mattab commented Nov 24, 2010

See also message for less permissive rights #1833

@mattab
Copy link
Member Author

mattab commented Jun 7, 2011

WE haven't received complaints recently, decreasing priority

@mattab
Copy link
Member Author

mattab commented Jul 5, 2011

Note that it seems other permissions are not necessarily checked, for example see this report: http://forum.piwik.org/read.php?2,78570,page=1#msg-78608

[2011-06-26 23:21:01] [9caab5b8] [11.58 Mb] LOAD DATA INFILE failed... 
Error was SQLSTATE[HY000]: General error: 13 Can't get stat of '/var/piwik/tmp/assets/piwik_archive_blob_2011_06-8da10daa4e8b4d7faed083fa25b8cecc.csv' (Errcode: 2)<br/> 

which was fixed with chmod 0660 tmp/assets

@mattab
Copy link
Member Author

mattab commented Jul 11, 2011

There is also a recurrent issue that templates are not automatically deleted on update, probably due to a permission issue. see for example: http://forum.piwik.org/read.php?2,79252

@mattab
Copy link
Member Author

mattab commented Aug 8, 2011

I just tried on a fresh piwik install, and saw message "Piwik is unable to overwrite your current installation. You can either fix the directory/file permissions, or download the package and install version 1.5.1 manually"

without explanations on permission, MUSTFIX + easy

@mattab
Copy link
Member Author

mattab commented Nov 3, 2011

Yes another report: http://forum.piwik.org/read.php?2,82647

@mattab
Copy link
Member Author

mattab commented Feb 26, 2012

(In [5920]) Fixes #1590

  • Now displaying commands to run when the auto update is missing permissions
  • General change: now we recommend NOT to chmod 777 but to chmod 755 whenever such message is displayed in Piwik. Added the chown command line since chmod 755 would only work when files are owned by the web server user.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants