Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bagofarms opened this issue Jan 11, 2023 · 2 comments
Open

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

bagofarms opened this issue Jan 11, 2023 · 2 comments

Comments

@bagofarms
Copy link
Member

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.

@dmols
Copy link
Contributor

dmols commented Jan 18, 2023

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

@bagofarms
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants