[TYPO3-core] Could not acquire lock for ClassLoader cache creation

Markus Klein klein.t3 at mfc-linz.at
Wed May 7 13:13:32 CEST 2014


Hi Brian,

first try to set a syslog facility in LocalConfiguration.php.
[SYS][systemLog] = file,/var/www/html/syslog.txt

This will contain possible problems that occurred while acquiring the lock.

> 
> Hi Brian,
> 
> Brian Lynch wrote:
> 
> > Website does not work, backend does not work, and install does not work.
> > Same Error on all three.
> 
> Maybe your disk is slow? Can you try to use any other lock method?
Philipp, that's wrong. You can't use another lock method for ClassLoader. It is hardcoded to SIMPLE, since no other locking method does sufficiently work in PHP. :-(

> 
> > Any Ideas of things I could try and get the site running again?
> 
> If all fails, you can commend out the exception, but you will risk race
> conditions while writing the class lockup cache. It might happen that you are
> left with empty cache files.
You can try to debug that. So you find out why the lock cannot be acquired.
Reasons can be:
* An old lock file is still present and can't be deleted (you should see something in the syslog)
* The acquisition of the exclusive lock on the lock file does not work within 150 tries. (Pause after each try is 200 ms)

Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member



More information about the TYPO3-team-core mailing list