When I try to install automatically piwik 1.1.1, the server downloads it, but then stops saying:
Error opening /var/lib/piwik/tmp/latest/latest.zip
and continues (in locale's language) saying that the file has been cancelled.
However, the file il there, and with correct user, group and permissions:
/var/lib/piwik/tmp/latest$ vdir
totale 5080
-rw-r--r-- 1 www-data www-data 266 4 gen 02:27 How\ to\ install\ Piwik.html
-rw-r--r-- 1 www-data www-data 5174153 5 gen 20:20 latest.zip
-rw-r--r-- 1 www-data www-data 166 29 ago 03:52 Manifest.xml
-rw-r--r-- 1 www-data www-data 637 29 ago 03:52 parameters.xml
I explained myself badly: after the "Error opening /var/lib/piwik/tmp/latest/latest.zip" message, it says that the "Piwik One Click Update" has been cancelled.
Can you try again? maybe a temporary problem with the piwik.org server.
Also, if you download the file from your server directly /var/lib/piwik/tmp/latest/latest.zip what does it look like?
Can you try again? maybe a temporary problem with the piwik.org server.
The problems keeps persisting
Can you manually apply [3620] and then retry the update?
I manually updated the file
core/Unzip.php
but nothing changes.
The file
tests/core/Unzip.test.php
isn't in my installation, nor is in the latest.zip package
Also, if you download the file from your server directly /var/lib/piwik/tmp/latest/latest.zip what does it look like?
it's a normal zip package
Here's another patch to try. [3657] Don't worry about the files in tests/ dir. (and for reference, what php version are you using?)
$ php --version
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:06:53)
I resolved the issue with a manual upgrade (nightmare!!). So I cannot test any more.
I am having the same issue. When trying [3657] the update again fails with the error:
Archiv inkompatibel: NoName (-17) : Filename '/var/www/piwik/tmp/latest/piwik/' is already used by an existing directory
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:06:53)
Thanks a lot for your help. Any ideas what I could try next? The automatic updater had been working flawlessly for months for me. I can do a manual update if you prefer me to do one. But I am afraid that that could mean that future upgrades won't work as well...
I had the issue on 5.2.4-2ubuntu5.12 on a test piwik server, applying the 2 patches + deleting latest.zip fixed it, thanks vipsoft
(In [3671]) refs #1965 - before unzipping, delete tmp/latest/piwik if it exists
[3657] and deleting tmp/latest/piwik worked.
Thanks a lot!