Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.1-dev
-
None
-
rhel, mysql
Description
Setup wizard crashes upon installation with exception :
SQLSTATE[42000] [1044] Access denied for user ''@'localhost' to database 'none'
seems like username filled in in setup wizard is not used later? I for sure did provide a username, not '' .....
stackrace:
in /var/www/apache2php53/updatedatafiles/source/vendor/zetacomponents/database/src/handler.php at line 104 -+ } } parent::__construct( $dsn, $user, $pass, $driverOptions ); $this->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); $this->setAttribute( PDO::ATTR_CASE, PDO::CASE_LOWER ); at PDO ->__construct ('mysql:dbname=none;charset=utf8', 'user', null, array('SET NAMES utf8')) in /var/www/apache2php53/updatedatafiles/source/vendor/zetacomponents/database/src/handler.php at line 104 -+ at ezcDbHandler ->__construct (array('type' => 'mysql', 'user' => 'user', 'password' => null, 'charset' => 'utf8', 'database' => 'none', 'host' => null, 'driver-opts' => array('SET NAMES utf8')), 'mysql:dbname=none;charset=utf8') in /var/www/apache2php53/updatedatafiles/source/vendor/zetacomponents/database/src/handlers/mysql.php at line 127 -+ at ezcDbHandlerMysql ->__construct (array('type' => 'mysql', 'user' => 'user', 'password' => null, 'charset' => 'utf8', 'database' => 'none', 'host' => null, 'driver-opts' => array('SET NAMES utf8'))) in /var/www/apache2php53/updatedatafiles/source/vendor/zetacomponents/database/src/factory.php at line 178 -+ at ezcDbFactory ::create (array('type' => 'mysql', 'user' => 'user', 'password' => null, 'charset' => 'utf8', 'database' => 'none', 'host' => null, 'driver-opts' => array('SET NAMES utf8'))) in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/EzcDbHandler.php at line 84 -+ at EzcDbHandler ::create (array('type' => 'mysql', 'user' => 'user', 'password' => null, 'charset' => 'utf8', 'database' => 'none', 'host' => null, 'driver-opts' => array())) in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/ApiLoader/LegacyDbHandlerFactory.php at line 37 -+ at LegacyDbHandlerFactory ->buildLegacyDbHandler () in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 897 -+ at ezpublishDevDebugProjectContainer ->getEzpublish_Api_StorageEngine_Legacy_DbhandlerService () in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262 -+ at Container ->get ('ezpublish.api.storage_engine.legacy.dbhandler') in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 2076 -+ at ezpublishDevDebugProjectContainer ->getEzpublish_Fieldtype_Ezobjectrelationlist_ConverterService () in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262 -+ at Container ->get ('ezpublish.fieldtype.ezobjectrelationlist.converter') in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 988 -+ at ezpublishDevDebugProjectContainer ->getEzpublish_Api_StorageEngine_Legacy_FactoryService () in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262 -+ at Container ->get ('ezpublish.api.storage_engine.legacy.factory') in kernel.root_dir/cache/dev/ezpublishDevDebugProjectContainer.php at line 884 -+ at ezpublishDevDebugProjectContainer ->getEzpublish_Api_StorageEngine_LegacyService () in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php at line 262 -+ at Container ->get ('ezpublish.api.storage_engine.legacy') in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Factory.php at line 50 -+ at Factory ->getPersistenceHandler () in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Factory.php at line 90 -+ at Factory ->getLocationHandler () in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/LocationHandler.php at line 32 -+ at LocationHandler ->load ('59') in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/LocationService.php at line 192 -+ at LocationService ->loadLocation ('59') in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/LocationService.php at line 101 -+ at LocationService ->loadLocation ('59') in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Cache/PersistenceCachePurger.php at line 111 -+ at PersistenceCachePurger ->content (array('59', '2')) at call_user_func_array (array(object(PersistenceCachePurger), 'content'), array(array('59', '2'))) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/private/classes/ezpevent.php at line 164 -+ at ezpEvent ->filter ('content/cache', array('59', '2')) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezcontentcachemanager.php at line 680 -+ at eZContentCacheManager ::clearObjectViewCache ('57', '1', false) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezcontentcachemanager.php at line 790 -+ at eZContentCacheManager ::clearObjectViewCacheIfNeeded ('57', '1', false) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezcontentcachemanager.php at line 1044 -+ at eZContentCacheManager ::clearContentCacheIfNeeded ('57', '1', false) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/content/ezcontentoperationcollection.php at line 233 -+ at eZContentOperationCollection ->clearObjectViewCache ('57', '1') at call_user_func_array (array(object(eZContentOperationCollection), 'clearObjectViewCache'), array('57', '1')) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezmoduleoperationinfo.php at line 802 -+ at eZModuleOperationInfo ->executeClassMethod ('kernel/content/ezcontentoperationcollection.php', 'eZContentOperationCollection', 'clearObjectViewCache', array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true)), array('object_id' => '57', 'version' => '1')) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezmoduleoperationinfo.php at line 524 -+ at eZModuleOperationInfo ->executeBody ('kernel/content/ezcontentoperationcollection.php', 'eZContentOperationCollection', array(array('type' => 'method', 'name' => 'begin-transaction', 'frequency' => 'once', 'method' => 'beginTransaction'), array('type' => 'method', 'name' => 'set-version-pending', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true), array('name' => 'status', 'type' => 'integer', 'constant' => '2'))), array('type' => 'method', 'name' => 'send-to-publishing-queue', 'frequency' => 'once', 'method' => 'sendToPublishingQueue', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true))), array('type' => 'method', 'name' => 'update-section-id', 'frequency' => 'once', 'method' => 'updateSectionID'), array('type' => 'trigger', 'name' => 'pre_publish', 'keys' => array('object_id', 'version')), array('type' => 'method', 'name' => 'copy-translations', 'frequency' => 'once', 'method' => 'copyTranslations'), array('type' => 'method', 'name' => 'set-version-archived', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'constant' => false), array(*DEEP NESTED ARRAY*))), array('type' => 'loop', 'name' => 'loop-nodes', 'method' => 'loopNodeAssignment', 'continue_operation' => 'all', 'child_parameters' => array(array('name' => 'parent_node_id', 'type' => 'integer', 'required' => true), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*)), 'children' => array(array(*DEEP NESTED ARRAY*))), array('type' => 'method', 'name' => 'set-version-published', 'frequency' => 'once', 'method' => 'setVersionStatus', 'parameters' => array(array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*))), array('type' => 'method', 'name' => 'set-object-published', 'frequency' => 'once', 'method' => 'setObjectStatusPublished', 'parameters' => array(*DEEP NESTED ARRAY*)), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*)), null, array(array('name' => 'object_id', 'type' => 'integer', 'required' => true), array('name' => 'version', 'type' => 'integer', 'required' => true)), array('object_id' => '57', 'version' => '1'), null, array('loop_run' => array('begin-transaction' => '0', 'set-version-pending' => '0', 'send-to-publishing-queue' => '1', 'update-section-id' => '0', 'pre_publish' => '1', 'copy-translations' => '0', 'set-version-archived' => '0', 'loop-nodes' => '1', 'set-version-published' => '0', 'set-object-published' => '0', 'publish-object-extension-handler' => '0', 'remove-old-nodes' => '0', 'attribute-publish-action' => '0', 'update-nontranslatable-attributes' => '0', 'reset-nodeassignment-opcodes' => '0', 'commit-transaction' => '0', 'clear-object-view-cache' => '0')), 'publish') in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezmoduleoperationinfo.php at line 213 -+ at eZModuleOperationInfo ->execute ('publish', array('object_id' => '57', 'version' => '1'), null) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezoperationhandler.php at line 57 -+ at eZOperationHandler ::execute ('content', 'publish', array('object_id' => '57', 'version' => '1')) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezcontentobject.php at line 5028 -+ at eZContentObject ::unserialize (object(eZPackage), object(DOMElement), array('use_dates_from_package' => true, 'site_access_map' => array('*' => 'ezflow_site'), 'top_nodes_map' => array('*' => '2'), 'design_map' => array('*' => 'ezflow_site_clean'), 'language_map' => true, 'restore_dates' => true, 'user_id' => '14', 'non-interactive' => true, 'path' => false, 'language_array' => array('eng-GB')), '14', 'ezcontentobject') in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php at line 1032 -+ at eZContentObjectPackageHandler ->installContentObjects (object(DOMNodeList), object(DOMElement), array('use_dates_from_package' => true, 'site_access_map' => array('*' => 'ezflow_site'), 'top_nodes_map' => array('*' => '2'), 'design_map' => array('*' => 'ezflow_site_clean'), 'language_map' => true, 'restore_dates' => true, 'user_id' => '14', 'non-interactive' => true, 'path' => false, 'language_array' => array('eng-GB'))) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php at line 972 -+ at eZContentObjectPackageHandler ->install (object(eZPackage), 'ezcontentobject', array('type' => 'ezcontentobject', 'name' => '', 'os' => '', 'filename' => 'contentobjects', 'sub-directory' => 'ezcontentobject'), '', '', 'contentobjects', 'ezcontentobject', object(DOMElement), array('use_dates_from_package' => true, 'site_access_map' => array('*' => 'ezflow_site'), 'top_nodes_map' => array('*' => '2'), 'design_map' => array('*' => 'ezflow_site_clean'), 'language_map' => true, 'restore_dates' => true, 'user_id' => '14', 'non-interactive' => true, 'path' => false, 'language_array' => array('eng-GB')), array()) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezpackage.php at line 1849 -+ at eZPackage ->installItem (array('type' => 'ezcontentobject', 'name' => '', 'os' => '', 'filename' => 'contentobjects', 'sub-directory' => 'ezcontentobject'), array('use_dates_from_package' => true, 'site_access_map' => array('*' => 'ezflow_site'), 'top_nodes_map' => array('*' => '2'), 'design_map' => array('*' => 'ezflow_site_clean'), 'language_map' => true, 'restore_dates' => true, 'user_id' => '14', 'non-interactive' => true, 'path' => false, 'language_array' => array('eng-GB'))) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/classes/ezpackage.php at line 1871 -+ at eZPackage ->install (array('use_dates_from_package' => true, 'site_access_map' => array('*' => 'ezflow_site'), 'top_nodes_map' => array('*' => '2'), 'design_map' => array('*' => 'ezflow_site_clean'), 'language_map' => true, 'restore_dates' => true, 'user_id' => '14', 'non-interactive' => true, 'path' => false, 'language_array' => array('eng-GB'))) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/setup/steps/ezstep_create_sites.php at line 889 -+ at eZStepCreateSites ->initializePackage (array('identifier' => 'ezflow_site_clean', 'title' => 'eZ Flow (without demo content)', 'url' => 'http://updatedatafiles.rhel61.qa.ez.local', 'database' => 'updatedatafiles', 'access_type' => 'url', 'access_type_value' => 'ezflow_site', 'admin_access_type_value' => 'ezflow_site_admin', 'existing_database' => '2'), array('url' => array('ezflow_site' => 'ezflow_site', 'ezflow_site_admin' => 'ezflow_site_admin'), 'hostname' => array(), 'port' => array(), 'accesses' => array('ezflow_site', 'ezflow_site_admin'), 'sites' => array('ezflow_site')), 'utf-8', array(), array(object(eZLocale)), object(eZLocale), array('first_name' => 'Administrator', 'last_name' => 'User', 'email' => 'vl@ez.no', 'password' => 'publish'), array('errors' => array(array('code' => 'EZSW-002', 'text' => 'Failed importing datatype related data into database: datatype - ezauthor, dba-data file - '), array('code' => 'EZSW-002', 'text' => 'Failed importing datatype related data into database: datatype - ezboolean, dba-data file - '), array('code' => 'EZSW-002', 'text' => 'Failed importing datatype related data into database: datatype - ezcountry, dba-data file - '), array('code' => 'EZSW-002', 'text' => 'Failed importing datatype related data into database: datatype - ezdate, dba-data file - '), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*), array(*DEEP NESTED ARRAY*)))) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/setup/steps/ezstep_create_sites.php at line 164 -+ at eZStepCreateSites ->init () in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/setup/ezsetup.php at line 180 -+ at include ('/var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/setup/ezsetup.php') in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezprocess.php at line 46 -+ at eZProcess ->runFile (array('UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'setup', 'FunctionName' => 'init', 'Parameters' => array()), 'kernel/setup/ezsetup.php', true) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezprocess.php at line 21 -+ at eZProcess ::run ('kernel/setup/ezsetup.php', array('UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'setup', 'FunctionName' => 'init', 'Parameters' => array()), true) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/lib/ezutils/classes/ezmodule.php at line 1743 -+ at eZModule ->run ('init', array(), false, array()) in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php at line 794 -+ at ezpKernelWeb ->dispatchLoop () in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php at line 324 -+ at ezpKernelWeb ->run () in /var/www/apache2php53/updatedatafiles/source/ezpublish_legacy/kernel/private/classes/ezpkernel.php at line 53 -+ at ezpKernel ->run () in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php at line 75 -+ at Kernel ->run () in /var/www/apache2php53/updatedatafiles/source/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacySetupController.php at line 91 -+ at LegacySetupController ->init () at call_user_func_array (array(object(LegacySetupController), 'init'), array()) in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 129 -+ at HttpKernel ->handleRaw (object(Request), '1') in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 73 -+ at HttpKernel ->handle (object(Request), '1', true) in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 57 -+ at ContainerAwareHttpKernel ->handle (object(Request), '1', true) in /var/www/apache2php53/updatedatafiles/source/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 197 -+ at Kernel ->handle (object(Request)) in /var/www/apache2php53/updatedatafiles/source/web/index_dev.php at line 14 -
How to reproduce :
download and untar ezpublish5-ee-bul-tarballs········ build #435 run setup wizard: - Installation lang : English UK - Sendmail/MTA - Mysql Improved ( username /password ) - English ( United Kingdom ) - eZ Flow (without demo content) - URL - remove "_clean" from User Path and Admin patch ( siteaccess names ) - The crash will happend after final "Site registration" page
Attachments
Issue Links
- is duplicated by
-
EZP-20603 Using setup wizard on build #435 raises a twig exception after the last step
- Closed