UDOIT icon indicating copy to clipboard operation
UDOIT copied to clipboard

Docker: Failure to open files in /var/www/html directory

Open bagofarms opened this issue 1 year ago • 2 comments

Multiple institutions have reported critical error messages coming from the php and web containers similar to this:

php.CRITICAL: Uncaught Error: Failed opening required '/var/www/html/var/cache/prod/doctrine/orm/Proxies/__CG__AppEntityInstitution.php' (include_path='.:/usr/local/lib/php') {"exception":"[object] (Error(code: 0): Failed opening required '/var/www/html/var/cache/prod/doctrine/orm/Proxies/__CG__AppEntityInstitution.php' (include_path='.:/usr/local/lib/php') at /var/www/html/vendor/doctrine/common/src/Proxy/AbstractProxyFactory.php:197)"} []

As a possible workaround, one institution was able to get it working by running docker exec udoit-web-1 chown -R www-data:www-data /var/www.

Platforms affected seem to be Linux, specifically one is Fedora.

bagofarms avatar Jan 11 '23 22:01 bagofarms

Would it be sufficient to have that command run while the server starts up? Could take a crack at it if so.

dmols avatar Jan 18 '23 18:01 dmols

I would rather figure out what the actual issue is rather than putting a bandaid on it. In order to replicate this issue, you'll probably have to set up a Fedora virtual machine using vmware or virtualbox or something.

bagofarms avatar Jan 24 '23 20:01 bagofarms