Error after upgrad from 7.14.3 to 8.5.1

Iā€™ve successfully upgraded SuiteCRM from 7.14.3 to 8.5.1, but now Iā€™m getting some errors:

  1. After clicking on ā€œRepairā€ > ā€œQuick Repair and Rebuild,ā€ Iā€™m encountering an error upon redirection to the dashboard: "Unexpected error calling action.

  2. When I attempt to add a Lead or Account, Iā€™m receiving a blank page.

ā†’ I found in Log file [WARN] ModuleNameMapper | mapName | ā€˜accountsā€™ not mapped to ā€˜frontendā€™

ā†’ Thu Feb 22 11:00:28 2024 [47969][a8379bed-9bac-cfd9-4620-51758335d71d][ERROR] ERROR: Unable to remove directory /sugar85/public/legacy/modules/Administration/ā€¦/ā€¦/ā€¦/ā€¦/cache//prod/ContainerQgqZMPp
Thu Feb 22 11:00:28 2024 [47969][a8379bed-9bac-cfd9-4620-51758335d71d][ERROR] ERROR: Unable to remove directory /sugar85/public/legacy/modules/Administration/ā€¦/ā€¦/ā€¦/ā€¦/cache//prod
Thu Feb 22 11:00:28 2024 [47969][a8379bed-9bac-cfd9-4620-51758335d71d][ERROR] ERROR: Unable to remove directory /sugar85/public/legacy/modules/Administration/ā€¦/ā€¦/ā€¦/ā€¦/cache/

It seems you have ownership/permissions issues on your installation - SuiteCRM canā€™t write to the cache directory.

If you are using the terminal you can do this by running:

find . -type d -not -perm 2755 -exec chmod 2755 {} \;
find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console

Many thanks for your feedback, this error ā€œERROR: Unable to remove directoryā€ is related to ownership/permissions. I changed as suggest and the error is fixed.

But still getting the error 1. After clicking on ā€œRepairā€ > ā€œQuick Repair and Rebuild,ā€ Iā€™m encountering an error upon redirection to the dashboard: "Unexpected error calling action.

You can try clearing the Symfony cache (at the root level, delete the contents of the cache directory)

Many thanks, after clearing the Symfony cache it works perfect

The CLI upgrade should add the code at the end of the installation to automatically clear the Symfony cache.

Iā€™m pretty sure (though not 100%) that that code is there. I believe this manual clearing is only needed when something breaks in the middle of the upgrade. Thatā€™s why paying attention to the messages on screen during the upgrade is useful.