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

Piwik site crashes intermittently #10473

Closed
grisharav opened this issue Sep 6, 2016 · 4 comments
Closed

Piwik site crashes intermittently #10473

grisharav opened this issue Sep 6, 2016 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@grisharav
Copy link

I installed the latest piwik version under IIS on windows server 2012 R2. Every few hours the piwik site goes down and I see the following in the log:

[05-Sep-2016 21:53:31 UTC] PHP Warning: require_once(C:\inetpub\wwwroot): failed to open stream: Permission denied in C:\inetpub\wwwroot\core\bootstrap.php on line 41
[05-Sep-2016 21:53:31 UTC] PHP Fatal error: require_once(): Failed opening required 'C:\inetpub\wwwroot/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\inetpub\wwwroot\core\bootstrap.php on line 41
[05-Sep-2016 21:53:58 UTC] PHP Fatal error: Uncaught Error: Class 'Piwik\ErrorHandler' not found in C:\inetpub\wwwroot\core\dispatch.php:16
Stack trace:

0 C:\inetpub\wwwroot\index.php(27): require_once()

1 {main}

thrown in C:\inetpub\wwwroot\core\dispatch.php on line 16
[05-Sep-2016 21:54:13 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:54:37 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:55:11 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:55:43 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:56:16 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:56:47 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:57:23 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:57:53 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:58:26 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:58:58 UTC] PHP Fatal error: Class 'Piwik\Exception\Exception' not found in C:\inetpub\wwwroot\core\Exception\NotYetInstalledException.php on line 11
[05-Sep-2016 21:58:58 UTC] PHP Fatal error: Uncaught Error: Class 'Piwik\ErrorHandler' not found in C:\inetpub\wwwroot\core\dispatch.php:16

Doing iisreset brings the site back up, and everything seems to be in order for few more hours.
See https://forum.piwik.org/t/piwik-site-crashes-intermittently-under-iis/20537/4

Maybe it has something to do with iis taking the site down if there's no activity? Some application pool recycling?

@mattab
Copy link
Member

mattab commented Sep 27, 2016

Could you try upgrade to latest 2.16.2 ?

which PHP version are you using?

@grisharav
Copy link
Author

I'm running 2.16.2, PHP 7

@mattab
Copy link
Member

mattab commented Sep 27, 2016

Could you maybe try to upgrade PHP7 to latest, and also try our latest Piwik beta: http://piwik.org/faq/how-to-update/faq_159/

@mattab
Copy link
Member

mattab commented Nov 11, 2016

Maybe also check you use opcache and not other php caches at the same time

@mattab mattab closed this as completed Nov 11, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants