Opened 4 years ago

Closed 2 years ago

#1590 closed Bug (fixed)

Check that chmod commands are given when auto update missing permissions

Reported by: matt Owned by:
Priority: major Milestone: 1.7.x - Piwik 1.7.1
Component: UI - UX (AngularJS, twig, less) Keywords:
Cc: Sensitive: no

Description

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

Change History (10)

comment:1 Changed 4 years ago by vipsoft (robocoder)

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

comment:2 Changed 4 years ago by vipsoft (robocoder)

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

comment:3 Changed 3 years ago by matt (mattab)

See also message for less permissive rights #1833

comment:4 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.5 - Piwik 1.5 to Feature requests

WE haven't received complaints recently, decreasing priority

comment:5 Changed 3 years ago by matt (mattab)

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

comment:6 Changed 3 years ago by matt (mattab)

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

comment:7 Changed 3 years ago by matt (mattab)

  • Milestone changed from Feature requests to 1.6 Piwik 1.6

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

comment:9 Changed 2 years ago by matt (mattab)

  • Milestone changed from 1.8 Piwik 1.8 to 1.6.x Piwik 1.6.x

comment:10 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(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.
Note: See TracTickets for help on using tickets.