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

Markus Klein klein.t3 at mfc-linz.at
Wed May 7 15:50:00 CEST 2014


Hi!

> 
> Philipp and Markus, thank you so much for Responding on this issue.
> 
> Here is my Update
> 
> Ok first, the syslog did not produce any log files, so nothing to report there.
> 
> Next lockingMode:
> 
> I worked my way through the lockingMode settings, and no mater which
> setting I choose, simple, flock, semaphore, there was no change whatsoever
> in the result, the exact same error message every time.

As I posted before: You can NOT change the locking mode for the ClassLoaderCache. It is hardcoded to SIMPLE.

> 
> The site that is working, it's LocalConfiguration.php file was the same in
> regard to SYS lockingMode, That setting was not there, so I assume this
> means it is using the default 'simple'. which was the same as the site which is
> not working, until I starting messing with it. Once I made a small typo and got
> PHP error, so I know the LocalConfiguration.php file is being read.
> 
> And I did remove all directories int he typo3temp/Cache/ folder prior to each
> attempt.
> 
> I should mention that it takes the website about 34 seconds for it to respond
> with the error message, if that means anything.
> 
> let me know what I can try next, again thank you!

That looks like the thing I mentioned before too. It tries to lock the lock-file. This is done in a loop for maximum 150 times.
After each try the process sleeps for 0.2 seconds before the next try.
That makes 30 seconds in total, until it gives up.
So the 34 seconds sound reasonable.

This really looks like a file system problem. Can you please check if typo3temp/locks/ does exist and what the permissions are?
Which file system is on the server? Ext4, NFS, etc?

Kind regards
Markus

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



More information about the TYPO3-team-core mailing list