Piwik brokes my website

Hello,

I have a blog, programed by me in PHP I use Piwik to track my visitors. I rewrite my website, in PHP with Symfony. I delete my old website except piwik and I put my new website. I use the same database and the same folder for piwik than before.

Now, when I go to Piwik, the first page works but after, my website is down during about ten minutes, Piwik and the all site. Chrome says the website is innacessible, with the error : ERR_CONNECTION_TIMED_OUT.

Why and how resolves this problem ?

Tanks,

Jérémie

Hello,

Try to setup the cron archiving: How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo

this will make Piwik faster as it will pre-process the reports regularly like every hour or day :thumbsup:

Thank you for your answer.

I don’t think it is the problem. The dashboard works fine and quickly, for the first page. After, the website is down, not only for me but for all people because if I try with another browser, the website doesn’t work. And if I retry to access to Piwik, the problem restarts. And my best number of visits is 100 and the average is 15 visitors, it’s a little blog.

What server software are you using? What is in the log? It sounds like something is crashing the web server itself.

It’s a shared server. Pwik works in the server with my precedent website or with Joomla!, on a website with some hundred vistors by day.

I check the log but there are nothing in the folder (piwik/tmp/logs).

edit : I try to reinstall Piwik, with the last version but I have the same problem.

I meant the server/php error log.

I ask the logs to my host and they give this extract :

Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Warning: include(/srv/filer02/madgic0001/www/piwik/vendor/composer/…/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php): failed to open stream: No such file or directory in /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php on line 414, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Stack trace:, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/piwik.php:0, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 2. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/piwik.php:57, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 5. spl_autoload_call() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 6. Composer\Autoload\ClassLoader->loadClass() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 7. Composer\Autoload\includeFile() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:301, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Warning: include(/srv/filer02/madgic0001/www/piwik/vendor/composer/…/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php): failed to open stream: No such file or directory in /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php on line 414, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Stack trace:, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/piwik.php:0, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 2. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/piwik.php:57, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 5. spl_autoload_call() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 6. Composer\Autoload\ClassLoader->loadClass() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 7. Composer\Autoload\includeFile() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:301, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Warning: include(): Failed opening ‘/srv/filer02/madgic0001/www/piwik/vendor/composer/…/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php’ for inclusion (include_path=‘/srv/filer02/madgic0001/www/piwik/vendor/pear/pear_exception:/srv/filer02/madgic0001/www/piwik/vendor/pear/console_getopt:/srv/filer02/madgic0001/www/piwik/vendor/pear/pear-core-minimal/src:/srv/filer02/madgic0001/www/piwik/vendor/pear/archive_tar:.:’) in /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php on line 414, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Stack trace:, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/piwik.php:0, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 2. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/piwik.php:57, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 5. spl_autoload_call() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 6. Composer\Autoload\ClassLoader->loadClass() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 7. Composer\Autoload\includeFile() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:301, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Fatal error: Class ‘Doctrine\Common\Cache\ArrayCache’ not found in /srv/filer02/madgic0001/www/piwik/core/Container/ContainerFactory.php on line 69, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP Stack trace:, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/piwik.php:0, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 2. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/piwik.php:57, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:15:40 web-7 madgic0001-apache-error: [Mon Oct 31 18:15:40 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135, referer: http://localhost/geekpassion/web/app_dev.php/
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP Fatal error: Interface ‘DI\Definition\Source\DefinitionSource’ not found in /srv/filer02/madgic0001/www/piwik/core/Container/IniConfigDefinitionSource.php on line 24
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP Stack trace:
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/index.php:0
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 2. require_once() /srv/filer02/madgic0001/www/piwik/index.php:27
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/core/dispatch.php:28
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 5. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 6. spl_autoload_call() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:72
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 7. Composer\Autoload\ClassLoader->loadClass() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:72
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 8. Composer\Autoload\includeFile() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:301
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 9. include() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:414
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP Fatal error: Uncaught exception ‘Piwik\Container\ContainerDoesNotExistException’ with message ‘The root container has not been created yet.’ in /srv/filer02/madgic0001/www/piwik/core/Container/StaticContainer.php:40
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] Stack trace:
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #0 /srv/filer02/madgic0001/www/piwik/core/Container/StaticContainer.php(80): Piwik\Container\StaticContainer::getContainer()
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #1 /srv/filer02/madgic0001/www/piwik/core/Log.php(94): Piwik\Container\StaticContainer::get(‘Piwik\\Log’)
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #2 /srv/filer02/madgic0001/www/piwik/core/Log.php(225): Piwik\Log::getInstance()
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #3 /srv/filer02/madgic0001/www/piwik/core/Log.php(172): Piwik\Log::logMessage(100, Object(Piwik\Container\ContainerDoesNotExistException), Array)
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #4 /srv/filer02/madgic0001/www/piwik/core/FrontController.php(180): Piwik\Log::debug(Object(Piwik\Container\ContainerDoesNotExistException))
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #5 [internal function]: Piwik\FrontController->__destruct()
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] #6 {main}
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] thrown in /srv/filer02/madgic0001/www/piwik/core/Container/StaticContainer.php on line 40
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP Stack trace:
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 1. {main}() /srv/filer02/madgic0001/www/piwik/index.php:0
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 2. require_once() /srv/filer02/madgic0001/www/piwik/index.php:27
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 3. Piwik\Application\Environment->init() /srv/filer02/madgic0001/www/piwik/core/dispatch.php:28
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 4. Piwik\Application\Environment->createContainer() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:90
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 5. Piwik\Container\ContainerFactory->create() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:135
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 6. spl_autoload_call() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:72
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 7. Composer\Autoload\ClassLoader->loadClass() /srv/filer02/madgic0001/www/piwik/core/Application/Environment.php:72
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 8. Composer\Autoload\includeFile() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:301
Oct 31 18:19:37 web-7 madgic0001-apache-error: [Mon Oct 31 18:19:37 2016] [error] [client 192.96.15.39] PHP 9. include() /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php:414
Nov 1 23:41:06 web-7 madgic0001-apache-error: [Tue Nov 01 23:41:06 2016] [error] [client 192.96.15.39] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://www.geekpassion.fr/

A quick look seems to say that Composer is not installed.

I install Composer in local, thanks to Composer, and then I upload composer.phar in the root of Piwik. I have the same problem.

Do I need modify a configuration file or put composer.phar in an other folder ? Other thing ? Or if it’s not composer, I will ask an other extract of log.

In all case, thank you for your help.

Jérémie

You need to look at /srv/filer02/madgic0001/www/piwik/vendor/composer/ClassLoader.php line 414 and see which file it is trying to load.

The first error says that the file does not exist. You may need to update your path setting(s).

I have the problem this afternoon and I ask the logs at this time and they reply there are no errors this afternoon. After some others tests, my host is a part of the problem. My subscription expires the 11th and I will change my host. I will come back if the problem persists.

Thank you for your help.