Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The parameter "kernel.build_dir" must be defined. #39250

Closed
@arcticlinux

Description

@arcticlinux

Everything looks to be configured, I can't figure out what is different on my production environment that makes it throw this error, if I change APP_ENV to prod on my dev server it works fine too.

After updating to 5.2 and testing in dev, running cache:clear on prod throws the following error:

Script cache:clear returned with error code 1
!!  09:56:01 ERROR     [console] Error thrown while running command "--ansi cache:clear". Message: "The parameter "kernel.build_dir" must be defined." ["exception" => Symfony\Component\DependencyInjection\Exception\InvalidArgumentException^ { …},"command" => "--ansi cache:clear","message" => "The parameter "kernel.build_dir" must be defined."]
!!  
!!  In App_KernelProdContainer.php line 885:
!!                                                       
!!    The parameter "kernel.build_dir" must be defined.  
!!                                                       
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers]
!!  
!!  
console debug:container --parameter=kernel.build_dir

 ------------------ ------------------------------------- 
  Parameter          Value                                
 ------------------ ------------------------------------- 
  kernel.build_dir   /var/www/example.com/var/cache/prod  
 ------------------ ------------------------------------- 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions