Error in Update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lanket
    Member
    • Jul 2019
    • 51

    Error in Update

    Hello.
    When trying to upgrade from version 6.0.9 to 6.0.10, it is interrupted by this error:
    php ver 7.2 whith last update on this moment


    PHP 7.2.34-18+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Feb 23 2021 15:07:41) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.34-18+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

    > echo y|php command.php upgrade
    PHP Fatal error: Declaration of PDO:repare(string $query, array $options = []) must be compatible with Doctrine\DBAL\Driver\Connection:repare($prepareString) in /home/smarthome/espocrm/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 0
    > cd /var/a/espocrm/
    > echo y|php command.php upgrade
    Current version is 6.0.9.
    EspoCRM will be upgraded to version 6.0.10 now. Enter [Y] to continue.
    Downloading...
    Upgrading... This may take a while....PHP Fatal error: Declaration of PDO:repare(string $query, array $options = []) must be compatible with Doctrine\DBAL\Driver\Connection:repare($prepareString) in /home/smarthome/espocrm/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 0

    Upgrade is complete. Current version is 6.0.9.
    Last edited by Lanket; 03-06-2021, 07:40 AM.
  • Lanket
    Member
    • Jul 2019
    • 51

    #2
    in data/logs/

    [2021-02-28 18:53:50] Espo.ERROR: Upgrade Error: Error: Rebuild is failed. Fix all errors before upgrade. [] []
    [2021-02-28 18:53:50] Espo.ERROR: Database rebuild failure, details: Permission denied for data/config.php. [] []
    [2021-02-28 18:53:50] Espo.INFO: Installer: Restore previous files. [] []
    [2021-02-28 18:53:50] Espo.ERROR: Database rebuild failure, details: Permission denied for data/config.php. [] []
    [2021-02-28 18:53:50] Espo.INFO: Installation process [603be6be989df1b93]: Start "init" step. [] []
    but config.php www-data:www-data 0666
    i try 664 and 644 not working update

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hello,
      The log says that Rebuild is failed.
      Could you run Rebuild and check whether it fails. Check the log file again?
      Before Rebuild you can also set the DEBUG mode in order to collect more data https://docs.espocrm.com/administrat...e-for-a-logger.

      Comment

      • Lanket
        Member
        • Jul 2019
        • 51

        #4
        Originally posted by Maximus
        Hello,
        The log says that Rebuild is failed.
        Could you run Rebuild and check whether it fails. Check the log file again?
        Before Rebuild you can also set the DEBUG mode in order to collect more data https://docs.espocrm.com/administrat...e-for-a-logger.
        Thank you for responding.
        It turned out to be easier.
        I have several versions of PHP installed.
        I tried the command "php 7.2 command.php upgrade" instead of " php command.php upgrade"
        And everything worked.

        Comment


        • telecastg
          telecastg commented
          Editing a comment
          Thanks for posting your solution, will save somebody, with the same issue, from a lot of headaches
          Last edited by telecastg; 03-08-2021, 06:21 AM.
      Working...