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

Setup wizard fails to generate yml config when using kickstart.ini

    Details

      Description

      Reproducing the exact same steps in the setup wizard, once without a kickstart.ini file and once with, the one with the kickstart.ini file fails (placed in ezpublish_legacy).

      The setup wizard seems to pick up the contents of the kickstart.ini file, but in the last step of the wizard (where the links to the frontend and backend are displayed) the following JS alert is given:

      ===
      An error occurred while loading the web debug toolbar (500: Internal Server Error).

      Do you want to open the profiler?
      ===

      If I try to access the front- or backend URLs I'm redirected to /ezsetup with the same JS alert and the Symfony2 Exception:

      ===
      Unable to connect to the database server 'localhost'
      Error #1045: Access denied for user 'user'@'localhost' (using password: NO)
      ===

      The contents of the kickstart.ini file is as follows (password removed for security reasons):

      ===
      [email_settings]
      Continue=true
      Type=mta

      [database_choice]
      Continue=true
      Type=mysqli

      [database_init]
      Continue=true
      Server=localhost
      Database=eirik_installezp5
      User=eirik
      Password=[REMOVED]

      [site_details]
      Database=eirik_installezp5
      DatabaseAction=remove

      [site_admin]
      Continue=true
      FirstName=Netmaking
      LastName=Admin
      Email=ezpadmin@netmaking.no
      Password=[REMOVED]

      [security]
      Continue=true

      [registration]
      Continue=true
      Send=false
      ===

      It seems to me like the database connection details (perhaps among other things) are not properly added to the SF2 settings if they come from a kickstart.ini file.

        Issue Links

          Activity

          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/38a3b586fb5a333ff7927e81adf65895e1a38814
          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited
          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited Documentation updated with a warning block: https://confluence.ez.no/display/EZP/Automated+installation+of+eZ+Publish
          Hide
          Paulo Nunes (Inactive) added a comment -

          @[~jerome.vieilledent@ez.no]
          Warning block is ok for eZ Publish5.2, but the document link if not only for 5.2. This might lead to confusions if a customer tries to install a version previous to 5.2 using kickstart.ini.

          Show
          Paulo Nunes (Inactive) added a comment - @ [~jerome.vieilledent@ez.no] Warning block is ok for eZ Publish5.2, but the document link if not only for 5.2. This might lead to confusions if a customer tries to install a version previous to 5.2 using kickstart.ini.
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Paulo Nunes: Please note that I backported this block to EZP52 and EZP51 doc pages... In EZP51, I mentioned ezflow_site and ezflow_site_clean.

          4.x is not concerned by this change.

          Show
          Jérôme Vieilledent (Inactive) added a comment - Paulo Nunes : Please note that I backported this block to EZP52 and EZP51 doc pages... In EZP51, I mentioned ezflow_site and ezflow_site_clean . 4.x is not concerned by this change.
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Support Netmaking
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours, 5 minutes
                2d 4h 5m