K
K
knowledge2020-12-23 01:42:09
symfony
knowledge, 2020-12-23 01:42:09

Obscure bugs in symfony with dependencies?

I have a symfony project that deploys from a composer.json file

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 version 1.9.1

Previously, everything deployed and worked, just a month ago
But recently, the project has not been deployed due to errors, although the package versions are exactly the same

when performing composer install after installation, it hangs for a long time when running cache: clear, after which in a bunch of text is pouring into the console (basically a listing of all kinds of classes from the vendor directory). It succeeds the second time, but when executing bin/console with or without parameters, I get
exhaust 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

Further, an endless enumeration of classes from vendor and ends with this
end exhaust 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

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question