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

wg's avatar
Level 3

Deployment fails without error

Hi there!

I'm trying to install a repository from bitbucket via forge. All the sha-keys are setup and I've used this workflow before. Last time was 2 years ago, so apparently something changed: The cloning is successful, the composer dependencies are installed and then the error log ends. I can see during cloning, that all the files are showing up on the server. But in the end, the deployment fails and all I'm left with are the public and vendor directories. Everything else gets deleted.

Has anyone seen this before?

0 likes
2 replies
JohnBraun's avatar

Do you run the standard deploy script or a modified script?

Could you share the "latest deploy log" from Forge here? (leaving out any details you don't want to share of course)

wg's avatar
Level 3

Ha! Thx! The cloning is working, but there is an error while installing the dependencies:

Failed to download phpunit/php-timer from dist: The "https://codeload.github.com/sebastianbergmann/php-timer/legacy.zip/8b389aebe1b8b0578430bda0c7c95a829608e059" file could not be written to /home/forge/***/vendor/phpunit/php-timer/be1cfafadc9c5a877bed2c4cde85b5c4: failed to open stream: No such file or directory
    Now trying to download from source
  - Installing phpunit/php-timer (2.1.1): Cloning 8b389aebe1

                                                                                                          
  [RuntimeException]                                                                                      
  Failed to clone https://github.com/sebastianbergmann/php-timer.git via https, ssh protocols, aborting.  
                                                                                                          
  - https://github.com/sebastianbergmann/php-timer.git                                                    
    sh: 0: getcwd() failed: No such file or directory                                                     
    fatal: Could not get current working directory: No such file or directory                             
                                                                                                          
  - [email protected]:sebastianbergmann/php-timer.git                                                        
    sh: 0: getcwd() failed: No such file or directory                                                     
    fatal: Could not get current working directory: No such file or directory   

Please or to participate in this conversation.