@peterbo opened this Issue on March 3rd 2011 Contributor

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 commented on March 3rd 2011 Contributor
@peterbo commented on March 3rd 2011 Contributor

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)
@robocoder commented on March 3rd 2011 Contributor

Is that your fix?

@robocoder commented on March 3rd 2011 Contributor

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

@robocoder commented on March 3rd 2011 Contributor

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

@peterbo commented on March 3rd 2011 Contributor

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.

This Issue was closed on March 3rd 2011
Powered by GitHub Issue Mirror