Closed raupie closed 5 years ago
Cannot create cache directory /var/www/composer_cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache Cannot create cache directory /var/www/composer_cache/files/, or directory is not writable. Proceeding without cache
Working on PR. Feedback welcome.
I can confirm the issue. Two days ago on a fresh install in the computer of a teammate suffered that problem.
Tested on existing project and from fresh ez init. Trying to install composer require netgen/tagsbundle
throws the errors. Composer still downloads the packages however on my host machine the ~/.composer_cache has files owned by root which makes sense since composer_install.bash recipe is being run in the container with the root user and not www-data.
Not sure if this 100% fixes it but it worked for me with a fresh ~/ez init
PR: #48
The /var/www/composer_cache/repo/https---updates.ez.no.ttl would sometimes be owned by root and cause issues. I would delete the composer_cache from my host and that would fix it.
Closing this.
I believe the fix is just to manually correct permissions in the local ~/.composer outside of the docker containers.
Just noticed the composer_cache folder is no longer owned by wwwdata but by root.