Announcement

Collapse
No announcement yet.

Upgrade from 5.9.4 to 6.0.10 issue

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

  • nickh
    replied
    lazovic Reinstalled from scratch once more to new directory.
    Copied entire website​ plus database again. Uploaded. Upgraded from 5.7.11 to 5.9.4 via CLI.
    Checked permissions as suggested - all good but chmod 754 bin/command; returned chmod: cannot access 'bin/command': No such file or directory​

    Upgrade via CLI to 6.0.10 succeeded.
    => 6.1.5 succeeded
    => 6.1.8 succeeded
    => 6.1.9 succeeded
    then all the way to
    Upgrade is complete. Current version is 7.2.7.
    You have the latest version.​

    So definitely a permissions issue although slightly confused as to why it only affected this instance and none of the others we moved over the last week.
    Many thanks for your assistance. yuri as well.
    Nick


    Leave a comment:


  • lazovic
    commented on 's reply
    Please check permissions for your instance: https://docs.espocrm.com/administrat...-based-systems.

  • nickh
    replied
    OK - we went back to basics and managed to get to V6.0.10 and then...
    Current version is 6.0.10.
    EspoCRM will be upgraded to version 6.1.5 now. Enter [Y] to continue.
    y
    Downloading...
    Upgrading... This may take a while..........PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 393
    PHP Warning: chown(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 415
    PHP Warning: chgrp(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 426
    PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 403
    PHP Warning: chown(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 415
    PHP Warning: chgrp(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 426
    PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/carterwellington.com/crm.carterwellington.com/application/Espo/Core/Utils/File/Permission.php on line 393
    PHP Warning: chown(): Operation not permitted in​

    It just repeats this over and over about 40 times?

    Leave a comment:


  • nickh
    replied
    Thanks Yuri - we are winding it all back and reinstalling to a new directory. Will advise if issue persists.

    Leave a comment:


  • yuri
    replied
    It seems that some files are from 5.9, when others from 6.0. Espo\ORM\EntityFactory is an interface in v6.0, but in your case it's a class.

    Leave a comment:


  • yuri
    replied
    Maybe PHP CLI is not 7.4? Command to check: php -v

    Leave a comment:


  • nickh
    replied
    Thanks Yuri
    We are currently running 7.4.33.
    Should also point out that we have 2 other instances of your fabulous CRM that we moved to the new server. Both upgraded successfully to 7.2.7 without issue.
    All are vanilla installations with no custom code.
    Last edited by nickh; 11-30-2022, 12:15 PM.

    Leave a comment:


  • yuri
    replied
    Hi Nick,

    When Espo v6.0 was released PHP 8.0 was not yet released. Might be there's some incompatibility not allowing to upgrade.

    Leave a comment:


  • nickh
    started a topic Upgrade from 5.9.4 to 6.0.10 issue

    Upgrade from 5.9.4 to 6.0.10 issue

    Hi all
    We are migrating our installation to a new server running PHP 7.4.33 and MariaDB V10.6.11.​ We have PHP 8.0.27 available if needed.
    Running upgrade from the CLI gives the following error:
    Upgrade Error: Error: Argument 3 passed to Espo\Core\Repositories\Database::__construct() must be an instance of Espo\Core\ORM\EntityFactory, instance of Espo\ORM\EntityFactory given, called in /var/www/html/EspoCRM-7.1.11/application/Espo/ORM/RepositoryFactory.php on line 54
    Have looked through the forum and online but nothing suggested appears to fix the issue.
    Can anybody offer advice please?
    Nick​
Working...
X