@theraser opened this Issue on May 29th 2017


using Piwik 3.0.4 with Debian 8 you get the following error when calling the "System Status" page:

Errors below may be due to a partial or failed upload of Piwik files.
--> Try to reupload all the Piwik files in BINARY mode. <--

Missing file: /usr/share/piwik//etc/apt/trusted.gpg.d/piwik-keyring-automatic.gpg

I don't think that this is a critical issue but it may confuse beginners ;-) The path after "/usr/share/piwik/" seems to be a little odd.

Here's the repository configuration:

deb http://debian.piwik.org/ piwik main
deb-src http://debian.piwik.org/ piwik main

This error was also mentioned here in March '17 using Piwik 3.0.2.

@jrblevin commented on August 10th 2017

For what it's worth, I'm seeing exactly the same thing. Like you, I am running Debian 8 and Piwik 3.0.4.

It seems the /usr/share/piwik/ prefix is added erroneously when checking for the file, because the file does exist under /etc/apt/....

@mattab commented on September 18th 2017 Member

Hi @jrblevin @theraser
Could you please try the patch in https://github.com/piwik/piwik/pull/12022 and let us know if it helps at all?

@jrblevin commented on September 18th 2017

I patched my FileIntegrity.php in place. Of course, now I see a file integrity error about FileIntegrity.php (so I know the check ran again), but unfortunately the error about piwik-keyring-automatic.gpg is still showing up as well.

@jrblevin commented on September 18th 2017

I’m not sure if this is useful, but in my config/manifest.inc.php, there is a hash entry for "/etc/apt/trusted.gpg.d/piwik-keyring-automatic.gpg". Other files have only relative paths listed there.

@mattab commented on September 18th 2017 Member

Hi @aureq
It seems that our Debian package has an extra line in the file integrity array in config/manifest.inc.php

Do you know how we could remove this line from the manifest? thanks!

@aureq commented on September 19th 2017

The Makefile in piwik-package is responsible for generating a new manifest.inc.php as the original one is not usable as is. There was one missing line to exclude the package repository GPG key from the manifest.inc.php.

I added a few extra checks:

  • exclude the GPG key
  • perform a syntax check on manifest.inc.php
  • attempt to check if any extra file (through an absolute path) is detected in manifest.inc.php

Piwik 3.1.0-4 is already pushed and provides the updated manifest.inc.php

@Findus23 commented on March 22nd 2021 Member

As no one reported this issue since, I assume this fix worked for everyone and this can be closed.

This Issue was closed on March 22nd 2021
Powered by GitHub Issue Mirror