Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Lebod's avatar

Error Deploying from BitBucket

Hi everyone, We have a staging\production environment that's been working really well for the past few months. As of last week, we've been getting errors deploying from Forge. The error says:

[RuntimeException]
Could not delete /home/forge/DOMAIN/vendor/phpunit/phpunit/ChangeLog-4.0.md:

I'm a basic sysadmin for the app. I've contacted support and they mentioned that it might be:

"some kind of issue in that dependency. You might try clearing the vendor folder and re-installing it."

I wasn't sure how to actually do that.

Would anybody have an idea how to fix this?

0 likes
5 replies
Lebod's avatar

Ok, now we get the following error:

[ErrorException] touch(): Utime failed: Permission denied

helmerdavila's avatar

Check if the files have your username. Maybe the problem is file owner permission. You can change the ownership with

chown yourname:yourname filename
Lebod's avatar

The whole vendor folder's files were root:root. We haven't changed those. I'm wondering how in the world that could have happened...

Please or to participate in this conversation.