H2-invent / open-datenschutzcenter

Open Source Datenschutzmanagement System
https://open-datenschutzcenter.de
GNU Affero General Public License v3.0
36 stars 10 forks source link

AnnotationDriver requires 2 arguments instead of one #249

Closed ToniSoftware closed 6 months ago

ToniSoftware commented 8 months ago

Describe the bug When trying to install the ODC locally by packages (without docker) the compose.phar install command is failing. VichUploaderBundle's AnnotationDriver is expecting more arguments (2) then provided (1) for construction.

To Reproduce Steps to reproduce the behavior:

  1. Execute steps respectively from Dockerfile but on local machine
  2. Execute php compose.phar install instead of compose install

Expected behavior Packages should be installed

Screenshots Error message

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!  
!!   // Clearing the cache for the prod environment with debug false                
!!  
!!  19:52:43 CRITICAL  [php] Uncaught Error: Too few arguments to function Vich\UploaderBundle\Metadata\Driver\AnnotationDriver::__construct(), 1 passed in /srv/odc/odc/var/cache/prod/ContainerBxacoLx/App_KernelProdContainer.php on line 9043 and exactly 2 expected ["exception" => ArgumentCountError { …}]
!!  
!!  In AnnotationDriver.php line 35:
!!                                                                                 
!!    Too few arguments to function Vich\UploaderBundle\Metadata\Driver\Annotatio  
!!    nDriver::__construct(), 1 passed in /srv/odc/odc/var/cache/prod/ContainerBx  
!!    acoLx/App_KernelProdContainer.php on line 9043 and exactly 2 expected        
!!                                                                                 
!!  
!!  cache:clear [--no-warmup] [--no-optional-warmers]
!!  
!!  
Script @auto-scripts was called via post-install-cmd

Server:

If you need any further information, please let me know! I hope, that I am just overseeing something.. Thanks a lot in advance!

ToniSoftware commented 6 months ago

Due to weird and inconsistent behavior with caching (esp. symfony), after removing each and every possible cache it works now.