[SOLVED] G2 stops

buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Wed, 2005-04-27 15:13

After a while trying almost all modules, G2 decided that is was enough!

Now only this message
Fatal error: Maximum execution time of 30 seconds exceeded in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 109
appears when I browse to the gallery.

Last Action I've did was: activating the panorama viewer applet to a jpg photo item in the Top Level Album.
Can this cause such a thing?

Are there any options?
----

Gallery URL (optional): http://buut.demon.nl:8080/galleryupgrade/gallery2/main.php
Gallery version: G2 Beta 2+ (25 april)
Webserver (with version):IIS v5
Datatabase (with version): Mysql v4+?
PHP version (eg 4.2.1): 4.3.11
phpinfo URL (optional):
Graphics Toolkit(s): IM, GD, NETPBM, FFMPEG (all activated)
Operating system: win2k
Web browser/version: IE v6
G1 version (for migration bugs):

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Wed, 2005-04-27 21:19

Update

After leaving the gallery installation for a while, error changed into.
With a 'refresh' the 30 sec. time out error occurs again.

Can I just delete the lock files? (if any)

Error (ERROR_LOCK_TIMEOUT) : 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\FlockLockSystem.class at line 289 (gallerystatus::error) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\FlockLockSystem.class at line 98 (flocklocksystem::_acquirelock) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\helpers\GalleryLockHelper_simple.class at line 196 (flocklocksystem::acquirewritelock) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\GalleryCoreApi.class at line 2047 (gallerylockhelper_simple::acquirewritelock) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\helpers\GalleryDerivativeHelper_advanced.class at line 681 (gallerycoreapi::acquirewritelock) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\helpers\GalleryDerivativeHelper_advanced.class at line 669 (galleryderivativehelper_advanced::rebuildcache) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\GalleryCoreApi.class at line 810 (galleryderivativehelper_advanced::rebuildcache) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\GalleryLayout.class at line 772 (gallerycoreapi::rebuildderivativecache) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\layouts\matrix\layout.inc at line 263 (matrixlayout::loadlayouttemplate) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\layouts\matrix\layout.inc at line 156 (matrixlayout::_loadalbumtemplate) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\ShowItem.inc at line 156 (matrixlayout::loadtemplate) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\GalleryView.class at line 214 (showitemview::loadtemplate) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\main.php at line 293 (showitemview::doloadtemplate) 
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\main.php at line 79
in D:\ftpgallery\wwwroot\galleryupgrade\gallery2\main.php at line 70
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-04-27 21:32

if you use db locking there won't be any files in the locks dir. but yes, you can delete the lock files.

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Wed, 2005-04-27 21:47

valiant,

I'am using the file lock method.

running the 'flush cache' test didn't help.

deleting all file locks (only one existed) didn't help.

Should I start over all again?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-04-27 22:24

you could use logged debug output in config.php to help determine where it is getting stuck.

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Thu, 2005-04-28 14:41

mindless,

Below the last few lines in the created debug log file:

Quote:
<< SNIP >>
SELECT
g2_TkOperatnMimeTypeMap.g_toolkitId,
g2_TkOperatnMap.g_outputMimeType
FROM
g2_TkOperatnMap,
g2_TkOperatnMimeTypeMap
WHERE
g2_TkOperatnMap.g_name = g2_TkOperatnMimeTypeMap.g_operationName
AND
g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg'
AND
g2_TkOperatnMap.g_name = 'composite'
ORDER BY
g2_TkOperatnMimeTypeMap.g_priority ASC
&amp; <code></code>
<hr>

2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] file_exists(D:\ftpgallery\wwwroot\galleryupgrade\gallery2\modules\core\classes\helpers/../../../../modules/imagemagick/classes/ImageMagickToolkit.class)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] file_exists(D:\ftpgallery\galleryupd-g2data\cache\module/imagemagick/0/0/0.inc)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] fopen(D:\ftpgallery\galleryupd-g2data\cache\module/imagemagick/0/0/0.inc, rb, 0)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] fread(Resource id #465, 4096)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] fclose(Resource id #465)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] tempnam(D:\ftpgallery\galleryupd-g2data\tmp\, imgk_)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] getcwd()
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] chdir(D:\ftpgallery\galleryupd-g2data\tmp\)
2005-04-28 17:31:43 [3d6cb687da8836bd37c8e15434b2e585] Executing: cmd /c " "c:\imagemagick-6194\composite" "-quality" "75" "-geometry" "+1576+1137" "D:\ftpgallery\galleryupd-g2data\plugins_data/modules/watermark/gallery-watermarktest_gif" "D:\ftpgallery\galleryupd-g2data\albums\0203-02.jpg" "D:\ftpgallery\galleryupd-g2data\tmp\img7B.tmp" 2> "D:\ftpgallery\galleryupd-g2data\tmp\g2d7C.tmp" "
2005-04-28 17:32:35 [3d6cb687da8836bd37c8e15434b2e585] Lock id 146678 was left hanging!2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] [1114734756] can't guarantee 1 -- extending!
2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] fwrite(Resource id #447, ..., )
2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] fflush(Resource id #447)
2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] fclose(Resource id #447)
2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] file_exists(D:\ftpgallery\galleryupd-g2data\locks\3/1/3184)
2005-04-28 17:32:36 [3d6cb687da8836bd37c8e15434b2e585] unlink(D:\ftpgallery\galleryupd-g2data\locks\3/1/3184)

The Red photo item is the item on which I made the last change, the locks in g2data\locks where removed before this log was created.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-28 15:18

try that "composite" command from a shell and see what happens.. does that call actually take 30 seconds or something?

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Thu, 2005-04-28 15:36

mindless,

"c:\imagemagick-6194\composite" "-quality" "75" "-geometry" "+1576+1137" "D:\ftpgallery\galleryupd-g2data\plugins_data/modules/watermark/gallery-watermarktest_gif" "D:\ftpgallery\galleryupd-g2data\albums\ 0203-02.jpg" "D:\ftpgallery\galleryupd-g2data\tmp\img7B.tmp" 2> "D:\ftpgallery\galleryupd-g2data\tmp\g2d7C.tmp"

Ran it a few times and it took about 14 to 18 Sec.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-28 15:41

buut, edit your modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class, function rebuildCache (around line 643).. you'll find $gallery->guaranteeTimeLimit(10); there.. increase that to 20 or 30 and see if that helps.

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Thu, 2005-04-28 15:58

mindless,
increased to 20, Same result
increased to 30, Same result
increased to 60, Gallery main page opens with message :Notice: Undefined index: expandcollaps in D:\ftpgallery\galleryupd-g2data\smarty\templates_c\%%2726934293\%%83^838^8384A269%%AlbumTreeView.tpl.php on line 10
Deactivate 'treeview module' Solve the above message
Decreased back to 10, Gallery main page opens, correctly

It comes all down to Hardware performance?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-04-28 16:22

ya, it's taking too long to build some thumbnails or resizes i guess..

you can uninstall albumtreeview module.. that code has been integrated into albumselect module.