Upgrade 10.0.12 -> 10.1.1 from the UI fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alrisrail
    Junior Member
    • Jul 2026
    • 3

    #1

    Upgrade 10.0.12 -> 10.1.1 from the UI fails

    Hello,

    I tried to upgrade from 10.0.12 to 10.1.1 through Administration > Upgrade and it failed during the second rebuild step. The instance was automatically restored to 10.0.12 and works normally.
    Package: EspoCRM-upgrade-10.0.12-to-10.1.1.zip

    Environment
    - EspoCRM 10.0.12 (before) -> 10.1.1 (target)
    - OVH shared hosting, no SSH / no CLI access, so the UI upgrade was my only option
    - MySQL 8.4
    - PHP version: 8.3.36
    - Custom code only under custom/ and client/custom/ (no DBAL usage in it)
    - Before the upgrade: vendor/doctrine/dbal was 3.10.4 (after the automatic restore it is 3.10.4 again, so the files look clean)

    What the log shows (OPcache warnings removed, paths shortened)

    [07:23:11] INFO: Installation process: Start "init" step.
    [07:23:45] INFO: Start "rebuild" step. -> End "rebuild" step (before the copy)
    [07:23:46] INFO: Start "copy" step. [07:24:11] End "copy" step.
    [07:24:11] INFO: Start "rebuild" step.
    [07:24:11] ERROR: (0) Failed to rebuild database schema. Doctrine\DBAL\Schema\ColumnDiff::__construct(): Argument #1 ($oldColumn) must be of type Doctrine\DBAL\Schema\Column, string given, called in /…/vendor/doctrine/dbal/src/Schema/Comparator.php on line 358; /…/vendor/doctrine/dbal/src/Schema/ColumnDiff.php:17
    [07:24:11] ERROR: (500) Database rebuild failure, details: Error while rebuilding database.
    [07:24:11] INFO: Installer: Restore previous files.
    [07:24:36] ERROR: (500) Error occurred while EspoCRM rebuild. POST /Admin/action/runUpgrade

    My interpretation (well, Claude interpretation, please correct if wrong)
    The error looks like a mix of DBAL 3 and DBAL 4: Comparator calls ColumnDiff with a column name (DBAL 3 API), while ColumnDiff expects a Column object (DBAL 4 API). Since the first rebuild step runs before the files are copied, I suspect the old Comparator class (DBAL 3) was already loaded in memory when the new files (DBAL 4) were copied, and the second rebuild then ran in the same web process. If so, upgrading 10.0.x -> 10.1.x from the UI would fail for any instance that cannot use the CLI.

    Questions
    1. Is this a known issue with the 10.1 upgrade package?
    2. Is there a recommended workaround for hosting without console access (for example a manual upgrade procedure)? The upgrade documentation does not describe one for this case.
    3. Would it help to wait for 10.1.2?

    I can provide the full log if needed. Thank you!
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1887

    #2
    Does your hosting provide CRON with php commands? This is a workaround for hostings without console access. I practice that for years already. The default commands of espoCRM like command.php upgrade -y work. If for larger upgrades your memory linit gets axhausted, you may increase it temporarily in the command.php on the server.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 10133

      #3
      Upgrading locally is also an option.

      We do not officially support upgrading via the UI for long. While patch and some minor/major upgrades usually work via UI, not every upgrade will.

      Comment

      • simprobe
        Junior Member
        • Nov 2026
        • 2

        #4
        I have the same issue when not doing it via the UI but via the CLI.

        sudo php command.php upgrade
        Current version is 10.0.12.
        EspoCRM will be upgraded to version 10.1.1 now. Enter [Y] to continue.
        Y
        This may take a while. Do not close the terminal.
        Downloading...
        Upgrading...
        Initialization...
        Copying before upgrade files...
        Rebuilding...
        Before upgrade script execution...
        Rebuilding...
        Copying files...
        Rebuilding...
        Reverting...
        Error occurred while EspoCRM rebuild. More detail in the log.

        I tried even with "-d opcache.enable_cli=0" as I saw it may relate to opcache pulling the wrong dependency and that didn't work.

        Here is the log output:
        [object] (TypeError(code: 0): Doctrine\DBAL\Schema\ColumnDiff::__construct(): Argument #1 ($oldColumn) must be of type Doctrine\DBAL\Schema\Column, string given, called in /home/web/crm.website.com/public_ht
        ml/vendor/doctrine/dbal/src/Schema/Comparator.php on line 358 at /home/web/crm.website.com/public_html/vendor/doctrine/dbal/src/Schema/ColumnDiff.php:17)
        [2026-11-15 15:41:23] ERROR: (500) Database rebuild failure, details: Error while rebuilding database. See log file for details..
        [object] (Espo\Core\Exceptions\Error(code: 500): Error while rebuilding database. See log file for details. at /home/web/crm.website.com/public_html/application/Espo/Core/DataManager.php:141)
        [2026-11-15 15:41:27] ERROR: Upgrade Error: Error occurred while EspoCRM rebuild. More detail in the log.

        Please help! Not sure what to do with this Doctrine dependency error.​

        Comment

      • simprobe
        Junior Member
        • Nov 2026
        • 2

        #5
        Hello,

        Here is the output of the log file for the relevant portion (obviously website.com is a replacement for the actual website in the path):

        [2026-11-17 12:56:23] DEBUG: Schema\Builder: ManyMany for Lead.targetLists
        [2026-11-17 12:56:23] DEBUG: Schema\Builder: ManyMany for Lead.meetings
        [2026-11-17 12:56:23] DEBUG: Schema\Builder: ManyMany for MassEmail.excludingTargetLists
        [2026-11-17 12:56:23] DEBUG: Schema\Builder: ManyMany for MassEmail.targetLists
        [2026-11-17 12:56:23] DEBUG: Schema\Builder: ManyMany for TargetList.syncWithReports
        [2026-11-17 12:56:23] DEBUG: Schema\Builder - End
        [2026-11-17 12:56:23] ERROR: (0) Failed to rebuild database schema. Doctrine\DBAL\Schema\ColumnDiff::__construct(): Argument #1 ($oldColumn) must be of type Doctrine\DBAL\Schema\Column, string given, called in /home/web/crm.website.com/public_html/vendor/doctrine/dbal/src/Schema/Comparator.php on line 358; /home/web/crm.website.com/public_html/vendor/doctrine/dbal/src/Schema/ColumnDiff.php:17
        [object] (TypeError(code: 0): Doctrine\DBAL\Schema\ColumnDiff::__construct(): Argument #1 ($oldColumn) must be of type Doctrine\DBAL\Schema\Column, string given, called in /home/web/crm.website.com/public_html/vendor/doctrine/dbal/src/Schema/Comparator.php on line 358 at /home/web/crm.website.com/public_html/vendor/doctrine/dbal/src/Schema/ColumnDiff.php:17)
        [2026-11-17 12:56:23] ERROR: (500) Database rebuild failure, details: Error while rebuilding database. See log file for details..
        [object] (Espo\Core\Exceptions\Error(code: 500): Error while rebuilding database. See log file for details. at /home/web/crm.website.com/public_html/application/Espo/Core/DataManager.php:141)
        [2026-11-17 12:56:23] INFO: Installer: Restore previous files.

        Comment


        • simprobe
          simprobe commented
          Editing a comment
          If there is another avenue to get support for a paying customer, please let me know. I purchased two of your modules for $800 and would really like this system to continue working and the base to be updated. I posted on this forum as I thought it was the appropriate route for support, but if there is an alternative avenue for paying customers (hopefully we are valued), then please let me know!

        • victor
          victor commented
          Editing a comment
          You can try the following solutions (be sure to back up your EspoCRM files and database before attempting any of them):
          1. A simpler solution: https://forum.espocrm.com/forum/inst...240#post105240. Note that this refers to the 8.1.5 package, whereas you need version 10.1.3.
          2. A more complex solution: https://forum.espocrm.com/forum/inst...345#post105345. Please also note that this discusses older versions; you will need to adapt the steps for v10.0.12 and v10.1.3.

          Regarding assistance from the EspoCRM support team: such support is a paid service. Payment for an extension grants the right to support specifically for that purchased extension (it does not cover the entire instance, database maintenance, security, server-side infrastructure, etc.). You can reach out via https://www.espocrm.com/support/.
      Working...