Upgrade problems 5.9.4 to 6.0.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murray99
    Member
    • Jan 2017
    • 57

    Upgrade problems 5.9.4 to 6.0.0

    Hi,
    I'm running 5.9.4 on a windows IIS setup.

    Attempt 1:
    if I run:
    php command.php upgrade
    i get
    Could not get info about next version.

    Attempt 2:
    if I run with the zip folder next to command.php

    php -f command.php upgrade -y --file="EspoCRM-upgrade-5.9.4-to-6.0.0.zip"
    I get
    Current version is 5.9.4.
    Upgrading... This may take a while....'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    Attempt 3:
    changes Upgrade.php line 344 to curl_setopt($ch, \CURLOPT_SSL_VERIFYPEER, false);
    I run:
    php -f command.php upgrade
    I get:
    Current version is 5.9.4.
    EspoCRM will be upgraded to version 6.0.0 now. Enter [Y] to continue.
    y
    Downloading...
    Upgrading... This may take a while...Error: It's not an Installation package.

    Any ideas?

    Thanks
  • murray99
    Member
    • Jan 2017
    • 57

    #2
    Fixed my Curl SSL:
    https://www.saotn.org/dont-turn-off-...configuration/

    and so Upgrade.php line 344 is back to:
    curl_setopt($ch, \CURLOPT_SSL_VERIFYPEER, true);

    I ran
    php -f command.php upgrade

    i get:

    Current version is 5.9.4.
    EspoCRM will be upgraded to version 6.0.0 now. Enter [Y] to continue.
    y
    Downloading...
    Upgrading... This may take a while....'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    Upgrade is complete. Current version is 5.9.4.
    Last edited by murray99; 10-23-2020, 04:32 PM.

    Comment

    • murray99
      Member
      • Jan 2017
      • 57

      #3
      I've tracked it down to
      Upgrade.php line 283
      $shellResult = shell_exec($command);

      that is throwing the error.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        Try to run the command with -s parameter (in a single process). See https://docs.espocrm.com/administrat...nal-parameters
        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

        • murray99
          Member
          • Jan 2017
          • 57

          #5
          Bingo! Thanks Yuri

          Comment

          Working...