Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1965 closed Bug (fixed)

Can't install automatically piwik 1.1.1 on some php 5.2 setups

Reported by: paolobenve Owned by:
Priority: critical Milestone: Piwik 1.2
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

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

Change History (14)

comment:1 Changed 3 years ago by paolobenve

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.

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

  • Milestone set to 1.2 Piwik 1.2

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

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?

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

  • Description modified (diff)

comment:5 follow-up: Changed 3 years ago by vipsoft (robocoder)

Can you manually apply [3620] and then retry the update?

comment:6 in reply to: ↑ 5 Changed 3 years ago by paolobenve

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

comment:7 Changed 3 years ago by vipsoft (robocoder)

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?)

comment:8 Changed 3 years ago by paolobenve

$ 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.

comment:9 Changed 3 years ago by tec

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 --version
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...

comment:10 Changed 3 years ago by vipsoft (robocoder)

delete the previously extracted tmp/latest/piwik folder

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

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

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

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

  • Summary changed from can't install automatically piwik 1.1.1 to Can't install automatically piwik 1.1.1 on some php 5.2 setups

comment:13 Changed 3 years ago by vipsoft (robocoder)

(In [3671]) refs #1965 - before unzipping, delete tmp/latest/piwik if it exists

comment:14 Changed 3 years ago by tec

[3657] and deleting tmp/latest/piwik worked.
Thanks a lot!

Note: See TracTickets for help on using tickets.