Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anonymous-matomo-user opened this issue Jan 5, 2011 · 11 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Milestone

Comments

@anonymous-matomo-user
Copy link

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-matomo-user
Copy link
Author

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
Copy link
Member

mattab commented Jan 5, 2011

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
Copy link
Contributor

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

@anonymous-matomo-user
Copy link
Author

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
Copy link
Contributor

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-matomo-user
Copy link
Author

$ 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-matomo-user
Copy link
Author

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

@robocoder
Copy link
Contributor

delete the previously extracted tmp/latest/piwik folder

@mattab
Copy link
Member

mattab commented Jan 8, 2011

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
Copy link
Contributor

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

@anonymous-matomo-user
Copy link
Author

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority.
Projects
None yet
Development

No branches or pull requests

3 participants