Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mattab opened this Issue · 9 comments

2 participants

@mattab
Owner

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
Collaborator

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

@robocoder
Collaborator

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

@mattab
Owner

See also message for less permissive rights #1833

@mattab
Owner

WE haven't received complaints recently, decreasing priority

@mattab
Owner

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
Owner

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
Owner

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
Owner

(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.
@mattab mattab added this to the 1.7.x - Piwik 1.7.1 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.