I've just upgraded from G2 Alpha-4 to G2 Beta-1 (from the CVS) and I still have the above error (which is what caused me to upgrade from Alpha-4). At the end of this post is the full dump. The URL is /gallery/main.php
I'm using mysql 3.23.49, on debian (stable) with apache 1.3.26 and PHP 4.1.2 (these versions are all debian distro versions).
Is there some way I can increase the timeout and then go in and "relieve" the problem? I have pumped a reasonable amount of content into this thing to test it out.
my locks dir is out to /data/gallery/data/locks/9/9
Please let me know if I can provide more helpful information.
I've read the doco on upgrading. I'd prefer to keep all the exisitng content (ie. not drop it) if possible. Hopefully this locking issue won't require that.
----------full error message---------------
Error (ERROR_LOCK_TIMEOUT)
* in modules/core/classes/helpers/GalleryLockHelper_medium.class at line 425
* in modules/core/classes/helpers/GalleryLockHelper_medium.class at line 189
* in modules/randomhighlight/classes/RandomHighlightDerivativeImage.class at line 87
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 201
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 58
* in modules/randomhighlight/classes/RandomHighlightDerivativeImage.class at line 77
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 525
* in modules/randomhighlight/classes/RandomHighlightDerivativeImage.class at line 97
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 201
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 58
* in modules/randomhighlight/classes/RandomHighlightDerivativeImage.class at line 77
* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 376
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 91
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 201
* in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 58
* in modules/core/module.inc at line 259
* in modules/core/classes/GalleryLayout.class at line 523
* in layouts/matrix/layout.inc at line 256
* in layouts/matrix/layout.inc at line 158
* in modules/core/ShowItem.inc at line 126
* in modules/core/classes/GalleryView.class at line 246
Posts: 8601
you can find direct links to the login and site admin sections in the "getting started" section of README.html.. these will help you get into site admin so you can reset your random highlight albums and deactivate the random highlight module. this should get your gallery running again.
can you describe how many albums you have using random highlight, and the relationship of those albums? it seems the locking problem occurs while trying to pick new random highlights for multiple nested albums at once.
Posts: 8601
i'm working on the fix.. instead of my recommendation above you can wait and update from cvs or nightly snapshot tomorrow and this should be resolved without requiring you to deactivate randomhighlight.
Posts: 8601
ok, give it a shot.
Posts: 18
OK. I went to go deactivate the "display/random highlight" module. Then it chucked me over to the screen where I can "Reset All Albums" button. Problem is when I clicked on that button, the next screen was the whole Error (ERROR_LOCK_TIMEOUT) dump again.
When I went back there, it still says I have 2 albums using random highlight (((
So I got your msg re the new CVS changes. When I ran a syncronise, I got no differences in between my local copy and :perserver:anonymous@cvs.sourceforge.net/cvsrrot/gallery/[gallery2]
Posts: 18
OK, so I browsed around the reachable albums a bit, then went back to the "Reset All Albums" button. This time I get a different error.
Error (ERROR_PERMISSION_DENIED)
* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 207
* in modules/randomhighlight/SiteAdminRandomHighlight.inc at line 41
* in main.php at line 181
* in main.php at line 67
I did a
dopey:/data/gallery/data# chown www-data:www-data . -R
dopey:/data/gallery/data# chown www-data:www-data -R /var/www/gallery
and gave it another try.
still the same error
So logged out. Logged back in again (via viewable album) and went back to "Reset All Albums" button. Now it's gone back to "Error (ERROR_LOCK_TIMEOUT)" again. I think ERROR_PERMISSION_DENIED was a session issue.
Posts: 18
FYI: I tried deactivating Blocks/ImageBlock as well. No joy
Is there somewhere in the code where I can switch off random highlighting?
Posts: 8601
did you wait until tomorrow yet? there's a delay to get things from anonymous cvs
Posts: 18
:oops: sorry. I was confused by your subsequent message of "ok, give it a shot.".
I'm happy to wait
:D
Posts: 18
Sorry, I thought I posted a thankyou note to this thread. Sometimes I type a message into a HTML form, then I get distracted and forget to post it. (lucky I checked back)
Anyway. I just wanted to say thanks for the prompt help. It did fix my problem and I am most appreciative of the prompt response.
regards,
Tezza.