Upgrade from 6.1.8 to 9.1.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • preacherrichd
    Junior Member
    • Sep 2025
    • 15

    #1

    Upgrade from 6.1.8 to 9.1.8

    I have data on Espocrm 6.1.8 version. I am not able to log in. So I cannot update it to 9.1.8.

    is there a way to import the data from 6.1.8 into 9.1.8? I am assuming I cannot jdo a MySQL dump because the database s probably are the not same. Any resolution?
  • victor
    Active Community Member
    • Aug 2022
    • 1026

    #2
    You need to fix your 6.1.8 and upgrade it to 9.1.8.
    - Enable Debug mode: https://docs.espocrm.com/administrat...ng/#debug-mode.
    - Reproduce the error.
    - Provide part of the log with this error. EspoCRM log files are located in {ESPO_ROOT}/data/logs/ directory. Most errors are logger there.

    Another option: you can create clean 6.1.8 and move dump.sql, /custom and /data there. And only then update to 9.1.8. This is described in detail here: https://forum.espocrm.com/forum/inst...345#post105345.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9440

      #3
      Downgrade PHP version to one that was the latest at the moment 6.1.0 was released. Then upgrade to a few version up using the upgrade command. Then, upgrade PHP, and then upgrade Espo again. PHP version must be one that is compatible with Espo version.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9440

        #4
        v6.1.0 – supports PHP v8.0. With this PHP, you can upgrade up to Espo v8.0 (inclusively). Then, upgrade PHP to v8.2. With this PHP, you can upgrade to Espo v9.1. Then, you can upgrade PHP to v8.4.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • preacherrichd
          Junior Member
          • Sep 2025
          • 15

          #5
          This is the error I keep getting:
          ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Bad data stored in file 'data/cache/application/webhooks.php'." at /chroot/home/creating/creatingfutures.org/html/leads/application/Espo/Core/Utils/File/Manager.php line 234 {"exception":"[object] (Espo\\Core\\Exceptions\\Error(code: 500): Bad data stored in file 'data/cache/application/webhooks.php'. at /chroot/home/creating/creatingfutures.org/html/leads/application/Espo/Core/Utils/File/Manager.php:234)"} []

          Comment

          • yuri
            EspoCRM product developer
            • Mar 2014
            • 9440

            #6
            Delete data/cache manually.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • preacherrichd
              Junior Member
              • Sep 2025
              • 15

              #7
              One of the errors:
              This occurs when i try to login using one of my admin usernames. After I get the error to login I then go to recovery password and I get another error.
              2025-09-20 14:22:24] INFO: AUTH: Trying to login as user 'admin' by token but token is not found. [] []
              [2025-09-20 14:22:24] INFO: AUTH: Trying to login as user 'admin' by token but token is not found. [] []
              [2025-09-20 14:22:49] WARNING: Password recovery: User jadover@mydomain not found. [] []
              [2025-09-20 14:22:49] DEBUG: API (404) POST /User/passwordChangeRequest; Input data: {"userName":"josh","emailAddress":"jadover@mydo mai n","url":"https://www.mydomain/leads/"}; Route pattern: /User/passwordChangeRequest; Route params: Array ( [controller] => User [action] => passwordChangeRequest ) [] []
              [2025-09-20 14:22:49] ERROR: (404) POST /User/passwordChangeRequest; line: 306, file: /chroot/home/creating/mydomain/html/leads/application/Espo/Core/Password/Recovery.php [] []
              Last edited by preacherrichd; 09-20-2025, 02:33 PM.

              Comment

              • preacherrichd
                Junior Member
                • Sep 2025
                • 15

                #8
                I finally was able to log in by changing php to 7.4.33. it appears there was a delay in the php downgrade.

                Comment

                • preacherrichd
                  Junior Member
                  • Sep 2025
                  • 15

                  #9
                  Even though I can log in there are bugs, cannot save items. Keep getting this error message:
                  Error 500: Bad data stored in file 'data/cache/aoolication/webhooks.php'.

                  So now that I can get into espocrm 6.1.8 is there anyway to export the data into a file. Install 9.1.8 and import data from 6.1.8.
                  Because I am getting the error message I am concerned that if i do several incremental upgrades at some point I may lose my data.

                  I see I can import data as csv but I do not see anyway to export data via csv.

                  Comment

                  • yuri
                    EspoCRM product developer
                    • Mar 2014
                    • 9440

                    #10
                    These are not bugs. Likely file permissions problem. You need to delete data/cache manually, and make sure file permissions are fine.

                    You can dump the whole database and backup the 'data' and 'custom' folders.

                    But I'd recommend to upgrade the normal way.
                    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                    Comment

                    • preacherrichd
                      Junior Member
                      • Sep 2025
                      • 15

                      #11
                      I deleted cache. No longer get the Error 500. But if I do any edits in a users profile and try to save it, get message user already exists. When I close out the user profile get the warning not saved. So no way to save info. I do not see how permissions could have changed since no changes to the files. Where can I find what the permissions should be and what folders/files would be related to this issue.

                      Regarding updgrading. Can I upgrade from 6.1.8 to latest of version 7, then to latest of version 8, then latest of version 9, or do I have to go from subversion to subversion.
                      Last edited by preacherrichd; 09-20-2025, 06:05 PM.

                      Comment

                      • preacherrichd
                        Junior Member
                        • Sep 2025
                        • 15

                        #12
                        Regarding updgrading. Can I upgrade from 6.1.8 to latest of version 7, then to latest of version 8, then latest of version 9, or do I have to go from subversion to subversion.

                        Comment

                        • victor
                          Active Community Member
                          • Aug 2022
                          • 1026

                          #13
                          First you will have to use the Legacy way to upgrade: https://docs.espocrm.com/administrat...way-to-upgrade. It all depends on the possible upgrade files: https://www.espocrm.com/download/upgrades/ and they will mostly be "from subversion to subversion".
                          To verify that your instance is running successfully after each Upgrade, you can make Rebuild from UI (or by CLI):
                          HTML Code:
                          php rebuild.php
                          You can continue to upgrade by a similar way, but periodically from version to version you can check root folder for the presence of the command.php file. Once this file appears, you can switch to the most convenient method by CLI:

                          HTML Code:
                          php command.php upgrade

                          Comment

                          Working...