matomo-org / matomo-package

Matomo release script (official package), and debian/ubuntu package (allows sysadmins to deploy Matomo within seconds using "apt-get install piwik -V")
28 stars 27 forks source link

System check says: File integrity check failed #16

Closed jnachtigall closed 9 years ago

jnachtigall commented 9 years ago

Go to settings => System check.

File integrity  

File integrity check failed and reported some errors. This is most likely due to a partial or failed upload of some of the Piwik files. You should reupload all the Piwik files in BINARY mode and refresh this page until it shows no error.
mattab commented 9 years ago

Hi there, when you click on the "details" button what message does it show? it should list the files that are different

jnachtigall commented 9 years ago

It says

File integrity check failed and reported some errors. This is most likely due to a partial or failed upload of some of the Piwik files. You should reupload all the Piwik files in BINARY mode and refresh this page until it shows no error.
Missing file: /usr/share/piwik/bower.json
Missing file: /usr/share/piwik/.bowerrc
Missing file: /usr/share/piwik/CHANGELOG.md
Integrity check failed: /usr/share/piwik/config/global.ini.php
Missing file: /usr/share/piwik/CONTRIBUTING.md
Missing file: /usr/share/piwik/README.md

I think, I did not edit global.ini.php. AFAICT, this file came as is with the debian package:

# ls -lhrt /usr/share/piwik/config/global.ini.php
-rw-rw-r-- 1 root www-data 34K Nov 21 05:53 /usr/share/piwik/config/global.ini.php
mattab commented 9 years ago

it's weird the global.ini.php has some difference! could you diff it with the packaged 2.9.1 one and paste the diff here

here is file: https://raw.githubusercontent.com/piwik/piwik/2.9.1/config/global.ini.php

jnachtigall commented 9 years ago

Sorry for the delay.

Here you go:

# diff global.ini.php /usr/share/piwik/config/global.ini.php
495c495
< enable_auto_update = 1
---
> enable_auto_update = 0
711d710
< Plugins[] = TestRunner

Seems like enable_auto_update is disabled in the debian package (what makes perfectly sense)

mattab commented 9 years ago

Cheers @jnachtigall

Hi @aureq if we wanted to remove this warning message, maybe one solution could be that you remove from the config/manifest.inc.php file the line containing config/global.ini.php.

aureq commented 9 years ago

@mattab yes, and it's quite easy to do that as well. But I think it should excluded straight from the original release.

mattab commented 9 years ago

@aureq we need to check the global.ini.php content is correct, the file hash is tested during Piwik installation. We can't exclude it from the original release or users would potentially have bugs in their global.ini.php (eg. partial upload)

It only issues a warning when the file is modified eg. because in the debian release we set enable_auto_update = 0 which changes the hash of global.ini.php

aureq commented 9 years ago

Ok, so I'll recompute the hash on the fly while packaging the .deb

aureq commented 9 years ago

Hi @jnachtigall

there has been a huge rewrite in the way the manifest.inc.php is generated. Rather than using the official one, I use the same code and also correctly remap files that are in /etc/piwik/ to config/ I also generate md5sums on the fly so everything stays consistent and fairly safe.

This new mechanism will also help us in the future should we need to update/modify more files for any reasons.

Viswan-piwki commented 8 years ago

HI there, i get this error File integrity

File integrity check failed and reported some errors. This is most likely due to a partial or failed upload of some of the Piwik files. You should reupload all the Piwik files in BINARY mode and refresh this page until it shows no error. File size mismatch: /apps/bweb/servers/apache-2.2.20/htdocs/piwik/misc/cron/archive.sh (expected length: 3996, found: 3994)

aureq commented 8 years ago

Hi

From the look of the details you've provided, this is not related to the Debian Package. What I would recommend is to manually download the archive for the matching version and check for any differences.

Viswan-piwki commented 8 years ago

Thanks for swift reply. I have old piwik version, if you mean download 1.12 version and then compare the files?

Regards, Viswa

From: Aurélien Requiem [mailto:notifications@github.com] Sent: Tuesday, March 22, 2016 7:30 PM To: piwik/piwik-package Cc: Ramachandran, Viswanathan: Development Tools Subject: Re: [piwik-package] System check says: File integrity check failed (#16)

Hi

From the look of the details you've provided, this is not related to the Debian Package. What I would recommend is to manually download the archive for the matching version and check for any differences.

— You are receiving this because you commented. Reply to this email directly or view it on GitHubhttps://github.com/piwik/piwik-package/issues/16#issuecomment-199770777


This message is for information purposes only, it is not a recommendation, advice, offer or solicitation to buy or sell a product or service nor an official confirmation of any transaction. It is directed at persons who are professionals and is not intended for retail customer use. Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer.

For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer regarding market commentary from Barclays Sales and/or Trading, who are active market participants; and in respect of Barclays Research, including disclosures relating to specific issuers, please see http://publicresearch.barclays.com.


Viswan-piwki commented 8 years ago

Also advice on this please?

Piwik is set for confluence. For march month it shows only 19 visits and 23 page views. Im sure this is wrong. Ours confluence is huge and im pretty sure there should be more. We have around 20k users using our confluence. Does file integrity is related to this ?

aureq commented 8 years ago

@Viswan-piwki

Viswan-piwki commented 8 years ago

Hi there, One more query. I have permissioned 777 to piwik folder and also restarted apache. But it still does not give me option to choose auto-update version? Both /tmp and /misc have write permissions. I tried the manual upgrade and having restarted the piwik, the page returned blank

And also do i have to copy the old config.ini.php to new piwik. ? i did not do that. I uploaded the new piwik files to web server folder (where old one was) and restarted the apache

Viswan-piwki commented 8 years ago

I have sorted now the integrity. However my evolution graph is showing red (negative). And for other application JIRA, i'm not able to choose dates. Previous months and years are not displayed in the drop down. Thus showing March data as 0%

aureq commented 8 years ago

@Viswan-piwki Unfortunately, we cannot debug every single issue through Github. The best suggestion I have to offer would be to contact @mattab through their professional services at https://piwik.org/support The guys there should be able to support you and even help you migrate to a more recent version of Piwik.