Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Piwik AutoUpdate (1.1.1 -> 1.2) failing with "Error Opening [absolute/path/to/piwik/latest/latest.zip]" #2125

Closed
peterbo opened this Issue · 6 comments

2 participants

@peterbo
Collaborator

Still very hard to track down (now entries in the server / apache error logs) but it seems like there would be still a file lock on latest.zip when the piwik Updater tries to access it. File is in the given directory, permissions, etc. are correct.

Error was reproducible on my 2 Servers (which have the same config (basepath restriction, vhost, mod_php (5.2.6)). AutoUpdates used to run correctly by now.

Bug related to #1965.

@peterbo
Collaborator

Tracking down the error more deeply:

  • PHP Version 5.2.6-1+lenny9 (64Bit System) - exactly the same (sub)Version as in #1965 (-> bug in PHP very supposable!)
  • $this->ziparchive->open($filename) returns (int)5 (code 5 is supposed to be "ZIPARCHIVE::ER_READ")
  • Could be this PHP-Issue: http://bugs.php.net/bug.php?id=40873 related to http://pecl.php.net/bugs/bug.php?id=8714
  • deleted tmp/latest/piwik & tmp/latest/latest.zip manually and tried again
  • File latest.zip (when downloaded from the tmp/latest/ directory) is OK and accessible

Solution:

  • Updated the AutoUpdater to the 1.2 Version
  • Chmodded / Chgrped piwik directory
  • Applied patch (attachment)
@peterbo
Collaborator
@robocoder
Collaborator

Is that your fix?

@robocoder
Collaborator

Ok, it is a patch. I'll apply and close.

@robocoder
Collaborator

(In [4003]) fixes #2125 - thanks peterb

@peterbo
Collaborator

My fix was to replace the Plugin "CoreUpdater", "/core/Unzip.php", "/core/Unzip/PclZip.php" and "/core/Unzip/ZipArchive.php" with the new files from 1.2.

The patch file fixes a warning (and that a possibly existing tmp/piwik directory is correctly removed) in "plugins/CoreUpdater/Controller.php" that uses "file_exists($this->pathRootExtractedPiwik)" while the member "pathRootExtractedPiwik" wasn't set yet.

@peterbo peterbo added this to the Piwik 1.2.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.