Fatal error: Class undefined: Zend\\Stdlib\\ErrorHandler
0.1.0-alpha100, Viewing home page after command line install
[Mon Oct 20 09:34:38 2014] [hphp] [13767:7fdc40bff700:1:000001] [] \nFatal error: Class undefined: Zend\\Stdlib\\ErrorHandler in /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Zend/Validator/Hostname.php on line 550
hhvm --version
HipHop VM 3.4.0-dev~nightly.2014.10.19 (rel)
Compiler: heads/master-0-g65045d210089800965c6bfedf48f6a43770326c8
Repo schema: 5b442602629d089fc6082c6d4640be6f44644223
Extension API: 20140829
nginx -V
nginx version: nginx/1.6.2
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-ipv6 --with-mail --with-mail_ssl_module --with-pcre=/usr/local/src/pcre-8.32 --with-http_spdy_module
Command line install:
root@web:/var/www/vhosts/magento2-capistrano/current# php dev/shell/install.php -- --license_agreement_accepted yes --locale en_GB --timezone "Europe/London" --default_currency GBP --db_host 127.0.0.1 --db_name xxx_prod --db_user root --url "http://www.xxx.co.uk/" --use_rewrites yes --use_secure_admin no --admin_lastname Admin --admin_firstname Admin --admin_email "[email protected]" --admin_username admin --admin_password password --use_secure no --secure_base_url "http://www.xxx.co.uk/" --cleanup_database --skip_url_validation yes
exception 'Exception' with message 'Recoverable Error: Object of class Magento\Framework\Message\Error could not be converted to string in /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php on line 123' in /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/ErrorHandler.php:77
Stack trace:
#0 (): Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php(123): implode()
#2 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php(159): Magento\Install\App\Console->_handleInstall()
#3 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/Bootstrap.php(203): Magento\Install\App\Console->launch()
#4 /var/www/vhosts/magento2-capistrano/releases/20141020090530/dev/shell/install.php(107): Magento\Framework\App\Bootstrap->run()
Please use CLI mentioned here: https://github.com/magento/magento2/issues/668#issuecomment-56234156
@craigcarnell , did you run composer install/update in the root directory after update of the code?
We removed Zend\Stdlib library from Magento code base and included it as a dependency in root composer.json now.
@buskamuza
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package php could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package php could not be found in any version, there may be a typo in the package name.
Problem 3
- Installation request for zendframework/zend-stdlib 2.0.3 -> satisfiable by zendframework/zend-stdlib[2.0.3].
- zendframework/zend-stdlib 2.0.3 requires php >=5.3.3 -> no matching package found.
Problem 4
- Installation request for phpunit/phpunit 4.1.0 -> satisfiable by phpunit/phpunit[4.1.0].
- phpunit/phpunit 4.1.0 requires php >=5.3.3 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
php --version
php --version
HipHop VM 3.4.0-dev~nightly.2014.10.23 (rel)
Compiler: heads/master-0-g0b46339509ebd9612623d52c296fdcc8e6f93dff
Repo schema: 008a6ee43591a5f00ada353a546f193c91f3a4b9
Extension API: 20140829
If I install php I get this:
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
[RuntimeException]
vendor does not exist and could not be created.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
php --version
PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep 4 2014 06:56:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Looks like I need to sudo! Anyway, wish php wasn't a dependency as I'm using hhvm
After running the CLI setup I get:
exception 'Exception' with message 'Recoverable Error: Object of class Magento\Framework\Message\Error could not be converted to string in /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php on line 123' in /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/ErrorHandler.php:77
Stack trace:
#0 (): Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php(123): implode()
#2 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Install/App/Console.php(159): Magento\Install\App\Console->_handleInstall()
#3 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/Bootstrap.php(203): Magento\Install\App\Console->launch()
#4 /var/www/vhosts/magento2-capistrano/releases/20141020090530/dev/shell/install.php(107): Magento\Framework\App\Bootstrap->run()
In web browser:
Current store is not active.
#0 (): Magento\Store\App\Action\Plugin\StoreCheck->aroundDispatch()
#1 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array()
#2 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext()
#3 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Customer/Model/App/Action/ContextPlugin.php(75): {closure}()
#4 (): Magento\Customer\Model\App\Action\ContextPlugin->aroundDispatch()
#5 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array()
#6 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Cms/Controller/Index/Index/Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext()
#7 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Catalog/Model/App/Action/ContextPlugin.php(95): {closure}()
#8 (): Magento\Catalog\Model\App\Action\ContextPlugin->aroundDispatch()
#9 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Cms/Controller/Index/Index/Interceptor.php(93): call_user_func_array()
#10 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Cms/Controller/Index/Index/Interceptor.php(128): Magento\Cms\Controller\Index\Index\Interceptor->___call()
#11 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/FrontController.php(62): Magento\Cms\Controller\Index\Index\Interceptor->dispatch()
#12 (): Magento\Framework\App\FrontController->dispatch()
#13 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Framework/App/FrontController/Interceptor.php(48): call_user_func_array()
#14 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(83): Magento\Framework\App\FrontController\Interceptor->___callParent()
#15 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext()
#16 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php(106): {closure}()
#17 (): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch()
#18 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array()
#19 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext()
#20 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php(95): {closure}()
#21 (): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch()
#22 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array()
#23 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext()
#24 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/PageCache/Model/App/FrontController/VarnishPlugin.php(79): {closure}()
#25 (): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch()
#26 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array()
#27 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Framework/App/FrontController/Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext()
#28 /var/www/vhosts/magento2-capistrano/releases/20141020090530/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php(93): {closure}()
#29 (): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch()
#30 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Framework/App/FrontController/Interceptor.php(93): call_user_func_array()
#31 /var/www/vhosts/magento2-capistrano/shared/var/generation/Magento/Framework/App/FrontController/Interceptor.php(115): Magento\Framework\App\FrontController\Interceptor->___call()
#32 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/Http.php(127): Magento\Framework\App\FrontController\Interceptor->dispatch()
#33 /var/www/vhosts/magento2-capistrano/releases/20141020090530/lib/internal/Magento/Framework/App/Bootstrap.php(203): Magento\Framework\App\Http->launch()
#34 /var/www/vhosts/magento2-capistrano/releases/20141020090530/index.php(42): Magento\Framework\App\Bootstrap->run()
#35 {main}
@craigcarnell please try again after clearing 'var/generation' and 'cache' folders.
@craigcarnell, did the suggestion by @mazhalai help? Please let us know if we need to further investigate on this?
@verklov @mazhalai
I've tried 0.1.0-alpha103. web setup tool and it get's stuck here. If I manually run the command from the command line it runs, but the web setup tool cannot continue as it tried to run the command again.
HHVM is running as www-data, the file /var/www/.hhvm.hhbc is owned by www-data. I am not sure what user it's running as when it's being run as a CLI command in the install process..
ls -la /var/www/.hhvm.hhbc
-rw-r--r-- 1 www-data www-data 0 Apr 22 2014 /var/www/.hhvm.hhbc
install.log
<span class="text-info">Installing data fixtures:</span>
<span class="text-info">/usr/bin/hhvm --php -f '/var/www/vhosts/magento2-capistrano/releases/20141113104542/dev/shell/run_data_fixtures.php' -- --bootstrap='MAGE_DIRS[base][path]=/var/www/vhosts/magento2-capistrano/releases/20141113104542&MAGE_MODE=developer' 2>&1</span>
<span class="text-danger">[ERROR] exception 'Exception' with message 'Failed to initialize central HHBC repository:
Failed to initialize schema in /var/www/.hhvm.hhbc: RepoQuery::step(repo=0x7f7a90390a00) error: 'CREATE TABLE main.magic_bd13b1028770945958c33e9e9bf3041342ee5a35(product TEXT);' --> (14) unable to open database file
' in /var/www/vhosts/magento2-capistrano/releases/20141113104542/lib/internal/Magento/Framework/Shell.php:80
Stack trace:
#0 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(509): Magento\Framework\Shell->execute()
#1 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(377): Magento\Setup\Model\Installer->exec()
#2 (): Magento\Setup\Model\Installer->installDataFixtures()
#3 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(263): call_user_func_array()
#4 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Controller/Install/StartController.php(102): Magento\Setup\Model\Installer->install()
#5 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): Magento\Setup\Controller\Install\StartController->indexAction()
#6 (): Zend\Mvc\Controller\AbstractActionController->onDispatch()
#7 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func()
#8 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners()
#9 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger()
#10 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch()
#11 (): Zend\Mvc\DispatchListener->onDispatch()
#12 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func()
#13 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners()
#14 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(313): Zend\EventManager\EventManager->trigger()
#15 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/index.php(48): Zend\Mvc\Application->run()
#16 {main}
Next exception 'Magento\Framework\Exception' with message 'Command returned non-zero exit code:
`/usr/bin/hhvm --php -f '/var/www/vhosts/magento2-capistrano/releases/20141113104542/dev/shell/run_data_fixtures.php' -- --bootstrap='MAGE_DIRS[base][path]=/var/www/vhosts/magento2-capistrano/releases/20141113104542&MAGE_MODE=developer' 2>&1`' in /var/www/vhosts/magento2-capistrano/releases/20141113104542/lib/internal/Magento/Framework/Shell.php:81
Stack trace:
#0 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(509): Magento\Framework\Shell->execute()
#1 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(377): Magento\Setup\Model\Installer->exec()
#2 (): Magento\Setup\Model\Installer->installDataFixtures()
#3 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Model/Installer.php(263): call_user_func_array()
#4 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/module/Magento/Setup/src/Controller/Install/StartController.php(102): Magento\Setup\Model\Installer->install()
#5 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): Magento\Setup\Controller\Install\StartController->indexAction()
#6 (): Zend\Mvc\Controller\AbstractActionController->onDispatch()
#7 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func()
#8 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners()
#9 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger()
#10 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch()
#11 (): Zend\Mvc\DispatchListener->onDispatch()
#12 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func()
#13 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners()
#14 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(313): Zend\EventManager\EventManager->trigger()
#15 /var/www/vhosts/magento2-capistrano/releases/20141113104542/setup/index.php(48): Zend\Mvc\Application->run()
#16 {main}<span>
The command line installer does not run for me at all, there is no error log provided
An error has happened during application run. See debug log for details.
Could not write error message to log. Please use developer mode to see the message.
@craigcarnell seems like it is specific environmental issue. On version you tried we didn't announce support for HHVM. For now i am going to close the ticket.