how to upgrade from espocrm 8.4.2 installed by offial script ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirk.dinger
    Junior Member
    • Nov 2018
    • 20

    how to upgrade from espocrm 8.4.2 installed by offial script ?

    I have version 8.4.2 installed by script. I tried to upgrade using the "command.sh upgrade". This hat no errors but did not change anything.
    As I looked in the docker-compose.yml file that had been installed by the script this points to the image espocrm:fpm. In the docker registry there seems to be no tag pointing to a version 9.
    So I am wondering how the update process is supposed to work when the docker compose file is not changed to another tag or the tag pointing to a newer version ?

    Then I tried the upgrade via the UI using the 8.4.2_to_9.0.0.zip. This raised error 413.

    Any ideas ?

    Thanks for help with this really great product.
    Dirk
  • emillod
    Active Community Member
    • Apr 2017
    • 1430

    #2
    Hi dirk.dinger Please read this tutorial
    Upgrading - EspoCRM Documentation

    You're using docker or standard version?
    Last edited by emillod; Today, 09:11 AM.

    Comment

    • lazovic
      Super Moderator
      • Jan 2022
      • 820

      #3
      Hi dirk.dinger,

      Kindly ask you to note that you should not use standard upgrade commands if your EspoCRM instance is installed by an official script.

      EspoCRM v9.0.0 is not yet available on Docker Hub; please wait a few days and you will be able to upgrade your instance with a command.sh upgrade command.

      Comment

      • mwo300
        Junior Member
        • Feb 2024
        • 19

        #4
        Hi dirk.dinger

        What PHP Version do you receive at:

        sudo docker -it espocrm php -v (must be higher 8.2)

        If your docker-compose.yml includes the espocrm.fpm, this command should help to upgrade your php version for the docker:
        sudo docker pull espocrm/espocrm:fpm

        recheck PHP Version: docker exec -it espocrm php -v (should be 8.2.4 or so)

        After that:
        sudo docker compose down

        sudo docker compose up --build -d


        For the upgrade, you then can access the docker with:
        sudo docker exec -it espocrm /bin/bash

        You should be logged in as root to your docker. Now you can upgrade:
        php command.php upgrade -y​


        after that you should run
        php clear_cache.php
        php rebuild.php

        Finally either reboot your linux machine or restart the services with the command.sh

        ....note: i'm currently at the rebuild.... my ui shows 2025 and i got the new fonts, but i'm still getting an Error 500. but i'm optimistic to get it to work shortly.

        Comment

        • lazovic
          Super Moderator
          • Jan 2022
          • 820

          #5
          To avoid errors with the upgrade, if you are using the EspoCRM instance, which is installed by the official script, it is better to wait for a new version on Docker Hub. This is where the collective image for the version update is pulled from. If you upgrade such an instance manually, this can lead to problems: if not now, then in the future.

          Comment

          • mwo300
            Junior Member
            • Feb 2024
            • 19

            #6
            so what you are saying is, if i run the command.sh upgrade, it will automatically upgrade once is published on dockerhub?

            Comment

            • lazovic
              Super Moderator
              • Jan 2022
              • 820

              #7
              mwo300,

              Yes, that's exactly what I mean.

              Upgrading an instance installed by a script is done with the following command:
              Code:
              sudo /var/www/espocrm/command.sh upgrade
              Upgrading an instance installed manually via Docker or Docker Compose is done with the following command:​
              Code:
              docker compose pull && docker compose up -d

              Comment

              Working...