@knowledge

Непонятные ошибки в symfony с зависимостями?

Есть проект на symfony, который разворачивается из composer.json файла
composer.json

{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.2.5",
"ext-ctype": "*",
"ext-curl": "*",
"ext-gd": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-mbstring": "*",
"imagine/imagine": "^1.2",
"sensio/framework-extra-bundle": "^5.1",
"symfony/asset": "5.0.*",
"symfony/console": "5.0.*",
"symfony/dotenv": "5.0.*",
"symfony/expression-language": "5.0.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.0.*",
"symfony/framework-bundle": "5.0.*",
"symfony/http-client": "5.0.*",
"symfony/intl": "5.0.*",
"symfony/mailer": "5.0.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.0.*",
"symfony/orm-pack": "*",
"symfony/process": "5.0.*",
"symfony/security-bundle": "5.0.*",
"symfony/security-csrf": "5.0.*",
"symfony/serializer-pack": "*",
"symfony/string": "5.0.*",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/translation": "5.0.*",
"symfony/twig-pack": "*",
"symfony/validator": "5.0.*",
"symfony/web-link": "5.0.*",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "5.0.*"
},
"require-dev": {
"codeception/codeception": "^4.1",
"codeception/module-asserts": "^1.0.0",
"codeception/module-doctrine2": "^1.0",
"codeception/module-phpbrowser": "^1.0.0",
"codeception/module-rest": "^1.2",
"codeception/module-symfony": "^1.0",
"doctrine/doctrine-fixtures-bundle": "^3.3",
"fzaninotto/faker": "^1.9",
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "^1.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.0.*"
}
}
}


Версия composer 1.9.1

Ранее все разворачивалось и работало, буквально еще месяц назад
Но с недавнего времени проект не разворачивается из-за ошибок, хотя версии пакетов точно такие же

при выполнении composer install после установки надолго зависает при выполнении cache:clear, после чего в консоль сыпется куча текста (в основном перечисление всевозможных классов из директории vendor). Со второго раза проходит успешно, но при выполнении bin/console с параметрами или без получаю
выхлоп bin/console

Symfony 5.0.7 (env: dev, debug: true)

Usage:
command [options] [arguments]

Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switches off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Warning: Uncaught ErrorException: include(/www/app/var/cache/dev/pools/XXd6t45Wxa/2/Z/3myDrQW2fvs3b-bWFQEQ): failed to open stream: No such file or directory in /www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php:145
Stack trace:
#0 /www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php(145): Symfony\Component\Cache\Adapter\PhpFilesAdapter::Symfony\Component\Cache\Adapter\{closure}(2, 'include(/www/ap...', '/www/app/vendor...', 145, Array)
#1 /www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php(145): include()
#2 /www/app/vendor/symfony/cache/Traits/AbstractAdapterTrait.php(219): Symfony\Component\Cache\Adapter\PhpFilesAdapter->doFetch(Array)
#3 /www/app/vendor/symfony/cache/Adapter/TraceableAdapter.php(77): Symfony\Component\Cache\Adapter\AbstractAdapter->getItem('%5BApp%5CEntity...')
#4 /www/app/vendor/symfony/cache/Adapter/PhpArrayAdapter.php(128): Symfony\Component\Cache\Adapter\TraceableAdapter->getItem('%5BApp%5CEntity...')
#5 /www/app/vendor/symfony/cache/DoctrineProvider.php(54): Symfony\Componen in /www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php on line 145

Call Stack:
0.0002 406912 1. {main}() /www/app/bin/console:0
0.0196 2548144 2. Symfony\Bundle\FrameworkBundle\Console\Application->run($input = class Symfony\Component\Console\Input\ArgvInput { private $tokens = []; private $parsed = []; protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = ['command' => cl

Далее бесконечное перечисление классов из vendor и заканчивается этим
конец выхлопа bin/console
0.2124 18614224 36. Symfony\Component\Cache\Adapter\PhpFilesAdapter::Symfony\Component\Cache\Adapter\{closure:/www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php:52-54}($type = 2, $msg = 'include(/www/app/var/cache/dev/pools/XXd6t45Wxa/2/Z/3myDrQW2fvs3b-bWFQEQ): failed to open stream: No such file or directory', $file = '/www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php', $line = 145, ['ids' => [0 => '%5BApp%5CEntity%5CUser%5D%5B1%5D'], 'now' => 0, 'missingIds' => [0 => '%5BApp%5CEntity%5CUser%5D%5B1%5D'], 'values' => [], 'getExpiry' => TRUE, 'id' => '%5BApp%5CEntity%5CUser%5D%5B1%5D', 'value' => NULL, 'k' => 0, 'file' => '/www/app/var/cache/dev/pools/XXd6t45Wxa/2/Z/3myDrQW2fvs3b-bWFQEQ']) /www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php:145
3.5152 18925608 37. Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError($error = ???) /www/app/vendor/symfony/error-handler/ErrorHandler.php:0
3.5156 18927976 38. Symfony\Component\ErrorHandler\Error\OutOfMemoryError->__construct($message = 'Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 138660888 bytes)', $code = 0, $error = ['type' => 1, 'message' => 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 138660888 bytes)', 'file' => '/www/app/vendor/symfony/cache/Adapter/PhpFilesAdapter.php', 'line' => 53], $traceOffset = 2, $traceArgs = FALSE, $trace = NULL) /www/app/vendor/symfony/error-handler/ErrorHandler.php:676
3.5156 18927976 39. xdebug_get_function_stack() /www/app/vendor/symfony/error-handler/Error/FatalError.php:37
  • Вопрос задан
  • 155 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы