Project

General

Profile

Bug #80804

Updated by Fedir RYKHTIK over 7 years ago

Hi there,  

 We have a really strange problem with locks : sometimes, Apache is completely saturated, too much processes, looks like, because becasue of TYPO3 locking system. 

 The bug appear really sometimes, but now more and more regularly, 1 time / day. Really annoying bug, it puts all sites on the server down. 

 Actual solutions : or to remove all lock files from typo3temp, or to restart Apache. 

 Here are some strace logs : 

 # strace -p 5886 

 Process 5886 attached 

 restart_syscall(<... resuming interrupted call ...>) = 0 

 open("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", O_WRONLY|O_CREAT, 0666) = 5 
 fstat(5, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 lseek(5, 0, SEEK_CUR)                     = 0 
 stat("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 chmod("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", 0664) = -1 EPERM (Operation not permitted) 
 flock(5, LOCK_EX)                         = 0 

 open("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", O_WRONLY|O_CREAT, 0666) = 134 
 fstat(134, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 lseek(134, 0, SEEK_CUR)                   = 0 
 close(135)                                = 0 
 stat("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 chmod("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", 0664) = 0 
 flock(134, LOCK_EX|LOCK_NB)               = -1 EAGAIN (Resource temporarily unavailable) 
 flock(5, LOCK_UN)                         = 0 
 close(5)                                  = 0 
 nanosleep({0, 100000000}, NULL)           = 0 

 open("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", O_WRONLY|O_CREAT, 0666) = 5 
 fstat(5, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 lseek(5, 0, SEEK_CUR)                     = 0 
 stat("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 chmod("/home/www/mysite.com/www/typo3temp/locks/flock_b3b32a2d422265cd25c3323ed0157f81", 0664) = -1 EPERM (Operation not permitted) 
 flock(5, LOCK_EX)                         = 0 

 open("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", O_WRONLY|O_CREAT, 0666) = 135 
 fstat(135, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 lseek(135, 0, SEEK_CUR)                   = 0 
 close(134)                                = 0 
 stat("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 
 chmod("/home/www/mysite.com/www/typo3temp/locks/flock_7bfc94f72787757bc18f8d24791673b2", 0664) = 0 
 flock(135, LOCK_EX|LOCK_NB)               = -1 EAGAIN (Resource temporarily unavailable) 
 flock(5, LOCK_UN)                         = 0 
 close(5)                                  = 0 
 nanosleep({0, 100000000}, NULL)           = 0 

 ... 

 Really annoying bug, it puts servers down. 

 Best regards, 
 Fedir

Back