Hallo zusammen,
ich habe gerade kommend von einer Contao 2.11 über die v3.5 auf die neueste 4.9 LTE Version upgedatet. Das Update von 3.5 ging mit etwas Vorbereitung und Dank Tipps und Checklist von Contao Academy und diverser Foreneinträge recht reibungslos. Auch das Update vom Rocksolid Theme hat funktioniert und die Seite läuft.
Nun zum Fehler, den ich nicht beheben kann:
- Wenn ich eine weitere Erweiterung installieren möchte, bricht die Konsole mit einer Fehlermeldung ab. Es scheint dabei keine Rolle zu spielen, welche. zB führen m17-sticky-backend-footer oder contao-rocksolid-theme-assistant zum selben Ergebnis (siehe Code unten)
- Wenn ich etwas zu /contao/dca oder /contao/languages hinzufüge, bricht die Verarbeitung von "Composer-Abhängigkeiten" auch mit "Too many open files" in /languages bzw. /dca ab. Benenne ich zB languages wieder um, läuft die Konsole wieder sofort fehlerfrei durch.
- Beim manuellen hinzufügen einer beliebigen Erweiterung von Contao 3.5 zu /system/modules tritt der gleiche Fehler auf wie unten im Code-Fenster.
Bereits durchgeführte Maßnahmen:
- Löschen von composer.lock
- Löschen von /vendor
- Löschen des Inhalts von /var/cache
- Pakete aktualisiert
- in SSH ulimit -n eingegeben, Ergebnis: 200000 - ich denke das sollte reichen, oder? – ich weiß ja nicht, ob der Fehler überhaupt damit zu tun hat ...
Hier der Inhalt der composer.json und der Konsole:
Code:
{
"type": "project",
"require": {
"bwein-net/contao-backend-customizer": "^1.0",
"chrmue/cm_membergooglemaps": "^2.0",
"contao/calendar-bundle": "4.9.*",
"contao/comments-bundle": "4.9.*",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "4.9.*",
"contao/listing-bundle": "4.9.*",
"contao/manager-bundle": "4.9.*",
"contao/news-bundle": "4.9.*",
"friends-of-contao/contao-memberlist": "^2.0",
"hschottm/tags": "^4.0",
"kmielke/calendar-extended-bundle": "^1.0",
"madeyourday/contao-rocksolid-columns": "^2.0",
"madeyourday/contao-rocksolid-custom-elements": "^2.2",
"madeyourday/contao-rocksolid-frontend-helper": "^2.0",
"madeyourday/contao-rocksolid-icon-picker": "^2.0",
"madeyourday/contao-rocksolid-slider": "^2.0",
"terminal42/contao-avatar": "^1.3",
"terminal42/contao-mailusername": "^1.0",
"terminal42/notification_center": "^1.5",
"madeyourday/contao-rocksolid-mega-menu": "^2.0"
},
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
Code:
$ /usr/local/php73/bin/php-cli -q /home/USER/public_html/contao420/web/contao-manager.phar.php composer require madeyourday/contao-rocksolid-theme-assistant --no-suggest --no-update --no-scripts --prefer-stable --sort-packages --no-ansi --no-interaction
Using version ^2.0 for madeyourday/contao-rocksolid-theme-assistant
/home/USER/public_html/contao420/composer.json has been updated
# Process terminated with exit code 0
# Result: OK
> Resolving dependencies using Composer Cloud v2.2.4
# Job ID MRoIb5ce5m33hUNiQ1wZuebMhpHyOHKPSz3GRbDo9NXjYxBToHYSPqCE9hy4taSSCMZYliY4r9qibX5DdCMS1CWdVoBLLM completed in 111 seconds
# Memory usage: 444.26MB (peak: 2101.68MB), time: 111.59s.
$ /usr/local/php73/bin/php-cli -q /home/USER/public_html/contao420/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/index.php file.
Added the web/app.php file.
Added the web/preview.php file.
// Clearing the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
// Clearing the cache for the dev environment with debug
// true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
// Warming up the cache for the prod environment with debug
// false
11:40:55 ERROR [console] Error thrown while running command "cache:warmup --env=prod". Message: "RecursiveDirectoryIterator::__construct(/home/USER/public_html/contao420/system/modules/leads/languages/en): failed to open dir: Too many open files" ["exception" => UnexpectedValueException { …},"command" => "cache:warmup --env=prod","message" => "RecursiveDirectoryIterator::__construct(/home/USER/public_html/contao420/system/modules/leads/languages/en): failed to open dir: Too many open files"]
In RecursiveDirectoryIterator.php line 48:
RecursiveDirectoryIterator::__construct(/home/USER/public_html/contao42
0/system/modules/leads/languages/en): failed to open dir: Too many open fil
es
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them.
- Installing madeyourday/contao-rocksolid-theme-assistant (v2.0.2): Downloading (100%)
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Generating optimized autoload files
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
In ScriptHandler.php line 89:
An error occurred while executing the "cache:warmup" command: 11:40:55 ERRO
R [console] Error thrown while running command "cache:warmup --env=prod
". Message: "RecursiveDirectoryIterator::__construct(/home/USER/public_
html/contao420/system/modules/leads/languages/en): failed to open dir: Too
many open files" ["exception" => UnexpectedValueException { …},"command" =>
"cache:warmup --env=prod","message" => "RecursiveDirectoryIterator::__cons
truct(/home/USER/public_html/contao420/system/modules/leads/languages/e
n): failed to open dir: Too many open files"]
In RecursiveDirectoryIterator.php line 48:
RecursiveDirectoryIterator::__construct(/home/USER/public_html/contao420/system/modules/leads/languages/en): failed to open dir: Too many open files
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--
verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en
v ENV] [--] <command>
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>...]
# Process terminated with exit code 1
# Result: General error
---
### Der Hintergrundprozess wurde unerwartet beendet ###
Ich wäre sehr dankbar, wenn mir jemand bei diesem Problem weiterhelfen würde. Woran könnte es liegen? Was könnte ich noch tun, damit's wieder geht?
Liebe Grüße, Michael
Lesezeichen