Announcement

Collapse
No announcement yet.

Error occurred while EspoCRM rebuild:

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error occurred while EspoCRM rebuild:

    Hi All

    Running an upgrade test from 6.1.10 to 7.0.10 using SSH

    /usr/bin/php7.4-cli command.php upgrade -y
    Current version is 6.1.10.
    Downloading...
    Upgrading... This may take a while..........
    Error: Error occurred while EspoCRM rebuild. Please see the log for more detail.


    See attached log for errors

    Attached Files

  • #2
    Hello,

    try maybe this solution by Yuri
    It can happen if you have MariaDB and some columns have utf8mb3 collation. To fix that you can run the script: https://forum.espocrm.com/forum/installation-and-upgrade-help/60558-id-collation-changed-after-upgrade#post61212

    Comment


    • #3
      We ran the solution above and are still getting the following errors


      ALERT: Rebuild database fault: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax

      See log attached
      Attached Files

      Comment


      • #4
        Hi MATO,

        Please tell me which version of MySQL/MariaDB are you using?

        The error log points to a bunch of Calls and Contacts. Have any changes been made to these entities and their relationships? If so, which ones?

        Comment


        • #5
          Hi Lazovic

          We are using MySQL 5.7

          We haven't changed anything in the last year to point to an issue with Calls or Contacts

          We have run another upgrade using

          (uiserver):u.....................:~/ESPOCRMTest$ /usr/bin/php7.4-cli command.php upgrade
          Current version is 6.1.10.
          EspoCRM will be upgraded to version 7.0.10 now. Enter [Y] to continue.
          y
          Downloading...
          Upgrading... This may take a while..........
          Error: Error occurred while EspoCRM rebuild. Please see the log for more detail.

          We can't see the Calls and Contacts errors you have highlighted

          See attached log file from today
          Attached Files

          Comment


          • #6
            Any help on this would be much appreciated as we cannot move forward at the moment

            Comment


            • #7
              Hi MATO,

              Try to upgrade your MySQL version before EspoCRM upgrading.

              Comment


              • #8
                Hi Vadym

                Unfortunately, our Host will only support 5.7 at present

                Comment


                • #9
                  MATO,

                  Tell me, please, if I understand correctly, do you use shared hosting?

                  Your version of MySQL is suitable for using the latest version of EspoCRM.
                  The problem may be in some settings of MySQL.
                  Last edited by lazovic; 05-19-2022, 07:10 AM.

                  Comment


                  • #10
                    Hi Lazovic

                    Our Host is IONOS and looking into the DB we can see call-_contact but have no idea how it was created.

                    We have never had an issue with the upgrade process regarding the DB

                    What settings would need to be checked on MySQL?

                    Thank you for your help with this.

                    MATO

                    Comment


                    • #11
                      MATO,

                      Does table call-_contact store any data now? Look please.

                      Comment


                      • MATO
                        MATO commented
                        Editing a comment
                        There is no data stored

                    • #12
                      strange,
                      not only call-_contact, call1, call_contact1..

                      Comment


                      • #13
                        In any case, even if there are duplicate tables, it is possible to import data into the original tables call, contact and call_contact, remove duplicate tables and try to rebuild (without updating). Before that, a database backup is required.

                        Comment


                        • #14
                          we are using Call and Contacts for an ordering system that created Call1 and Call_Contact1 and that has been in operation for 3 years with no upgrade issues.

                          If we Rename or Drop Call-_Contact the Rebuild fails

                          We are running this on the test ESPOCRM so we can try whatever is needed

                          Comment


                          • #15
                            Look on
                            custom/Espo/Custom/
                            custom/Espo/Custom/Resources/metadata/entityDefs/

                            if you have any files with Call-
                            or search in files "Call-"

                            clearCache

                            Maybe there are a corrupted file

                            Comment


                            • MATO
                              MATO commented
                              Editing a comment
                              Have checked both areas and no Call-
                          Working...
                          X