Piwiki 2.16.0: Update error: Archive is incomplete: some files are missing (eg. /config/global.ini.php)

Hello there,

I have a strange issue with updating my Piwik instance from version 2.15.0 to 2.16.0. When I click “Update Automatically” button, then I can see a folliwing error:

✓ Downloading update from https://builds.piwik.org/piwik.zip
✓ Unpacking the update

Update error: Archive is incomplete: some files are missing (eg. /config/global.ini.php).

I have a lot of free disk space on a root partition (/) where /tmp resides and /srv where my Piwik code is stored:

ptecza@piwik:/tmp$ df -h / /srv
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda        12G  3.5G  8.6G  30% /
/dev/xvdb        50G   38G   13G  76% /srv
ptecza@piwik:/tmp$

Also piwik.zip archive seems to be OK:

ptecza@piwik:/tmp$ wget -q https://builds.piwik.org/piwik.zip
ptecza@piwik:/tmp$ unzip -l piwik.zip |grep global.ini.php
    39258  2016-02-04 06:10   piwik/config/global.ini.php
ptecza@piwik:/tmp$ 

Any ideas?

Best regards,
Pawel

Unfortunately I don’t know (we haven’t heard of this issue so far). Do you still experience it or have you solved? if so, how?

Thanks for your response, Matthieu!

It seems that something was wrong with my Apache2, because it was creating the temporary directories for Piwik under /path/to/my/piwik/tmp/templates_c/ with 655 permissions… It’ve set umask 002 (probably umask 022 should be OK as well) in /etc/apache2/envvars (this is Debian Jessie box) and everything works fine now: I can update my Piwik to version 2.16.0 and update some plugins (for example IPv6Usage or LoginLdap) too.