Composer Fehler beim Commando: install
Guten Morgen,
Ich habe für das Sicherheitsupdate auf Contao 4.4.31 zuerst bei Netcup die Abhängigkeiten aufgelößt und möchte jetzt bei 1und1 ein install durchführen(das hat so bisher ohne Probleme geklappt).
folgender Fehler tritt auf:
Code:
// Warming up the cache for the prod environment with debug
// false
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 604307456) (tried to allocate 19337024 bytes) in /homepages/38/d608571360/htdocs/contao_4_cms_wellness/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 145
In Filesystem.php line 145:
Error: Out of memory (allocated 604307456) (tried to allocate 19337024 byte
s)
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
[RuntimeException]
An error occurred while executing the "cache:warmup" command:
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
In Filesystem.php line 145:
Error: Out of memory (allocated 604307456) (tried to allocate 19337024 byte
s)
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--]
<command>
Folgendes in der Konsole eingegeben:
Code:
/usr/bin/php7.1-cli composer.phar install
und das auch probiert:
Code:
/usr/bin/php7.1-cli -d memory_limit=3G composer.phar install
Wenn ich jedoch eine Sicherung der alten composer.json mit einem composer install einspiele ist alles OK.
composer.json(neu):
Code:
{
"name": "contao/managed-edition",
"type": "project",
"description": "Contao Open Source CMS",
"license": "LGPL-3.0-or-later",
"authors": [
{
"name": "Leo Feyer",
"homepage": "https://github.com/leofeyer"
}
],
"require": {
"php": "^7.1",
"contao/calendar-bundle": "^4.4",
"contao/comments-bundle": "^4.4",
"contao/faq-bundle": "^4.4",
"contao/listing-bundle": "^4.4",
"contao/manager-bundle": "4.4.*",
"contao/news-bundle": "^4.4",
"contao/newsletter-bundle": "^4.4",
"do-while/contao-backupdb-bundle": "^1.2",
"jrgregory/m17-sticky-backend-footer": "^2.0",
"madeyourday/contao-rocksolid-antispam": "^2.0",
"terminal42/contao-easy_themes": "^2.2"
},
"conflict": {
"contao-components/installer": "<1.3",
"contao/core-bundle": "<4.4.8"
},
"extra": {
"branch-alias": {
"dev-4.4": "4.4.x-dev"
},
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
composer.json(alt):
Code:
{
"name": "contao/managed-edition",
"type": "project",
"description": "Contao Open Source CMS",
"license": "LGPL-3.0-or-later",
"authors": [
{
"name": "Leo Feyer",
"homepage": "https://github.com/leofeyer"
}
],
"require": {
"php": "^7.1",
"contao/calendar-bundle": "^4.4",
"contao/comments-bundle": "^4.4",
"contao/faq-bundle": "^4.4",
"contao/listing-bundle": "^4.4",
"contao/manager-bundle": "4.4.*",
"contao/news-bundle": "^4.4",
"contao/newsletter-bundle": "^4.4",
"do-while/contao-backupdb-bundle": "^1.2",
"jrgregory/m17-sticky-backend-footer": "^2.0",
"madeyourday/contao-rocksolid-antispam": "^2.0",
"terminal42/contao-easy_themes": "^2.2"
},
"conflict": {
"contao-components/installer": "<1.3",
"contao/core-bundle": "<4.4.8"
},
"extra": {
"branch-alias": {
"dev-4.4": "4.4.x-dev"
},
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
Unlimited Plus, Performance Level 2.
Hat jemand einen Tipp?
Gruß
tschero