Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
anonymous-piwik-user opened this Issue · 11 comments

3 participants

@anonymous-piwik-user

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
@anonymous-piwik-user

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.

@mattab
Owner

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?

@robocoder

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

@anonymous-piwik-user

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

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

@anonymous-piwik-user

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

@anonymous-piwik-user

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...
@robocoder

delete the previously extracted tmp/latest/piwik folder

@mattab
Owner

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

@robocoder

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

@anonymous-piwik-user

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

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