Core:archive


#1

When I execute the following command
console core:archive --url=http://localhost:8080/piwik/
I have the following output:

[Exception]
ERROR: During Piwik init, Message: No such file or directory

Exception trace:
() at /opt/piwik/apps/piwik/htdocs/core/CronArchive.php:870
Piwik\CronArchive->initCore() at /opt/piwik/apps/piwik/htdocs/core/CronArchive.php:214
Piwik\CronArchive->__construct() at /opt/piwik/apps/piwik/htdocs/plugins/CoreConsole/Commands/CoreArchiver.php:54
Piwik\Plugins\CoreConsole\Commands\CoreArchiver::makeArchiver() at /opt/piwik/apps/piwik/htdocs/plugins/CoreConsole/Commands/CoreArchiver.php:42
Piwik\Plugins\CoreConsole\Commands\CoreArchiver->execute() at /opt/piwik/apps/piwik/htdocs/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
Symfony\Component\Console\Command\Command->run() at /opt/piwik/apps/piwik/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php:889
Symfony\Component\Console\Application->doRunCommand() at /opt/piwik/apps/piwik/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php:193
Symfony\Component\Console\Application->doRun() at n/a:n/a
call_user_func() at /opt/piwik/apps/piwik/htdocs/core/Console.php:60
Piwik{closure}() at /opt/piwik/apps/piwik/htdocs/core/Access.php:454
Piwik\Access::doAsSuperUser() at /opt/piwik/apps/piwik/htdocs/core/Console.php:61
Piwik\Console->doRun() at /opt/piwik/apps/piwik/htdocs/vendor/symfony/console/Symfony/Component/Console/Application.php:124
Symfony\Component\Console\Application->run() at /opt/piwik/apps/piwik/htdocs/console:30

core:archive [–url="…"] [–force-all-websites] [–force-all-periods[="…"]] [–force-timeout-for-periods[="…"]] [–skip-idsites[="…"]] [–force-idsites[="…"]] [–force-periods[="…"]] [–force-date-last-n="…"] [–force-date-range[="…"]] [–concurrent-requests-per-website[="…"]] [–disable-scheduled-tasks] [–accept-invalid-ssl-certificate] [–xhprof]

exception ‘Zend_Db_Adapter_Mysqli_Exception’ with message ‘No such file or directory’ in /opt/piwik/apps/piwik/htdocs/libs/Zend/Db/Adapter/Mysqli.php:333
Stack trace:
#0 /opt/piwik/apps/piwik/htdocs/libs/Zend/Db/Adapter/Abstract.php(315): Zend_Db_Adapter_Mysqli->_connect()
#1 /opt/piwik/apps/piwik/htdocs/core/Db/Adapter.php(44): Zend_Db_Adapter_Abstract->getConnection()
#2 /opt/piwik/apps/piwik/htdocs/core/Db.php(101): Piwik\Db\Adapter::factory(‘MYSQLI’, Array)
#3 /opt/piwik/apps/piwik/htdocs/core/Db.php(50): Piwik\Db::createDatabaseObject()
#4 /opt/piwik/apps/piwik/htdocs/core/Profiler.php(61): Piwik\Db::get()
#5 /opt/piwik/apps/piwik/htdocs/core/FrontController.php(228): Piwik\Profiler::displayDbProfileReport()
#6 [internal function]: Piwik\FrontController->__destruct()
#7 {main}

Anybody can help me?


(Matthieu Napoli) #2

It seems the error is in Zend_Db_Adapter_Mysqli_Exception, can you check if your dabatase configuration is correct?