Guten Morgen zusammen!
nach 4 Wochen Pause wollte ich mich noch einmal an das Update, im Idealfall danach Upgrade auf 5.3 wagen.
Die derzeitigen Fakten: Seit den 4 Wochen läuft meine Instanz stabil mit PHP 8.3.15 (sowohl Web als auch CLI), aber immer noch mit Contao 4.13.36 mit nur zwei Erweiterungen von denen eine nicht mehr gepflegt wird. Meine composer.json sieht so aus:und das public Verzeichnis heißt auch public, nicht mehr web wie damals. [EDIT: Fehler korrigiert]Code:$ cat ../composer.json { "type": "project", "require": { "contao/calendar-bundle": "4.13.*", "contao/comments-bundle": "4.13.*", "contao/conflicts": "*@dev", "contao/faq-bundle": "4.13.*", "contao/listing-bundle": "4.13.*", "contao/manager-bundle": "4.13.*", "contao/news-bundle": "4.13.*", "contao/newsletter-bundle": "4.13.*", "craffft/contao-calendar-ical-bundle": "^4.2", "srhinow/tinymce-plugins": "^2.0" }, "extra": { "contao-component-dir": "assets" }, "scripts": { "post-install-cmd": [ "@php vendor/bin/contao-setup" ], "post-update-cmd": [ "@php vendor/bin/contao-setup" ] } }
Ich habe den Contao Manager gestartet, der wollte sich zunächst selbst aktualisieren und hat das offenbar auch gemacht. Dann habe ich ganz oben auf "Update Packages" gefolgt von ganz unten "Dry Run" geklickt. Nach einer halben Stunden (!) des Wartens auf Fortschritt - es blieb bereits beim ersten Schritt hängen - habe ich zum Einen die Detailansicht aktiviert und kurz darauf "Cancel". Auch die task.json habe ich wieder löschen müssen, weil auch das Abbrechen nicht klappte.
In der vorgenannten Detailansicht irritierte mich ganz gewaltig, dass da stand
$ /usr/bin/php8.1 ... /contao-manager.phar.php composer update contao ...
Wo zum Geier kommt das 8.1 noch her? Ich habe meine Freunde find und grep los geschickt, es gab eine Stelle, an der mir die Änderung auf 8.3 sinnvoll erschien: composer-update.set.json - doch leider führt(e) auch auch das nicht zum Erfolg.
Anschließend habe ich - ein bisschen widerwillig - diese "Resolver Cloud" aktiviert, die Caches Prod.-Cache, Composer Cache und Opcode Cache gelöscht und einen neuen Versuch des "Update Packages" gefolgt von ganz unten "Dry Run" gewagt. Zumindest der Testlauf/DryRun lief anscheinend fehlerfrei, daraufhin habe ich mich getraut auf "Änderungen anwenden" zu klicken.
Die große Ernüchterung: die ersten beiden Punkte "composer update contao/manager-bundle ..." und "vendor/bin/contao-console contao:maintenance-mode enable" bekamen ihren grünen Haken, der dritte Schritt "composer install" nach 5 von 5 Versuchen ein rotes Kreuzchen
Im Fenster "Pakete werden aktualisiert" standInteressanterweise steht nun TROTZDEM unter "Pakete" im CM, ich hätte Contao 4.13.52 - was ist denn nun richtig? Ich habe nochmals den Prod.-Cache gelöscht, die Datenbank geprüft un die geforderte Änderung gemacht; zu guter Letzt den Wartungsmodus deaktiviert. Das Backend zeit auch Version 4.13.52 an und das Frontend scheint zu laufen. Dennoch bin ich verunsichert wegen der o.g. Fehlermeldung. Zu was könnt Ihr mir raten (außer HosterwechselCode:$ /usr/bin/php8.3 -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=UTC /.../htdocs/LIVE/public/contao-manager.phar.php composer install --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead. Generating optimized autoload files contao/manager-plugin: Dumping generated plugins file... contao/manager-plugin: ...done dumping generated plugins file 105 packages you are using are looking for funding. Use the `composer fund` command to find out more! > @php vendor/bin/contao-setup PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Component\Console\SignalRegistry\pcntl_async_signals() in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php:21 Stack trace: #0 /.../htdocs/LIVE/vendor/symfony/console/Application.php(98): Symfony\Component\Console\SignalRegistry\SignalRegistry->__construct() #1 /.../htdocs/LIVE/vendor/symfony/framework-bundle/Console/Application.php(40): Symfony\Component\Console\Application->__construct() #2 /.../htdocs/LIVE/vendor/contao/manager-bundle/src/Console/ContaoApplication.php(26): Symfony\Bundle\FrameworkBundle\Console\Application->__construct() #3 /.../htdocs/LIVE/vendor/contao/manager-bundle/bin/contao-console(37): Contao\ManagerBundle\Console\ContaoApplication->__construct() #4 {main} thrown in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php on line 21 10:34:47 CRITICAL [console] An error occurred while using the console. Message: "An error occurred while executing the "/usr/bin/php8.3 -dmemory_limit=-1 /.../htdocs/LIVE/vendor/contao/manager-bundle/bin/contao-console contao:install-web-dir public --env=prod --no-ansi" command: PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Component\Console\SignalRegistry\pcntl_async_signals() in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php:21 Stack trace: #0 /.../htdocs/LIVE/vendor/symfony/console/Application.php(98): Symfony\Component\Console\SignalRegistry\SignalRegistry->__construct() #1 /.../htdocs/LIVE/vendor/symfony/framework-bundle/Console/Application.php(40): Symfony\Component\Console\Application->__construct() #2 /.../htdocs/LIVE/vendor/contao/manager-bundle/src/Console/ContaoApplication.php(26): Symfony\Bundle\FrameworkBundle\Console\Application->__construct() #3 /.../htdocs/LIVE/vendor/contao/manager-bundle/bin/contao-console(37): Contao\ManagerBundle\Console\ContaoApplication->__construct() #4 {main} thrown in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php on line 21 " ["exception" => RuntimeException { …},"message" => """ An error occurred while executing the "/usr/bin/php8.3 -dmemory_limit=-1 /.../htdocs/LIVE/vendor/contao/manager-bundle/bin/contao-console contao:install-web-dir public --env=prod --no-ansi" command: PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Component\Console\SignalRegistry\pcntl_async_signals() in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php:21\n Stack trace:\n #0 /.../htdocs/LIVE/vendor/symfony/console/Application.php(98): Symfony\Component\Console\SignalRegistry\SignalRegistry->__construct()\n #1 /.../htdocs/LIVE/vendor/symfony/framework-bundle/Console/Application.php(40): Symfony\Component\Console\Application->__construct()\n #2 /.../htdocs/LIVE/vendor/contao/manager-bundle/src/Console/ContaoApplication.php(26): Symfony\Bundle\FrameworkBundle\Console\Application->__construct()\n #3 /.../htdocs/LIVE/vendor/contao/manager-bundle/bin/contao-console(37): Contao\ManagerBundle\Console\ContaoApplication->__construct()\n #4 {main}\n thrown in /.../htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.php on line 21\n """] In ContaoSetupCommand.php line 146: An error occurred while executing the "/usr/bin/php8.3 -dmemory_limit=-1 / .../htdocs/LIVE/vendor/contao/manager-bundle/bin/c ontao-console contao:install-web-dir public --env=prod --no-ansi" command: PHP Fatal error: Uncaught Error: Call to undefined function Symfony\Compon ent\Console\SignalRegistry\pcntl_async_signals() in /.../ /htdocs/LIVE/vendor/symfony/console/SignalRegistry/SignalRegistry.ph p:21 Stack trace: #0 /.../htdocs/LIVE/vendor/symfony/console/Applic ation.php(98): Symfony\Component\Console\SignalRegistry\SignalRegistry->__c onstruct() #1 /.../htdocs/LIVE/vendor/symfony/framework-bund le/Console/Application.php(40): Symfony\Component\Console\Application->__co nstruct() #2 /.../htdocs/LIVE/vendor/contao/manager-bundle/ src/Console/ContaoApplication.php(26): Symfony\Bundle\FrameworkBundle\Conso le\Application->__construct() #3 /.../htdocs/LIVE/vendor/contao/manager-bundle/ bin/contao-console(37): Contao\ManagerBundle\Console\ContaoApplication->__c onstruct() #4 {main} thrown in /.../htdocs/LIVE/vendor/symfony/conso le/SignalRegistry/SignalRegistry.php on line 21 contao:setup Script @php vendor/bin/contao-setup handling the post-install-cmd event returned with error code 1 # Process terminated with exit code 1 # Result: General error)
TIA
purzel