I use Lando to set up most of my local environments. While I really like the ease of use and uniformity of Lando for doing local development, sometimes it throws the weirdest errors. such was the case for: Lando Update of drupal core failed RuntimeException Could not delete /app/vendor/composer/ Luckily there is always a solution around the corner
Lando Update of drupal core failed RuntimeException Could not delete /app/vendor/composer/
This looked like a permissions issue at first but eventually I remembered one of my co-workers tip about lando timing out causing weird issues. He mentioned that Eventually the fix was simply increasing the process-timeout can fix the issue. sure enough that was it All I had to do is run
lando composer config --global process-timeout 6000
Then run my command composer command right afterwards.
After a few long sips of coffee sure enough the script ran fine and I was able to update core.
If this solution resolves your issue, great! You can now successfully update your Drupal core. However, if the problem persists, there are additional resources available to assist you. Consider referring to a helpful Stack Overflow article related to this topic. It may provide further insights or alternative solutions. Take a look at this stack overflow article.
For more Drupal-related content, you can explore my other blog posts tagged under the Drupal category. Stay updated with the latest tips, tricks, and troubleshooting methods. You can find other drupal related blog posts under the drupal tag.
Let me know in the comment section, if this help with your issue. Feel free to leave a comment in the section below, sharing your experience and letting us know if this solution worked for you.
Also feel free to subscribe to the blog, I share tips and tricks about website development and other interesting topics.