Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71888

Unresolved [[clitablesexist]] string in CLI database installer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10.5, 3.11.1
    • 3.10.4, 3.11, 4.0
    • Installation
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • Hide

      Replicate AMOS string copy

      1. Visually confirm the presence of clitablesexist,install line in install/stringnames.txt
      2. Manually copy the 'clitablesexist' string from lang/en/install.php to install/lang/en/install.php

        $string['clitablesexist'] = 'Database tables already present; CLI installation cannot continue.';
        

      3. On an existing site, run the following CLI command:

        $ php admin/cli/install_database.php --agree-license --fullname="Docker" --shortname="Docker" --summary="Docker site" --adminpass="admin" --adminemail="admin@example.com"
        

      4. Confirm the installation stops with the error message "Database tables already present; CLI installation cannot continue."
      Show
      Replicate AMOS string copy Visually confirm the presence of clitablesexist,install line in install/stringnames.txt Manually copy the 'clitablesexist' string from lang/en/install.php to install/lang/en/install.php $string['clitablesexist'] = 'Database tables already present; CLI installation cannot continue.'; On an existing site, run the following CLI command: $ php admin/cli/install_database.php --agree-license --fullname="Docker" --shortname="Docker" --summary="Docker site" --adminpass="admin" --adminemail="admin@example.com" Confirm the installation stops with the error message "Database tables already present; CLI installation cannot continue."

      Trying to run the install_database.php CLI script, on a site that already has database present (either an existing site, or because the previous installation attempt failed) results in the following:

      $ sudo -u www-data php admin/cli/install_database.php --agree-license --fullname="Docker" --shortname="Docker" --summary="Docker site" --adminpass="admin" --adminemail="admin@example.com"
      [[clitablesexist]]
      

      Instead of the following language string:

      lang/en/install.php:$string['clitablesexist'] = 'Database tables already present; CLI installation cannot continue.';
      

            pholden Paul Holden
            pholden Paul Holden
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.