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

jnbn's avatar
Level 13

Deployment Error: No such file or directory

I have a vapor setup which was working properly until last week, even i didn't change any configurations I started getting an error on the deployment stage with a bitbucket pipeline.

Install, Build, Test&Lint phases are working without any problems.

But when it comes to deployment to vapor test env I'm getting an error but couldn't figure it out.

I'd be happy for any suggestions for ideas

  ================                                                             
                                                                               
                                                                               
  Error Output:                                                                
  ================                                                             
  Do not run Composer as root/super user! See https://getcomposer.org/root fo  
  r details                                                                    
  For additional security you should declare the allow-plugins config with a   
  list of packages names that are allowed to run code. See https://getcompose  
  r.org/allow-plugins                                                          
  You have until July 2022 to add the setting. Composer will then switch the   
  default behavior to disallow all plugins.                                    
  Installing dependencies from lock file                                       
  Verifying lock file contents can be installed on current platform.           
  Package operations: 0 installs, 0 updates, 72 removals                       
    - Removing theseer/tokenizer (1.2.1)                                       
    - Removing symfony/filesystem (v6.0.0)                                     
    - Removing symfony/dom-crawler (v4.4.36)                                   
    - Removing symfony/dependency-injection (v6.0.2)                           
    - Removing symfony/debug (v4.4.36)                                         
    - Removing symfony/config (v6.0.2)                                         
    - Removing symfony/browser-kit (v4.4.27)                                   
    - Removing seld/phar-utils (1.2.0)                                         
    - Removing seld/jsonlint (1.8.3)                                           
    - Removing sebastian/version (3.0.2)                                       
    - Removing sebastian/type (2.3.4)                                          
    - Removing sebastian/resource-operations (3.0.3)                           
    - Removing sebastian/recursion-context (4.0.4)                             
    - Removing sebastian/object-reflector (2.0.4)                              
    - Removing sebastian/object-enumerator (4.0.4)                             
    - Removing sebastian/lines-of-code (1.0.3)                                 
    - Removing sebastian/global-state (5.0.3)                                  
    - Removing sebastian/exporter (4.0.4)                                      
    - Removing sebastian/environment (5.1.3)                                   
    - Removing sebastian/diff (4.0.4)                                          
    - Removing sebastian/complexity (2.0.2)                                    
    - Removing sebastian/comparator (4.0.6)                                    
    - Removing sebastian/code-unit-reverse-lookup (2.0.3)                      
    - Removing sebastian/code-unit (1.0.8)                                     
    - Removing sebastian/cli-parser (1.0.1)                                    
    - Removing react/promise (v2.8.0)                                          
    - Removing phpunit/phpunit (9.5.11)                                        
    - Removing phpunit/php-timer (5.0.3)                                       
    - Removing phpunit/php-text-template (2.0.4)                               
    - Removing phpunit/php-invoker (3.1.1)                                     
    - Removing phpunit/php-file-iterator (3.0.6)                               
    - Removing phpunit/php-code-coverage (9.2.10)                              
    - Removing phpstan/phpstan (1.3.0)                                         
    - Removing phpspec/prophecy (v1.15.0)                                      
    - Removing phpdocumentor/type-resolver (1.5.1)                             
    - Removing phpdocumentor/reflection-docblock (5.3.0)                       
    - Removing phpdocumentor/reflection-common (2.2.0)                         
    - Removing phar-io/version (3.1.0)                                         
    - Removing phar-io/manifest (2.0.3)                                        
    - Removing overtrue/phplint (3.1.0)                                        
    - Removing nunomaduro/larastan (1.0.2)                                     
    - Removing nunomaduro/collision (v5.10.0)                                  
    - Removing n98/junit-xml (1.1.0)                                           
    - Removing myclabs/deep-copy (1.10.2)                                      
    - Removing mockery/mockery (1.4.4)                                         
    - Removing maximebf/debugbar (v1.17.3)                                     
    - Removing laravel/sail (v1.12.12)                                         
    - Removing laracasts/generators (2.0.0)                                    
    - Removing laracasts/behat-laravel-extension (1.1.1)                       
    - Removing justinrainbow/json-schema (5.2.11)                              
    - Removing hamcrest/hamcrest-php (v2.0.1)                                  
    - Removing filp/whoops (2.14.4)                                            
    - Removing fakerphp/faker (v1.17.0)                                        
    - Removing facade/ignition-contracts (1.0.2)                               
    - Removing facade/ignition (2.17.4)                                        
    - Removing facade/flare-client-php (1.9.1)                                 
    - Removing doctrine/instantiator (1.4.0)                                   
    - Removing composer/xdebug-handler (2.0.3)                                 
    - Removing composer/spdx-licenses (1.5.6)                                  
    - Removing composer/semver (3.2.7)                                         
    - Removing composer/pcre (1.0.0)                                           
    - Removing composer/metadata-minifier (1.0.0)                              
    - Removing composer/composer (2.2.3)                                       
    - Removing composer/ca-bundle (1.3.1)                                      
    - Removing behat/transliterator (v1.3.0)                                   
    - Removing behat/mink-browserkit-driver (v1.4.1)                           
    - Removing behat/mink (v1.9.0)                                             
    - Removing behat/gherkin (v4.9.0)                                          
    - Removing behat/behat (v3.10.0)                                           
    - Removing barryvdh/reflection-docblock (v2.0.6)                           
    - Removing barryvdh/laravel-ide-helper (v2.10.0)                           
    - Removing barryvdh/laravel-debugbar (v3.6.5)                              
                                                                               
  In ClassLoader.php line 571:                                                 
                                                                               
                                                                               
    include(/opt/atlassian/pipelines/agent/build/.vapor/build/app/vendor/comp  
  os                                                                           
    er/../composer/composer/src/Composer/Console/GithubActionError.php): Fail  
  ed                                                                           
     to open stream: No such file or directory                                 
                                                                               
                                                                               
                                                                               
                                                                               
  install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL]  
   [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-prog  
  ress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|-  
  -classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU  
  -AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-p  
  latform-reqs] [--] [<packages>...]                                           
                                                                               
deploy [--commit [COMMIT]] [--message [MESSAGE]] [--without-waiting] [--fresh-assets] [--build-arg BUILD-ARG] [--] [<environment>]
Build teardown
0 likes
1 reply

Please or to participate in this conversation.