PHP Fatal error: Uncaught RuntimeException: Unable to create the Doctrine Proxy directory on SuiteCRM clean installation

i had a problem with a dockerized SuiteCRM 8.6 fresh installation that return everytime i try to rebuild the cache from user interface:

PHP Fatal error: Uncaught RuntimeException: Unable to create the Doctrine Proxy directory “/bitnami/suitecrm/cache/prod/doctrine/orm/Proxies”.

After too many days of testing i realized that the problem seems to be related to a incompatibility between SuiteCRM (Symphony) and Docker’s bind mount.

I have tested in different ways:

  1. Permissions and file ownership are double-checked. Keep in mind that cache rebuilding from UI is started by apache user (www-data), and file ownership and group is www-data:www-data.

  2. The problem is present everytime i work with docker’s bind mount, but strangely works perfectly if i try with bitnami official release without bind mount. If i set bind mount in this installation, the problem occurs again.

I have asked for help on Official Support Forum here and GitHub with no luck.

Anyone have an idea about how solve this problem?

Thanks in advance.