Announcement

Collapse
No announcement yet.

Upgrade problems 5.9.4 to 6.0.0

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

  • 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

  • #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


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

      that is throwing the error.

      Comment


      • #4
        Try to run the command with -s parameter (in a single process). See https://docs.espocrm.com/administrat...nal-parameters

        Comment


        • #5
          Bingo! Thanks Yuri

          Comment

          Working...
          X