PHP Fatal error: Uncaught RuntimeException: Unable to create the Doctrine Proxy directory "/var/www/html/cache/prod/doctrine/orm/Proxies" on fresh installation v 8.6

Thanks for your suggestions @chris001. I have clarified further about this problem and asked more suggestions around the world (see this post on StackOverflow, please upvote if is useful for you).

The problem had its origins on docker bind-mount system, probably for permissions issues between host machine and container.

Solution is “to esclude” /cache folder from docker-compose.yml bind mount like below:

services:
  suitecrm:
    container_name: suitecrm
    build: .
    volumes:
      #SuiteCRM Application Folder
      - ./www:/var/www/html:delegated
      - /var/www/html/cache/   #Another volume with cache subfolder inside the existing one

In this way cache subfolder can re-create proxy classes on rebuild and repair.

Thanks.

3 Likes