- Issue created by @maxilein
Does that Drupal instance have as its configured temporary directory something adjacent to or below the directory containing
composer.json
?- πΊπΈUnited States phenaproxima Massachusetts
In Package Manager terminology, the "active directory" is the root of the Drupal project: basically, wherever the main project-level composer.json is.
The "stage directory" (which we are going to rename "sandbox directory" for clarity) needs to be in a temporary directory that is outside the Drupal project. Usually Package Manager will try to compute it by asking the system where the overall temporary directory is (for example,
/tmp
on most Linux systems), so if the temporary directory is, for some reason, a subdirectory of the Drupal project, you'd get this error. - π¦πΉAustria maxilein
Thank you. For the example below I added /active_directory in the structure.
/../active_directory/composer.json
/../active_directory/web/ (= Drupal) index.php
/../active_directory/web/vendor
/../active_directory/web/tmp
/../active_directory/web/recipes
/../active_directory/web/privatewasn't this the recommended structure until Drupal 9 or 10?
- πΊπΈUnited States phenaproxima Massachusetts
/../active_directory/composer.json
/../active_directory/web/tmp
This is probably the core of the problem. The temp directory needs to NOT be inside the active directory. In other words, something like this would work better, if you can configure your set-up accordingly:
../active_directory/composer.json
/tmp