Project

General

Profile

Actions

Bug #72074

open

FileLockStrategy fails on NFS folders

Added by Dmitry Dulepov over 8 years ago. Updated about 4 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Locking / Session Handling
Target version:
-
Start date:
2015-12-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

FileLockStrategy assumes it can always lock exclusively but fails on NFS mounts (example: vagrant environment). There should be a check that exclusive lock is possible before the capability is reported.

The result of the error is the exception:

#1294586098: Could not acquire access lock for "pagesection"" 

RuntimeException thrown in file
/home/***/vendor/typo3/cms/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php in line 4921.

7 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::acquireLock("pagesection", "1::")

/home/***/vendor/typo3/cms/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
02357:             // but we protect the access again with a global exclusive lock to avoid race conditions
02358: 
02359:             $this->acquireLock('pagesection', $this->id . '::' . $this->MP);
02360:             //
02361:             // from this point on we're the only one working on that page ($key)

Related issues 5 (2 open3 closed)

Related to TYPO3 Core - Feature #87072: Make locking configurableClosed2018-12-04

Actions
Related to TYPO3 Core - Feature #89322: Add a distributed locking strategy based on RedisClosed2019-10-01

Actions
Related to TYPO3 Core - Bug #93878: TYPO3 uses flock() directly (hard-wired) for session lockingNew2021-04-08

Actions
Related to TYPO3 Core - Bug #101059: Allow install tool sessions without shared file systemNew2023-06-14

Actions
Has duplicate TYPO3 Core - Bug #93222: Cache stored in shared file systemsClosed2021-01-05

Actions
Actions

Also available in: Atom PDF