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

File Integrity check timeout #12388

Open
EPinci opened this issue Dec 28, 2017 · 4 comments
Open

File Integrity check timeout #12388

EPinci opened this issue Dec 28, 2017 · 4 comments

Comments

@EPinci
Copy link

EPinci commented Dec 28, 2017

Hello, I'm running piwik 3.2.1 on Windows Server with PHP 7.2.
During setup and each time the integrity file check runs, I have a PHP task spinning and invariably gets to a timeout (over 90s) and this results in a blocking http 500 error.
I worked around by removing the manifest file but I was wondering if this is a "normal" behavior.
BTW: this reproes constantly since a few piwik versions and with PHP 5.6+.

Thank you.

@sgiehl
Copy link
Member

sgiehl commented Dec 28, 2017

That shouldn't be normal for sure. We had a "bug" in the integrity check causing all files/folders being listed as "to delete". See #12383
Maybe you could try doing that changes manually and check if the integrity checks works then?

@EPinci
Copy link
Author

EPinci commented Dec 28, 2017

Uhm, I manually applied the two changes in the PR to the single file in my server but without any real change.

It really looks weird because, whenever a file integrity check is initiated, I can clearly see one of the php-cgi.exe instances spinning constantly at 12,5% - it runs on a single core up to timeout.
I would say that it tries to sequentially check every file instead of parallelizing to multiple threads? My server has no SSDs but is still relatively "beefy" and everything else on it (including piwik with no integrity checks) runs pretty fine. Might I be missing something on the PHP configuration?

Thank you!

@mattab
Copy link
Member

mattab commented Aug 13, 2019

Hi @EPinci
Are you maybe using NFS or a network disk or so?

Unfortunately we're unable to reproduce the problem.

Could you maybe run a strace to see where the process hangs?

If anyone is reading this and has seen this behaviour, please leave a comment and a screenshot (and ideally how you managed to reproduce).

If we don't hear more about this issue, we will close it later. Thanks!

@EPinci
Copy link
Author

EPinci commented Aug 14, 2019

Nope, just using a server with mechanical disks.
It still happens to me and the only way I have to have Matomo work is to delete the checksum file so that it gets ignored.

There's really no screenshot to take... it just runs until PHP kills it after 5 minutes of processing time.
What kind of trace can I run?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants