ERROR_LOCK_TIMEOUT

farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Mon, 2010-08-23 17:03

Can any of guys explain this error in my event log. is this something to do with g2 image firewall or is it something un related
I use Database locking system because if I use file locking no pic appears in my photo page

typically in my photo page some of the images fail to appear. but appear after I press refresh maybe these error entries in my event log has to do with this behaviour.

Type Gallery Error
Location http://www.farhan-tauheed.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=39&g2_serialNumber=6
User Id 5
Client 128.178.77.146
Summary ERROR_LOCK_TIMEOUT
Referer http://www.farhan-tauheed.com/gallery2/main.php?g2_itemId=49
Details

Error (ERROR_LOCK_TIMEOUT)in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1980 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 683 (GalleryStorageExtras::_getLockClearance)
in modules/core/classes/GalleryStorage.class at line 397 (GalleryStorageExtras::acquireWriteLock)
in modules/core/classes/DatabaseLockSystem.class at line 42 (GalleryStorage::acquireWriteLock)
in modules/core/classes/GalleryLockSystem.class at line 147 (DatabaseLockSystem::_acquireLock)
in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (GalleryLockSystem::acquireWriteLock)
in modules/core/classes/GalleryCoreApi.class at line 2291 (GalleryLockHelper_simple::acquireWriteLock)
in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 833 (GalleryCoreApi::acquireWriteLock)
in modules/core/classes/GalleryCoreApi.class at line 997 (GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984 (GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/DownloadItem.inc at line 109 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in main.php at line 450 (DownloadItemView::renderImmediate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[view] => core.DownloadItem
[itemId] => 39
[serialNumber] => 6
)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-23 17:25
Quote:
rebuildDerivativeCacheIfNotCurrent

Gallery builds thumbs and resizes on demand if the image has not been viewed(built) already or if you've recently cleared the derivative cache.

Lock timeout happen when your toolkit takes too long or fails to build the derivative.

Quote:
[itemId] => 39
[serialNumber] => 6

did you specify a bunch of resizes or very large resizes for each image?

the issue occurred on http://www.farhan-tauheed.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=39&g2_serialNumber=6
on this page http://www.farhan-tauheed.com/gallery2/main.php?g2_itemId=49
which seems to have been built, so the issue for that item should be resolved.

Great picture BTW

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
farhaneee

Joined: 2009-08-04
Posts: 36
Posted: Mon, 2010-08-23 17:28

ok i got it now..
thanks :)