Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23174

PDOException on ezpublish setup

    XMLWordPrintable

Details

    • Castor Core S6, Castor Core S7

    Description

      When I try to install ezpublish, after applying the patch 07_EZSP-005-EZP5.2.diff
      the installation gets stalled and I noticed I get the following error in Apache logs:

      [Fri Jul 18 10:04:56 2014] [error] [client 192.168.2.67] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000] [1044] Access denied for user ''@'localhost' to database 'none'' in /var/www/ezpublish52_CS1/vendor/zetacomponents/database/src/handler.php:104\nStack trace:\n#0 /var/www/ezpublish52_CS1/vendor/zetacomponents/database/src/handler.php(104): PDO->_construct('mysql:dbname=no...', 'user', NULL, Array)\n#1 /var/www/ezpublish52_CS1/vendor/zetacomponents/database/src/handlers/mysql.php(127): ezcDbHandler->construct(Array, 'mysql:dbname=no...')\n#2 /var/www/ezpublish52_CS1/vendor/zetacomponents/database/src/factory.php(178): ezcDbHandlerMysql->_construct(Array)\n#3 /var/www/ezpublish52_CS1/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/EzcDbHandler.php(97): ezcDbFactory::create(Array)\n#4 /var/www/ezpublish52_CS1/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/ApiLoader/LegacyDbHandlerFactory.php(37): eZ\\Publish\\Core\\Persistence\\Legacy\\EzcDbHandler::create(Array)\n#5 /var/www/ezpublish52_CS1/ezpublish/cache/prod/ezpubli in /var/www/ezpublish52_CS1/vendor/zetacomponents/database/src/handler.php on line 104

      Up until applying the patch 06_EZSP-004-EZP5.2.diff the installation process goes ok.

      I also noticed this error gets dumped in logs when I try to clean cache:
      php ezpublish/console ^Cche:clear --env=prod

      Attachments

        Activity

          People

            Unassigned Unassigned
            rui.silva-obsolete@ez.no Rui Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 5 hours, 20 minutes Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - 5 hours, 20 minutes Remaining Estimate - 7 hours
                5h 20m