# Update auf 6.4.1.1: Uncaught ArgumentCountError bei Cleanup

**URL:** https://forum.shopware.com/t/update-auf-6-4-1-1-uncaught-argumentcounterror-bei-cleanup/88615
**Category:** Shopware 6 (German)
**Created:** [25. Juni 2021 um 11:51 UTC](https://forum.shopware.com/t/update-auf-6-4-1-1-uncaught-argumentcounterror-bei-cleanup/88615 "2021-06-25T11:51:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nininho](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nininho](https://forum.shopware.com/u/nininho)
#### Post date: [25. Juni 2021 um 11:51 UTC](https://forum.shopware.com/t/update-auf-6-4-1-1-uncaught-argumentcounterror-bei-cleanup/88615/1 "2021-06-25T11:51:03Z")

</div>

Hallo zusammen,

ich versuche, ein Update von 6.0.x auf 6.4.1.1 durchzuführen. Nach ein paar DB-Issues, die via MySQL-Queries gelöst werden konnten, hängt das Update nun an dieser Stelle.

```auto
Replace system files...
skipped...
Apply database migrations...
    0 [----->----------------------]
Apply database destructive migrations...
    0 [----->----------------------]
Cleanup old files, clearing caches...
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Shopware\Recovery\Update\Console\Application::Shopware\Recovery\Update\Console\{closure}(), 4 passed and exactly 5 expected in [shopwareRoot]/vendor/shopware/recovery/Update/src/Console/Application.php:86
Stack trace:
#0 [internal function]: Shopware\Recovery\Update\Console\Application->Shopware\Recovery\Update\Console\{closure}()
#1 [shopwareRoot]/vendor/shopware/recovery/Update/src/Utils.php(216): unlink()
#2 [shopwareRoot]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(177): Shopware\Recovery\Update\Utils::cleanPath()
#3 [shopwareRoot]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(169): Shopware\Recovery\Update\Command\UpdateCommand->cleanupFiles()
#4 [shopwareRoot]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(77): Shopware\Recovery\Update\Command\UpdateCommand->cleanup()
#5 [shopwareRoot]/vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php(256): Shopware\Recovery\Update\Command\UpdateCommand->execute()
#6 [shopwareRoot]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run()
#7 [shopwareRoot]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#8 [shopwareRoot]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#9 [shopwareRoot]/vendor/shopware/recovery/Update/index.php(36): Symfony\Component\Console\Application->run()
#10 [shopwareRoot]/public/recovery/update/index.php(6): require_once('...')
#11 {main}
  thrown in [shopwareRoot]/vendor/shopware/recovery/Update/src/Console/Application.php on line 86

```

Cache wurde geleert, Permissions sind korrekt. [shopwareRoot] ist ein rein aus ASCII-Zeichen-bestehender Pfad.

Vielen Dank im Voraus.

---

<div class="post-metadata">

### Author: ![LarsFischu](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@LarsFischu](https://forum.shopware.com/u/LarsFischu)
#### Post date: [28. Oktober 2021 um 16:06 UTC](https://forum.shopware.com/t/update-auf-6-4-1-1-uncaught-argumentcounterror-bei-cleanup/88615/2 "2021-10-28T16:06:57Z")

</div>

Mal noch eine Info dazu (wir hatten ein ähnliches Problem beim Update von 6.4.4.1 auf 6.4.5.1). Update über Konsole. Fehlermeldung war:

```auto
Replace system files...
skipped...
Apply database migrations...
    0 [----->----------------------]
Apply database destructive migrations...
    0 [----->----------------------]
Cleanup old files, clearing caches...
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Shopware\Recovery\Update\Console\Application::Shopware\Recovery\Update\Console\{closure}(), 4 passed and exactly 5 expected in [sw-root]/vendor/shopware/recovery/Update/src/Console/Application.php:86
Stack trace:
#0 [internal function]: Shopware\Recovery\Update\Console\Application->Shopware\Recovery\Update\Console\{closure}()
#1 [sw-root]/vendor/shopware/recovery/Update/src/Cleanup.php(171): rmdir()
#2 [sw-root]/vendor/shopware/recovery/Update/src/Cleanup.php(67): Shopware\Recovery\Update\Cleanup->deleteTemporaryBackupDirectory()
#3 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(184): Shopware\Recovery\Update\Cleanup->cleanup()
#4 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(171): Shopware\Recovery\Update\Command\UpdateCommand->cleanupFiles()
#5 [sw-root]/vendor/shopware/recovery/Update/src/Command/UpdateCommand.php(77): Shopware\Recovery\Update\Command\UpdateCommand->cleanup()
#6 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php(256): Shopware\Recovery\Update\Command\UpdateCommand->execute()
#7 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run()
#8 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#9 [sw-root]/vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#10 [sw-root]/vendor/shopware/recovery/Update/index.php(36): Symfony\Component\Console\Application->run()
#11 [sw-root]/public/recovery/update/index.php(6): require_once('...')
#12 {main}
  thrown in [sw-root]/vendor/shopware/recovery/Update/src/Console/Application.php on line 86

```

Das Problem bestand bei uns ausschließlich mit Verwendung von PHP8. Mit PHP7.4 konnte das Update normal durchgeführt werden.
