# Alt und Neuinstallation Fehler "lock"

**URL:** https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869
**Category:** Shopware 6 (German)
**Created:** [18. August 2024 um 17:44 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869 "2024-08-18T17:44:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [18. August 2024 um 17:44 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/1 "2024-08-18T17:44:56Z")

</div>

Hi, ich habe bei Allinkl einen neuen Serverplatz mit MariaDB 10.11 bekommen.  
Ich komme jedoch nicht in meinen alten Shop (6.6.5.1.). Die Token URL macht er mir Error 500 und im Serverlog steht: (xxxxxx = privat-daten)

```auto
CRITICAL: Uncaught PHP Exception Symfony\Component\Lock\Exception\LockAcquiringException: "Failed to acquire the "oauth-xxxxxx lock." at Lock.php line 116 {"exception":"[object] (Symfony\\Component\\Lock\\Exception\\LockAcquiringException(code: 0): Failed to acquire the \"oauth-xxxxxx\" lock. at /www/htdocs/xxxxxxx/vendor/symfony/lock/Lock.php:116)\n[previous exception] [object] (Symfony\\Component\\Lock\\Exception\\LockStorageException(code: 0): fopen(/tmp/sf.oauth-xxxxxx.xG2cH4X.lock): Failed to open stream: Permission denied at /www/htdocs/xxxxxx/vendor/symfony/lock/Store/FlockStore.php:109)"} []

```

Diesen Fehler bekomme ich aber auch wenn ich parallel einen neuen Shop installiert habe(6.6.5.1). Ich komme einmal ins Backend (obwohl es sagt passwort falsch bei installation) und dann nie wieder.

Bei 2 anderen Shops und 2 anderen All inkl Accounts hatte ich keine Probleme…  
Alle Shop 6.6.5.1 oder 6.6.4.1

Weiss jemand was das für ein Fehler ist?  
Danke und Gruss

---

<div class="post-metadata">

### Author: ![Anotherone](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anotherone](https://forum.shopware.com/u/Anotherone)
#### Post date: [19. August 2024 um 13:07 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/2 "2024-08-19T13:07:24Z")

</div>

> [@brettvormkopp](#):
>
> `fopen(/tmp/sf.oauth-xxxxxx.xG2cH4X.lock): Failed to open stream: Permission denied`

Er kann eine Datei im temporären Ordner (/tmp) nicht öffnen, es fehlen ihm also vermutlich die Rechte für den Ordner.

---

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [19. August 2024 um 13:19 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/3 "2024-08-19T13:19:20Z")

</div>

Mhh, aber das ist doch eine system-Datei vom Server oder? Ich werde den hinweis mal an all-inkl geben.

---

<div class="post-metadata">

### Author: ![Anotherone](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anotherone](https://forum.shopware.com/u/Anotherone)
#### Post date: [19. August 2024 um 13:47 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/4 "2024-08-19T13:47:29Z")

</div>

Das ist eine Datei, die offensichtlich von Symfony (dem Framework hinter Shopware) verwendet wird bzw. versucht wird, zu verwenden. Warum das bei den anderen Accounts geht und hier nicht, ist die Frage…

---

<div class="post-metadata">

### Author: ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)
#### Post date: [19. August 2024 um 15:11 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/5 "2024-08-19T15:11:17Z")

</div>

Der Mitarbeiter von all-inkl hat die Lösung. @Anotherone war auf der richtigen Spur.

> 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.  
Bei anderen Installationen habe ich mal ins log geschaut. Da sind haufenweise lock fehler. Bug?

---

<div class="post-metadata">

### Author: ![okle](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@okle](https://forum.shopware.com/u/okle)
#### Post date: [28. Juli 2025 um 11:16 UTC](https://forum.shopware.com/t/alt-und-neuinstallation-fehler-lock/104869/6 "2025-07-28T11:16:44Z")

</div>

Tritt bei All-Inkl auch in Version 6.7 noch auf.  
Mit der Anpassung der env.local, läuft der Migrations-Assistent. 👍 🙏
