Update command from 8.4.2 to 9.0.1 does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dev77
    Senior Member
    • Feb 2018
    • 132

    Update command from 8.4.2 to 9.0.1 does not work

    Script no longer works:

    Code:
    php command.php upgrade
    Current version is 8.4.2.
    EspoCRM will be upgraded to version 9.0.1 now. Enter [Y] to continue.
    Y
    This may take a while. Do not close the terminal.
    Downloading...
    It does not hang... just quits after the "Downloading" and it ends immediately. It is not downloading anything.

    If I use a specific version of PHP it still does not work:

    Code:
    xxxx@xxxx:~/public_html/xxxx.com/espocrm2$   usr/local/bin/php83 command.php upgrade​
    Current version is 8.4.2.
    EspoCRM will be upgraded to version 9.0.1 now. Enter [Y] to continue.
    Y
    This may take a while. Do not close the terminal.
    Downloading...
    xxxx@xxxx:~/public_html/xxxx.com/espocrm2$
    EspoCRM still runs fine. No damage was done.

    Suggestions?​
  • murugappan
    Active Community Member
    • Aug 2017
    • 480

    #2
    dev77 HI . Espocrm 9.0.x requires PHP version 8.2 and above. It is not installable in PHP < 8.2. Please check your PHP version.

    Comment

    • dev77
      Senior Member
      • Feb 2018
      • 132

      #3
      Originally posted by murugappan
      dev77 HI . Espocrm 9.0.x requires PHP version 8.2 and above. It is not installable in PHP < 8.2. Please check your PHP version.
      usr/local/bin/php83 command.php upgrade
      I tried with PHP 8.4 and I show above trying with 8.3

      As I said... no error message, no hang... just stops.

      Is anyone else having an issue trying to update from EspoCRM 8.4.2 to 9.x?

      Comment

      • lazovic
        Super Moderator
        • Jan 2022
        • 823

        #4
        Hi dev77,

        Please check if there is anything in the EspoCRM instance logs or in the server logs?

        Comment

        • dev77
          Senior Member
          • Feb 2018
          • 132

          #5
          Originally posted by lazovic
          Hi dev77,

          Please check if there is anything in the EspoCRM instance logs or in the server logs?
          There is nothing in the /data/ log. Where is there another log?

          Comment

        • bandtank
          Active Community Member
          • Mar 2017
          • 384

          #6
          I upgraded from 9.0.0 to 9.0.1 without any issues a few minutes ago. FYI in case that matters or helps.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8574

            #7
            The package is 30MB. It could be that the the PHP process terminated without being able to log anything. Maybe be a memory limit issue.
            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

            • dev77
              Senior Member
              • Feb 2018
              • 132

              #8
              Originally posted by yuri
              The package is 30MB. It could be that the the PHP process terminated without being able to log anything. Maybe be a memory limit issue.
              I have this in the .user.ini file:

              Code:
              max_execution_time = 180
              max_input_time = 180
              memory_limit = 524M
              post_max_size = 50M
              upload_max_filesize = 50M
              It didn't help. The CLI command just stops (see above).

              Comment

              • yuri
                Member
                • Mar 2014
                • 8574

                #9
                Maybe this config is for the webserver, not for PHP CLI?
                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

                • dev77
                  Senior Member
                  • Feb 2018
                  • 132

                  #10
                  Originally posted by yuri
                  Maybe this config is for the webserver, not for PHP CLI?
                  The CLI is running 8.3.15;

                  xxxx@vpsxxxx9$ php --version
                  PHP 8.3.15 (cli) (built: Dec 20 2024 14:07:08) (NTS)
                  Copyright (c) The PHP Group
                  Zend Engine v4.3.15, Copyright (c) Zend Technologies

                  Comment

                  • dev77
                    Senior Member
                    • Feb 2018
                    • 132

                    #11
                    SOLVED:

                    I don't know why this worked. Perhaps someone will tell me. I never had to use the php -d parm before.

                    Code:
                    php -d  memory_limit=524M command.php upgrade
                    
                    Current version is 8.4.2.
                    EspoCRM will be upgraded to version 9.0.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...
                      Copying after upgrade files...
                      Rebuilding...
                      After upgrade script execution...
                      Rebuilding...
                      Finalization...
                    Upgrade is complete. Current version is 9.0.1.
                    You have the latest version.
                    I upgraded and have it running with PHP 8.3.x and works fine.

                    I don't know why the upgrade worked even though I had a .user.ini file with the high memory_limit. I guess the php cli does not see it!!!

                    Comment

                    Working...