Update von 6.6 auf 6.7.2.2

Hallo,

Eventuell kann jemand helfen?

nach dem update hatte ich keinen Zugang mehr auf Admin.

Fehler beim Admin Aufruf:

: {„errors“:[{„code“:„0“,„status“:„500“,„title“:„Internal Server Error“,„detail“:„The controller for URI \u0022\/admin\u0022 is not callable: Environment variable not found: \u0022SERVICE_REGISTRY_URL\u0022.“}]}

Habe dies gelöst mit env.local Eintrag:

SERVICE_REGISTRY_URL=http://localhost

Jetzt habe ich noch den Fehler, das ich keine Plugin’s updaten kann, mit Fehler:

Das hat nicht funktioniert.
Failed to acquire the „cache-clearer::container-cache-directories“ lock.

Im Log habe ich zudem:

Uncaught PHP Exception Symfony\Component\Lock\Exception\LockAcquiringException: „Failed to acquire the „message_queue_consume_async“ lock.“ at Lock.php line 116 {„exception“:„[object] (Symfony\\Component\\Lock\\Exception\\LockAcquiringException(code: 0): Failed to acquire the \„message_queue_consume_async\“ lock. at /www/htdocs/w018b5e8/xxxxx-shop.de/vendor/symfony/lock/Lock.php:116)\n[previous exception] [object] (Symfony\\Component\\Lock\\Exception\\LockStorageException(code: 0): fopen(/tmp/sf.message_queue_consume_async.XFTuaDS.lock): Failed to open stream: Permission denied at /www/htdocs/w018b5e8/xxxxx-shop.de/vendor/symfony/lock/Store/FlockStore.php:109)“}

Folgende Meldung hatte ich noch im Installationslog.

Eventuell daher:

post-update-cmd: Symfony\Flex\Flex->update
Cannot create cache directory /tmp/composer/cache/repo/flex/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.

Run composer recipes at any time to see the status of your Symfony recipes.

2 „Gefällt mir“

Ich denke das Problem liegt am Cache

beim löschen bekomme ich folgenden Fehler:

bin/console cache:clear
PHP Parse error: syntax error, unexpected ‚:‘, expecting ‚)‘ in /www/htdocs/w018b5e8/xxx-shop.de/bin/console on line 47

Desweiteren bekomme ich folgenden Fehler:

Uncaught PHP Exception Symfony\Component\Lock\Exception\LockAcquiringException: „Failed to acquire the „cache-clearer::container-cache-directories“ lock.“ at Lock.php line 116 {„exception“:„[object] (Symfony\\Component\\Lock\\Exception\\LockAcquiringException(code: 0): Failed to acquire the \„cache-clearer::container-cache-directories\“ lock. at /www/htdocs/w018b5e8/xxx-shop.de/vendor/symfony/lock/Lock.php:116)\n[previous exception] [object] (Symfony\\Component\\Lock\\Exception\\LockStorageException(code: 0): fopen(/tmp/sf.cache-clearer-container-cache-directories.pNX6fIJ.lock): Failed to open stream: Permission denied at /www/htdocs/w018b5e8/xxx-shop.de/vendor/symfony/lock/Store/FlockStore.php:109)“}

Das sieht mir eher nach einer nicht kompatibel PHP-Version aus.

Ne die Lösung war laut All-Inkl.:

Bearbeiten Sie danach im Shopware-Hauptverzeichnis die Datei „.env.local“ und fügen Sie diese Zeile hinzu:
LOCK_DSN=flock:///www/htdocs/w0xxxxxx/var/lock
Passen Sie dabei „w0xxxxxx“ an Ihren Accountlogin an.

Es scheint als würde Shopware versuchen auf dem Server /tmp schreiben zu wollen. Was normal nicht so sein sollte.

2 „Gefällt mir“

Bei mir das war die Lösung der Probleme.

Danke. Ich hatte auch selber Problem.