-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
Describe the bug
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!!
!! Fatal error: Uncaught TypeError: Maxbanton\Cwh\Handler\CloudWatch::__construct(): Argument #6 ($tags) must be of type array, string given, called in /var/www/html/var/cache/prod/ContainerU7jBHOL/App_KernelProdContainer.php on line 459 and defined in /var/www/html/vendor/maxbanton/cwh/src/Handler/CloudWatch.php:121
!! Stack trace:
!! #0 /var/www/html/var/cache/prod/ContainerU7jBHOL/App_KernelProdContainer.php(459): Maxbanton\Cwh\Handler\CloudWatch->__construct(Object(Aws\CloudWatchLogs\CloudWatchLogsClient), 'debug_log', 'prod', 10000, Array, 'WARNING')
!! #1 /var/www/html/var/cache/prod/ContainerU7jBHOL/App_KernelProdContainer.php(545): ContainerU7jBHOL\App_KernelProdContainer->getCloudwatchHandlerService()
!! #2 /var/www/html/var/cache/prod/ContainerU7jBHOL/App_KernelProdContainer.php(558): ContainerU7jBHOL\App_KernelProdContainer->getMonolog_Handler_MainService()
!! #3 /var/www/html/var/cache/prod/ContainerU7jBHOL/getConfigBuilder_WarmerService.php(20): ContainerU7jBHOL\App_KernelProdContainer->getMonolog_LoggerService()
!! #4 /var/www/html/var/cache/prod/ContainerU7jBHOL/App_KernelProdContainer.php(133): ContainerU7jBHOL\getConfigBuilder_WarmerService::do(Object(ContainerU7jBHOL\App_KernelProdContainer), true)
!! #5 /var/www/html/var/cache/prod/ContainerU7jBHOL/getCacheWarmerService.php(21): ContainerU7jBHOL\App_KernelProdContainer->load('getConfigBuilde...')
!! #6 /var/www/html/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(90): ContainerU7jBHOL\getCacheWarmerService::ContainerU7jBHOL\{closure}()
!! #7 /var/www/html/vendor/symfony/http-kernel/Kernel.php(584): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/var/www/html/v...')
!! #8 /var/www/html/vendor/symfony/http-kernel/Kernel.php(786): Symfony\Component\HttpKernel\Kernel->initializeContainer()
!! #9 /var/www/html/vendor/symfony/http-kernel/Kernel.php(125): Symfony\Component\HttpKernel\Kernel->preBoot()
!! #10 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(168): Symfony\Component\HttpKernel\Kernel->boot()
!! #11 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(74): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
!! #12 /var/www/html/vendor/symfony/console/Application.php(167): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
!! #13 /var/www/html/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php(56): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
!! #14 /var/www/html/vendor/autoload_runtime.php(35): Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run()
!! #15 /var/www/html/bin/console(11): require_once('/var/www/html/v...')
!! #16 {main}
!! thrown in /var/www/html/vendor/maxbanton/cwh/src/Handler/CloudWatch.php on line 121
!!
Script @auto-scripts was called via post-install-cmd
This only happens when APP_ENV=prod. If APP_ENV=dev then there is no problem
Unfortunately I cannot debug further by checking the code in the cache because this happens within a Bitbucket pipeline
Expected behavior
A clear and concise description of what you expected to happen.
Please provide the steps to reproduce and if possible a minimal demo of the problem
Any instructions how to reproduce a bug
Please tell about your environment:
- PHP Version: 8
- Operating system (distro): Ubuntu
- Application mode:
- Web app
- CLI app
- Daemon worker